Class FieldSchema.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FieldSchema.Builder>
com.google.cloud.biglake.hive.v1beta.FieldSchema.Builder
All Implemented Interfaces:
FieldSchemaOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
FieldSchema

public static final class FieldSchema.Builder extends com.google.protobuf.GeneratedMessage.Builder<FieldSchema.Builder> implements FieldSchemaOrBuilder
 Field schema information.
 
Protobuf type google.cloud.biglake.hive.v1beta.FieldSchema
  • Method Details

    • 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<FieldSchema.Builder>
    • clear

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

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

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

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

      public FieldSchema.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<FieldSchema.Builder>
    • mergeFrom

      public FieldSchema.Builder mergeFrom(FieldSchema other)
    • isInitialized

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

      public FieldSchema.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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<FieldSchema.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. Name of the field. The maximum length is 767 characters.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface FieldSchemaOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. Name of the field. The maximum length is 767 characters.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface FieldSchemaOrBuilder
      Returns:
      The bytes for name.
    • setName

      public FieldSchema.Builder setName(String value)
       Required. Name of the field. The maximum length is 767 characters.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public FieldSchema.Builder clearName()
       Required. Name of the field. The maximum length is 767 characters.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public FieldSchema.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. Name of the field. The maximum length is 767 characters.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getType

      public String getType()
       Required. Type of the field. The maximum length is 128 characters.
       
      string type = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getType in interface FieldSchemaOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       Required. Type of the field. The maximum length is 128 characters.
       
      string type = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTypeBytes in interface FieldSchemaOrBuilder
      Returns:
      The bytes for type.
    • setType

      public FieldSchema.Builder setType(String value)
       Required. Type of the field. The maximum length is 128 characters.
       
      string type = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public FieldSchema.Builder clearType()
       Required. Type of the field. The maximum length is 128 characters.
       
      string type = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setTypeBytes

      public FieldSchema.Builder setTypeBytes(com.google.protobuf.ByteString value)
       Required. Type of the field. The maximum length is 128 characters.
       
      string type = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • getComment

      public String getComment()
       Optional. Comment of the field. The maximum length is 256 characters.
       
      string comment = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getComment in interface FieldSchemaOrBuilder
      Returns:
      The comment.
    • getCommentBytes

      public com.google.protobuf.ByteString getCommentBytes()
       Optional. Comment of the field. The maximum length is 256 characters.
       
      string comment = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCommentBytes in interface FieldSchemaOrBuilder
      Returns:
      The bytes for comment.
    • setComment

      public FieldSchema.Builder setComment(String value)
       Optional. Comment of the field. The maximum length is 256 characters.
       
      string comment = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The comment to set.
      Returns:
      This builder for chaining.
    • clearComment

      public FieldSchema.Builder clearComment()
       Optional. Comment of the field. The maximum length is 256 characters.
       
      string comment = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setCommentBytes

      public FieldSchema.Builder setCommentBytes(com.google.protobuf.ByteString value)
       Optional. Comment of the field. The maximum length is 256 characters.
       
      string comment = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for comment to set.
      Returns:
      This builder for chaining.