Class Chunk.StructuredContent.Builder (0.63.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Chunk.StructuredContent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Chunk.StructuredContent.Builder
Overrides

build()

public Chunk.StructuredContent build()
Returns
Type Description
Chunk.StructuredContent

buildPartial()

public Chunk.StructuredContent buildPartial()
Returns
Type Description
Chunk.StructuredContent

clear()

public Chunk.StructuredContent.Builder clear()
Returns
Type Description
Chunk.StructuredContent.Builder
Overrides

clearContent()

public Chunk.StructuredContent.Builder clearContent()

Output only. The content of the structured content.

string content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Chunk.StructuredContent.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Chunk.StructuredContent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Chunk.StructuredContent.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Chunk.StructuredContent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Chunk.StructuredContent.Builder
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];

Returns
Type Description
Chunk.StructuredContent.Builder

This builder for chaining.

clone()

public Chunk.StructuredContent.Builder clone()
Returns
Type Description
Chunk.StructuredContent.Builder
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()
Returns
Type Description
Chunk.StructuredContent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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];

Returns
Type Description
Chunk.StructureType

The structureType.

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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Chunk.StructuredContent other)

public Chunk.StructuredContent.Builder mergeFrom(Chunk.StructuredContent other)
Parameter
Name Description
other Chunk.StructuredContent
Returns
Type Description
Chunk.StructuredContent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Chunk.StructuredContent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Chunk.StructuredContent.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Chunk.StructuredContent.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Chunk.StructuredContent.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Chunk.StructuredContent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Chunk.StructuredContent.Builder
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.

Returns
Type Description
Chunk.StructuredContent.Builder

This builder for chaining.

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.

Returns
Type Description
Chunk.StructuredContent.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Chunk.StructuredContent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Chunk.StructuredContent.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Chunk.StructuredContent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Chunk.StructuredContent.Builder
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];

Parameter
Name Description
value Chunk.StructureType

The structureType to set.

Returns
Type Description
Chunk.StructuredContent.Builder

This builder for chaining.

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.

Returns
Type Description
Chunk.StructuredContent.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Chunk.StructuredContent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Chunk.StructuredContent.Builder
Overrides