Class ServerACL.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ServerACLOrBuilder, java.lang.Cloneable
    Enclosing class:
    ServerACL

    public static final class ServerACL.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ServerACL.Builder>
    implements ServerACLOrBuilder
    Protobuf type littlehorse.ServerACL
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • clear

        public ServerACL.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ServerACL.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ServerACL.Builder>
      • getDefaultInstanceForType

        public ServerACL getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ServerACL build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ServerACL buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ServerACL.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ServerACL.Builder>
      • setField

        public ServerACL.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                          java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ServerACL.Builder>
      • clearField

        public ServerACL.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ServerACL.Builder>
      • clearOneof

        public ServerACL.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ServerACL.Builder>
      • setRepeatedField

        public ServerACL.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  int index,
                                                  java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ServerACL.Builder>
      • addRepeatedField

        public ServerACL.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ServerACL.Builder>
      • mergeFrom

        public ServerACL.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ServerACL.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ServerACL.Builder>
      • mergeFrom

        public ServerACL.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ServerACL.Builder>
        Throws:
        java.io.IOException
      • getResourcesList

        public java.util.List<ACLResource> getResourcesList()
        repeated .littlehorse.ACLResource resources = 1;
        Specified by:
        getResourcesList in interface ServerACLOrBuilder
        Returns:
        A list containing the resources.
      • getResourcesCount

        public int getResourcesCount()
        repeated .littlehorse.ACLResource resources = 1;
        Specified by:
        getResourcesCount in interface ServerACLOrBuilder
        Returns:
        The count of resources.
      • getResources

        public ACLResource getResources​(int index)
        repeated .littlehorse.ACLResource resources = 1;
        Specified by:
        getResources in interface ServerACLOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The resources at the given index.
      • setResources

        public ServerACL.Builder setResources​(int index,
                                              ACLResource value)
        repeated .littlehorse.ACLResource resources = 1;
        Parameters:
        index - The index to set the value at.
        value - The resources to set.
        Returns:
        This builder for chaining.
      • addResources

        public ServerACL.Builder addResources​(ACLResource value)
        repeated .littlehorse.ACLResource resources = 1;
        Parameters:
        value - The resources to add.
        Returns:
        This builder for chaining.
      • addAllResources

        public ServerACL.Builder addAllResources​(java.lang.Iterable<? extends ACLResource> values)
        repeated .littlehorse.ACLResource resources = 1;
        Parameters:
        values - The resources to add.
        Returns:
        This builder for chaining.
      • clearResources

        public ServerACL.Builder clearResources()
        repeated .littlehorse.ACLResource resources = 1;
        Returns:
        This builder for chaining.
      • getResourcesValueList

        public java.util.List<java.lang.Integer> getResourcesValueList()
        repeated .littlehorse.ACLResource resources = 1;
        Specified by:
        getResourcesValueList in interface ServerACLOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for resources.
      • getResourcesValue

        public int getResourcesValue​(int index)
        repeated .littlehorse.ACLResource resources = 1;
        Specified by:
        getResourcesValue in interface ServerACLOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of resources at the given index.
      • setResourcesValue

        public ServerACL.Builder setResourcesValue​(int index,
                                                   int value)
        repeated .littlehorse.ACLResource resources = 1;
        Parameters:
        index - The index to set the value at.
        value - The enum numeric value on the wire for resources to set.
        Returns:
        This builder for chaining.
      • addResourcesValue

        public ServerACL.Builder addResourcesValue​(int value)
        repeated .littlehorse.ACLResource resources = 1;
        Parameters:
        value - The enum numeric value on the wire for resources to add.
        Returns:
        This builder for chaining.
      • addAllResourcesValue

        public ServerACL.Builder addAllResourcesValue​(java.lang.Iterable<java.lang.Integer> values)
        repeated .littlehorse.ACLResource resources = 1;
        Parameters:
        values - The enum numeric values on the wire for resources to add.
        Returns:
        This builder for chaining.
      • getAllowedActionsList

        public java.util.List<ACLAction> getAllowedActionsList()
        repeated .littlehorse.ACLAction allowed_actions = 2;
        Specified by:
        getAllowedActionsList in interface ServerACLOrBuilder
        Returns:
        A list containing the allowedActions.
      • getAllowedActionsCount

        public int getAllowedActionsCount()
        repeated .littlehorse.ACLAction allowed_actions = 2;
        Specified by:
        getAllowedActionsCount in interface ServerACLOrBuilder
        Returns:
        The count of allowedActions.
      • getAllowedActions

        public ACLAction getAllowedActions​(int index)
        repeated .littlehorse.ACLAction allowed_actions = 2;
        Specified by:
        getAllowedActions in interface ServerACLOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The allowedActions at the given index.
      • setAllowedActions

        public ServerACL.Builder setAllowedActions​(int index,
                                                   ACLAction value)
        repeated .littlehorse.ACLAction allowed_actions = 2;
        Parameters:
        index - The index to set the value at.
        value - The allowedActions to set.
        Returns:
        This builder for chaining.
      • addAllowedActions

        public ServerACL.Builder addAllowedActions​(ACLAction value)
        repeated .littlehorse.ACLAction allowed_actions = 2;
        Parameters:
        value - The allowedActions to add.
        Returns:
        This builder for chaining.
      • addAllAllowedActions

        public ServerACL.Builder addAllAllowedActions​(java.lang.Iterable<? extends ACLAction> values)
        repeated .littlehorse.ACLAction allowed_actions = 2;
        Parameters:
        values - The allowedActions to add.
        Returns:
        This builder for chaining.
      • clearAllowedActions

        public ServerACL.Builder clearAllowedActions()
        repeated .littlehorse.ACLAction allowed_actions = 2;
        Returns:
        This builder for chaining.
      • getAllowedActionsValueList

        public java.util.List<java.lang.Integer> getAllowedActionsValueList()
        repeated .littlehorse.ACLAction allowed_actions = 2;
        Specified by:
        getAllowedActionsValueList in interface ServerACLOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for allowedActions.
      • getAllowedActionsValue

        public int getAllowedActionsValue​(int index)
        repeated .littlehorse.ACLAction allowed_actions = 2;
        Specified by:
        getAllowedActionsValue in interface ServerACLOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of allowedActions at the given index.
      • setAllowedActionsValue

        public ServerACL.Builder setAllowedActionsValue​(int index,
                                                        int value)
        repeated .littlehorse.ACLAction allowed_actions = 2;
        Parameters:
        index - The index to set the value at.
        value - The enum numeric value on the wire for allowedActions to set.
        Returns:
        This builder for chaining.
      • addAllowedActionsValue

        public ServerACL.Builder addAllowedActionsValue​(int value)
        repeated .littlehorse.ACLAction allowed_actions = 2;
        Parameters:
        value - The enum numeric value on the wire for allowedActions to add.
        Returns:
        This builder for chaining.
      • addAllAllowedActionsValue

        public ServerACL.Builder addAllAllowedActionsValue​(java.lang.Iterable<java.lang.Integer> values)
        repeated .littlehorse.ACLAction allowed_actions = 2;
        Parameters:
        values - The enum numeric values on the wire for allowedActions to add.
        Returns:
        This builder for chaining.
      • hasName

        public boolean hasName()
        string name = 3;
        Specified by:
        hasName in interface ServerACLOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public java.lang.String getName()
        string name = 3;
        Specified by:
        getName in interface ServerACLOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
        string name = 3;
        Specified by:
        getNameBytes in interface ServerACLOrBuilder
        Returns:
        The bytes for name.
      • setName

        public ServerACL.Builder setName​(java.lang.String value)
        string name = 3;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public ServerACL.Builder clearName()
        string name = 3;
        Returns:
        This builder for chaining.
      • setNameBytes

        public ServerACL.Builder setNameBytes​(com.google.protobuf.ByteString value)
        string name = 3;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasPrefix

        public boolean hasPrefix()
        string prefix = 4;
        Specified by:
        hasPrefix in interface ServerACLOrBuilder
        Returns:
        Whether the prefix field is set.
      • getPrefix

        public java.lang.String getPrefix()
        string prefix = 4;
        Specified by:
        getPrefix in interface ServerACLOrBuilder
        Returns:
        The prefix.
      • getPrefixBytes

        public com.google.protobuf.ByteString getPrefixBytes()
        string prefix = 4;
        Specified by:
        getPrefixBytes in interface ServerACLOrBuilder
        Returns:
        The bytes for prefix.
      • setPrefix

        public ServerACL.Builder setPrefix​(java.lang.String value)
        string prefix = 4;
        Parameters:
        value - The prefix to set.
        Returns:
        This builder for chaining.
      • clearPrefix

        public ServerACL.Builder clearPrefix()
        string prefix = 4;
        Returns:
        This builder for chaining.
      • setPrefixBytes

        public ServerACL.Builder setPrefixBytes​(com.google.protobuf.ByteString value)
        string prefix = 4;
        Parameters:
        value - The bytes for prefix to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ServerACL.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ServerACL.Builder>
      • mergeUnknownFields

        public final ServerACL.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ServerACL.Builder>