Class Chunk.AnnotationMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Chunk.AnnotationMetadata.Builder>
com.google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata.Builder
All Implemented Interfaces:
Chunk.AnnotationMetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Chunk.AnnotationMetadata

public static final class Chunk.AnnotationMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<Chunk.AnnotationMetadata.Builder> implements Chunk.AnnotationMetadataOrBuilder
 The annotation metadata includes structured content in the current chunk.
 
Protobuf type google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata
  • 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<Chunk.AnnotationMetadata.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<Chunk.AnnotationMetadata.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<Chunk.AnnotationMetadata.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Chunk.AnnotationMetadata.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<Chunk.AnnotationMetadata.Builder>
      Throws:
      IOException
    • hasStructuredContent

      public boolean hasStructuredContent()
       Output only. The structured content information.
       
      .google.cloud.discoveryengine.v1.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasStructuredContent in interface Chunk.AnnotationMetadataOrBuilder
      Returns:
      Whether the structuredContent field is set.
    • getStructuredContent

      public Chunk.StructuredContent getStructuredContent()
       Output only. The structured content information.
       
      .google.cloud.discoveryengine.v1.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStructuredContent in interface Chunk.AnnotationMetadataOrBuilder
      Returns:
      The structuredContent.
    • setStructuredContent

      public Chunk.AnnotationMetadata.Builder setStructuredContent(Chunk.StructuredContent value)
       Output only. The structured content information.
       
      .google.cloud.discoveryengine.v1.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setStructuredContent

      public Chunk.AnnotationMetadata.Builder setStructuredContent(Chunk.StructuredContent.Builder builderForValue)
       Output only. The structured content information.
       
      .google.cloud.discoveryengine.v1.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeStructuredContent

      public Chunk.AnnotationMetadata.Builder mergeStructuredContent(Chunk.StructuredContent value)
       Output only. The structured content information.
       
      .google.cloud.discoveryengine.v1.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearStructuredContent

      public Chunk.AnnotationMetadata.Builder clearStructuredContent()
       Output only. The structured content information.
       
      .google.cloud.discoveryengine.v1.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStructuredContentBuilder

      public Chunk.StructuredContent.Builder getStructuredContentBuilder()
       Output only. The structured content information.
       
      .google.cloud.discoveryengine.v1.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStructuredContentOrBuilder

      public Chunk.StructuredContentOrBuilder getStructuredContentOrBuilder()
       Output only. The structured content information.
       
      .google.cloud.discoveryengine.v1.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStructuredContentOrBuilder in interface Chunk.AnnotationMetadataOrBuilder
    • getImageId

      public String getImageId()
       Output only. Image id is provided if the structured content is based on
       an image.
       
      string image_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getImageId in interface Chunk.AnnotationMetadataOrBuilder
      Returns:
      The imageId.
    • getImageIdBytes

      public com.google.protobuf.ByteString getImageIdBytes()
       Output only. Image id is provided if the structured content is based on
       an image.
       
      string image_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getImageIdBytes in interface Chunk.AnnotationMetadataOrBuilder
      Returns:
      The bytes for imageId.
    • setImageId

      public Chunk.AnnotationMetadata.Builder setImageId(String value)
       Output only. Image id is provided if the structured content is based on
       an image.
       
      string image_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The imageId to set.
      Returns:
      This builder for chaining.
    • clearImageId

      public Chunk.AnnotationMetadata.Builder clearImageId()
       Output only. Image id is provided if the structured content is based on
       an image.
       
      string image_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setImageIdBytes

      public Chunk.AnnotationMetadata.Builder setImageIdBytes(com.google.protobuf.ByteString value)
       Output only. Image id is provided if the structured content is based on
       an image.
       
      string image_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for imageId to set.
      Returns:
      This builder for chaining.