Send feedback
Class Chunk.AnnotationMetadata.Builder (0.60.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public static final class Chunk . AnnotationMetadata . Builder extends GeneratedMessageV3 . 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors . Descriptor getDescriptor ()
Methods
public Chunk . AnnotationMetadata . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public Chunk . AnnotationMetadata build ()
public Chunk . AnnotationMetadata buildPartial ()
public Chunk . AnnotationMetadata . Builder clear ()
Overrides
public Chunk . AnnotationMetadata . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
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];
public Chunk . AnnotationMetadata . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
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];
public Chunk . AnnotationMetadata . Builder clone ()
Overrides
public Chunk . AnnotationMetadata getDefaultInstanceForType ()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
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];
Returns
Type
Description
String
The imageId.
public 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];
Returns
Type
Description
ByteString
The bytes for imageId.
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];
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];
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];
Returns
Type
Description
boolean
Whether the structuredContent field is set.
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public Chunk . AnnotationMetadata . Builder mergeFrom ( Chunk . AnnotationMetadata other )
public Chunk . AnnotationMetadata . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
public Chunk . AnnotationMetadata . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeStructuredContent(Chunk.StructuredContent value)
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];
public final Chunk . AnnotationMetadata . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
public Chunk . AnnotationMetadata . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
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];
Parameter
Name
Description
value
String
The imageId to set.
public Chunk . AnnotationMetadata . Builder setImageIdBytes ( 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];
Parameter
Name
Description
value
ByteString
The bytes for imageId to set.
public Chunk . AnnotationMetadata . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setStructuredContent(Chunk.StructuredContent value)
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(Chunk.StructuredContent.Builder builderForValue)
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];
public final Chunk . AnnotationMetadata . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-12 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-12 UTC."],[],[]]