Class Chunk.StructuredContent.Builder

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

public static final class Chunk.StructuredContent.Builder extends com.google.protobuf.GeneratedMessage.Builder<Chunk.StructuredContent.Builder> implements Chunk.StructuredContentOrBuilder
 The structured content information.
 
Protobuf type google.cloud.discoveryengine.v1.Chunk.StructuredContent
  • 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.StructuredContent.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.StructuredContent.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.StructuredContent.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public int getStructureTypeValue()
       Output only. The structure type of the structured content.
       
      .google.cloud.discoveryengine.v1.Chunk.StructureType structure_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStructureTypeValue in interface Chunk.StructuredContentOrBuilder
      Returns:
      The enum numeric value on the wire for structureType.
    • setStructureTypeValue

      public Chunk.StructuredContent.Builder setStructureTypeValue(int value)
       Output only. The structure type of the structured content.
       
      .google.cloud.discoveryengine.v1.Chunk.StructureType structure_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for structureType to set.
      Returns:
      This builder for chaining.
    • getStructureType

      public Chunk.StructureType getStructureType()
       Output only. The structure type of the structured content.
       
      .google.cloud.discoveryengine.v1.Chunk.StructureType structure_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStructureType in interface Chunk.StructuredContentOrBuilder
      Returns:
      The structureType.
    • setStructureType

      public Chunk.StructuredContent.Builder setStructureType(Chunk.StructureType value)
       Output only. The structure type of the structured content.
       
      .google.cloud.discoveryengine.v1.Chunk.StructureType structure_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The structureType to set.
      Returns:
      This builder for chaining.
    • clearStructureType

      public Chunk.StructuredContent.Builder clearStructureType()
       Output only. The structure type of the structured content.
       
      .google.cloud.discoveryengine.v1.Chunk.StructureType structure_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getContent

      public String getContent()
       Output only. The content of the structured content.
       
      string content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getContent in interface Chunk.StructuredContentOrBuilder
      Returns:
      The content.
    • getContentBytes

      public com.google.protobuf.ByteString getContentBytes()
       Output only. The content of the structured content.
       
      string content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getContentBytes in interface Chunk.StructuredContentOrBuilder
      Returns:
      The bytes for content.
    • setContent

      public Chunk.StructuredContent.Builder setContent(String value)
       Output only. The content of the structured content.
       
      string content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The content to set.
      Returns:
      This builder for chaining.
    • clearContent

      public Chunk.StructuredContent.Builder clearContent()
       Output only. The content of the structured content.
       
      string content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setContentBytes

      public Chunk.StructuredContent.Builder setContentBytes(com.google.protobuf.ByteString value)
       Output only. The content of the structured content.
       
      string content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for content to set.
      Returns:
      This builder for chaining.