Send feedback
Class Chunk.StructuredContent.Builder (0.63.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public static final class Chunk . StructuredContent . Builder extends GeneratedMessageV3 . Builder<Chunk . StructuredContent . Builder > implements Chunk . StructuredContentOrBuilder
The structured content information.
Protobuf type google.cloud.discoveryengine.v1.Chunk.StructuredContent
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
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Chunk . StructuredContent . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public Chunk . StructuredContent build ()
buildPartial()
public Chunk . StructuredContent buildPartial ()
clear()
public Chunk . StructuredContent . Builder clear ()
Overrides
clearContent()
public Chunk . StructuredContent . Builder clearContent ()
Output only. The content of the structured content.
string content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
clearField(Descriptors.FieldDescriptor field)
public Chunk . StructuredContent . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Chunk . StructuredContent . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
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];
clone()
public Chunk . StructuredContent . Builder clone ()
Overrides
getContent()
public String getContent ()
Output only. The content of the structured content.
string content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
String
The content.
getContentBytes()
public ByteString getContentBytes ()
Output only. The content of the structured content.
string content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
ByteString
The bytes for content.
getDefaultInstanceForType()
public Chunk . StructuredContent getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
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];
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];
Returns
Type
Description
int
The enum numeric value on the wire for structureType.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(Chunk.StructuredContent other)
public Chunk . StructuredContent . Builder mergeFrom ( Chunk . StructuredContent other )
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Chunk . StructuredContent . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public Chunk . StructuredContent . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Chunk . StructuredContent . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setContent(String value)
public Chunk . StructuredContent . Builder setContent ( String value )
Output only. The content of the structured content.
string content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name
Description
value
String
The content to set.
setContentBytes(ByteString value)
public Chunk . StructuredContent . Builder setContentBytes ( ByteString value )
Output only. The content of the structured content.
string content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name
Description
value
ByteString
The bytes for content to set.
setField(Descriptors.FieldDescriptor field, Object value)
public Chunk . StructuredContent . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Chunk . StructuredContent . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setStructureType(Chunk.StructureType value)
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];
setStructureTypeValue(int value)
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];
Parameter
Name
Description
value
int
The enum numeric value on the wire for structureType to set.
setUnknownFields(UnknownFieldSet unknownFields)
public final Chunk . StructuredContent . 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-07-02 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-07-02 UTC."],[],[]]