Package s2.v1alpha

Class CreateBasinRequest.Builder

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

    public static final class CreateBasinRequest.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<CreateBasinRequest.Builder>
    implements CreateBasinRequestOrBuilder
     Create basin request.
     
    Protobuf type s2.v1alpha.CreateBasinRequest
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CreateBasinRequest.Builder>
      • clear

        public CreateBasinRequest.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.GeneratedMessage.Builder<CreateBasinRequest.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.GeneratedMessage.Builder<CreateBasinRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public CreateBasinRequest.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<CreateBasinRequest.Builder>
      • isInitialized

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

        public CreateBasinRequest.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<CreateBasinRequest.Builder>
        Throws:
        java.io.IOException
      • getBasin

        public java.lang.String getBasin()
         Basin name, which must be globally unique. It can be omitted to let the service assign a unique name.
         The name must be between 8 and 48 characters, comprising lowercase letters, numbers and hyphens.
         It cannot begin or end with a hyphen.
         
        string basin = 1;
        Specified by:
        getBasin in interface CreateBasinRequestOrBuilder
        Returns:
        The basin.
      • getBasinBytes

        public com.google.protobuf.ByteString getBasinBytes()
         Basin name, which must be globally unique. It can be omitted to let the service assign a unique name.
         The name must be between 8 and 48 characters, comprising lowercase letters, numbers and hyphens.
         It cannot begin or end with a hyphen.
         
        string basin = 1;
        Specified by:
        getBasinBytes in interface CreateBasinRequestOrBuilder
        Returns:
        The bytes for basin.
      • setBasin

        public CreateBasinRequest.Builder setBasin​(java.lang.String value)
         Basin name, which must be globally unique. It can be omitted to let the service assign a unique name.
         The name must be between 8 and 48 characters, comprising lowercase letters, numbers and hyphens.
         It cannot begin or end with a hyphen.
         
        string basin = 1;
        Parameters:
        value - The basin to set.
        Returns:
        This builder for chaining.
      • clearBasin

        public CreateBasinRequest.Builder clearBasin()
         Basin name, which must be globally unique. It can be omitted to let the service assign a unique name.
         The name must be between 8 and 48 characters, comprising lowercase letters, numbers and hyphens.
         It cannot begin or end with a hyphen.
         
        string basin = 1;
        Returns:
        This builder for chaining.
      • setBasinBytes

        public CreateBasinRequest.Builder setBasinBytes​(com.google.protobuf.ByteString value)
         Basin name, which must be globally unique. It can be omitted to let the service assign a unique name.
         The name must be between 8 and 48 characters, comprising lowercase letters, numbers and hyphens.
         It cannot begin or end with a hyphen.
         
        string basin = 1;
        Parameters:
        value - The bytes for basin to set.
        Returns:
        This builder for chaining.
      • hasConfig

        public boolean hasConfig()
         Basin configuration.
         
        .s2.v1alpha.BasinConfig config = 2;
        Specified by:
        hasConfig in interface CreateBasinRequestOrBuilder
        Returns:
        Whether the config field is set.
      • getConfigBuilder

        public BasinConfig.Builder getConfigBuilder()
         Basin configuration.
         
        .s2.v1alpha.BasinConfig config = 2;
      • getScopeValue

        public int getScopeValue()
         Basin scope.
         
        .s2.v1alpha.BasinScope scope = 3;
        Specified by:
        getScopeValue in interface CreateBasinRequestOrBuilder
        Returns:
        The enum numeric value on the wire for scope.
      • setScopeValue

        public CreateBasinRequest.Builder setScopeValue​(int value)
         Basin scope.
         
        .s2.v1alpha.BasinScope scope = 3;
        Parameters:
        value - The enum numeric value on the wire for scope to set.
        Returns:
        This builder for chaining.
      • setScope

        public CreateBasinRequest.Builder setScope​(BasinScope value)
         Basin scope.
         
        .s2.v1alpha.BasinScope scope = 3;
        Parameters:
        value - The scope to set.
        Returns:
        This builder for chaining.
      • clearScope

        public CreateBasinRequest.Builder clearScope()
         Basin scope.
         
        .s2.v1alpha.BasinScope scope = 3;
        Returns:
        This builder for chaining.