Class DocumentSchema.EntityType.Property.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DocumentSchema.EntityType.Property.Builder>
com.google.cloud.documentai.v1.DocumentSchema.EntityType.Property.Builder
All Implemented Interfaces:
DocumentSchema.EntityType.PropertyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DocumentSchema.EntityType.Property

public static final class DocumentSchema.EntityType.Property.Builder extends com.google.protobuf.GeneratedMessage.Builder<DocumentSchema.EntityType.Property.Builder> implements DocumentSchema.EntityType.PropertyOrBuilder
 Defines properties that can be part of the entity type.
 
Protobuf type google.cloud.documentai.v1.DocumentSchema.EntityType.Property
  • 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<DocumentSchema.EntityType.Property.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<DocumentSchema.EntityType.Property.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<DocumentSchema.EntityType.Property.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public DocumentSchema.EntityType.Property.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<DocumentSchema.EntityType.Property.Builder>
    • mergeFrom

    • isInitialized

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

      public DocumentSchema.EntityType.Property.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<DocumentSchema.EntityType.Property.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The name of the property.  Follows the same guidelines as the
       EntityType name.
       
      string name = 1;
      Specified by:
      getName in interface DocumentSchema.EntityType.PropertyOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the property.  Follows the same guidelines as the
       EntityType name.
       
      string name = 1;
      Specified by:
      getNameBytes in interface DocumentSchema.EntityType.PropertyOrBuilder
      Returns:
      The bytes for name.
    • setName

       The name of the property.  Follows the same guidelines as the
       EntityType name.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       The name of the property.  Follows the same guidelines as the
       EntityType name.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public DocumentSchema.EntityType.Property.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the property.  Follows the same guidelines as the
       EntityType name.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       User defined name for the property.
       
      string display_name = 6;
      Specified by:
      getDisplayName in interface DocumentSchema.EntityType.PropertyOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       User defined name for the property.
       
      string display_name = 6;
      Specified by:
      getDisplayNameBytes in interface DocumentSchema.EntityType.PropertyOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public DocumentSchema.EntityType.Property.Builder setDisplayName(String value)
       User defined name for the property.
       
      string display_name = 6;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public DocumentSchema.EntityType.Property.Builder clearDisplayName()
       User defined name for the property.
       
      string display_name = 6;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public DocumentSchema.EntityType.Property.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       User defined name for the property.
       
      string display_name = 6;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getValueType

      public String getValueType()
       A reference to the value type of the property.  This type is subject
       to the same conventions as the `Entity.base_types` field.
       
      string value_type = 2;
      Specified by:
      getValueType in interface DocumentSchema.EntityType.PropertyOrBuilder
      Returns:
      The valueType.
    • getValueTypeBytes

      public com.google.protobuf.ByteString getValueTypeBytes()
       A reference to the value type of the property.  This type is subject
       to the same conventions as the `Entity.base_types` field.
       
      string value_type = 2;
      Specified by:
      getValueTypeBytes in interface DocumentSchema.EntityType.PropertyOrBuilder
      Returns:
      The bytes for valueType.
    • setValueType

       A reference to the value type of the property.  This type is subject
       to the same conventions as the `Entity.base_types` field.
       
      string value_type = 2;
      Parameters:
      value - The valueType to set.
      Returns:
      This builder for chaining.
    • clearValueType

       A reference to the value type of the property.  This type is subject
       to the same conventions as the `Entity.base_types` field.
       
      string value_type = 2;
      Returns:
      This builder for chaining.
    • setValueTypeBytes

      public DocumentSchema.EntityType.Property.Builder setValueTypeBytes(com.google.protobuf.ByteString value)
       A reference to the value type of the property.  This type is subject
       to the same conventions as the `Entity.base_types` field.
       
      string value_type = 2;
      Parameters:
      value - The bytes for valueType to set.
      Returns:
      This builder for chaining.
    • getOccurrenceTypeValue

      public int getOccurrenceTypeValue()
       Occurrence type limits the number of instances an entity type appears
       in the document.
       
      .google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType occurrence_type = 3;
      Specified by:
      getOccurrenceTypeValue in interface DocumentSchema.EntityType.PropertyOrBuilder
      Returns:
      The enum numeric value on the wire for occurrenceType.
    • setOccurrenceTypeValue

      public DocumentSchema.EntityType.Property.Builder setOccurrenceTypeValue(int value)
       Occurrence type limits the number of instances an entity type appears
       in the document.
       
      .google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType occurrence_type = 3;
      Parameters:
      value - The enum numeric value on the wire for occurrenceType to set.
      Returns:
      This builder for chaining.
    • getOccurrenceType

       Occurrence type limits the number of instances an entity type appears
       in the document.
       
      .google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType occurrence_type = 3;
      Specified by:
      getOccurrenceType in interface DocumentSchema.EntityType.PropertyOrBuilder
      Returns:
      The occurrenceType.
    • setOccurrenceType

       Occurrence type limits the number of instances an entity type appears
       in the document.
       
      .google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType occurrence_type = 3;
      Parameters:
      value - The occurrenceType to set.
      Returns:
      This builder for chaining.
    • clearOccurrenceType

      public DocumentSchema.EntityType.Property.Builder clearOccurrenceType()
       Occurrence type limits the number of instances an entity type appears
       in the document.
       
      .google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType occurrence_type = 3;
      Returns:
      This builder for chaining.
    • getMethodValue

      public int getMethodValue()
       Specifies how the entity's value is obtained.
       
      .google.cloud.documentai.v1.DocumentSchema.EntityType.Property.Method method = 8;
      Specified by:
      getMethodValue in interface DocumentSchema.EntityType.PropertyOrBuilder
      Returns:
      The enum numeric value on the wire for method.
    • setMethodValue

      public DocumentSchema.EntityType.Property.Builder setMethodValue(int value)
       Specifies how the entity's value is obtained.
       
      .google.cloud.documentai.v1.DocumentSchema.EntityType.Property.Method method = 8;
      Parameters:
      value - The enum numeric value on the wire for method to set.
      Returns:
      This builder for chaining.
    • getMethod

       Specifies how the entity's value is obtained.
       
      .google.cloud.documentai.v1.DocumentSchema.EntityType.Property.Method method = 8;
      Specified by:
      getMethod in interface DocumentSchema.EntityType.PropertyOrBuilder
      Returns:
      The method.
    • setMethod

       Specifies how the entity's value is obtained.
       
      .google.cloud.documentai.v1.DocumentSchema.EntityType.Property.Method method = 8;
      Parameters:
      value - The method to set.
      Returns:
      This builder for chaining.
    • clearMethod

       Specifies how the entity's value is obtained.
       
      .google.cloud.documentai.v1.DocumentSchema.EntityType.Property.Method method = 8;
      Returns:
      This builder for chaining.