Class Chunk.StructuredContent.Builder (0.79.0)

public static final class Chunk.StructuredContent.Builder extends GeneratedMessage.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

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.

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.

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 GeneratedMessage.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

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.

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.