Class CheckGroundingResponse.CheckGroundingFactChunk.Builder (0.79.0)

public static final class CheckGroundingResponse.CheckGroundingFactChunk.Builder extends GeneratedMessage.Builder<CheckGroundingResponse.CheckGroundingFactChunk.Builder> implements CheckGroundingResponse.CheckGroundingFactChunkOrBuilder

Fact chunk for grounding check.

Protobuf type google.cloud.discoveryengine.v1.CheckGroundingResponse.CheckGroundingFactChunk

Static Methods

getDescriptor()

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

Methods

build()

public CheckGroundingResponse.CheckGroundingFactChunk build()
Returns
Type Description
CheckGroundingResponse.CheckGroundingFactChunk

buildPartial()

public CheckGroundingResponse.CheckGroundingFactChunk buildPartial()
Returns
Type Description
CheckGroundingResponse.CheckGroundingFactChunk

clear()

public CheckGroundingResponse.CheckGroundingFactChunk.Builder clear()
Returns
Type Description
CheckGroundingResponse.CheckGroundingFactChunk.Builder
Overrides

clearChunkText()

public CheckGroundingResponse.CheckGroundingFactChunk.Builder clearChunkText()

Text content of the fact chunk. Can be at most 10K characters long.

string chunk_text = 1;

Returns
Type Description
CheckGroundingResponse.CheckGroundingFactChunk.Builder

This builder for chaining.

getChunkText()

public String getChunkText()

Text content of the fact chunk. Can be at most 10K characters long.

string chunk_text = 1;

Returns
Type Description
String

The chunkText.

getChunkTextBytes()

public ByteString getChunkTextBytes()

Text content of the fact chunk. Can be at most 10K characters long.

string chunk_text = 1;

Returns
Type Description
ByteString

The bytes for chunkText.

getDefaultInstanceForType()

public CheckGroundingResponse.CheckGroundingFactChunk getDefaultInstanceForType()
Returns
Type Description
CheckGroundingResponse.CheckGroundingFactChunk

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CheckGroundingResponse.CheckGroundingFactChunk other)

public CheckGroundingResponse.CheckGroundingFactChunk.Builder mergeFrom(CheckGroundingResponse.CheckGroundingFactChunk other)
Parameter
Name Description
other CheckGroundingResponse.CheckGroundingFactChunk
Returns
Type Description
CheckGroundingResponse.CheckGroundingFactChunk.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CheckGroundingResponse.CheckGroundingFactChunk.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CheckGroundingResponse.CheckGroundingFactChunk.Builder
Overrides

setChunkText(String value)

public CheckGroundingResponse.CheckGroundingFactChunk.Builder setChunkText(String value)

Text content of the fact chunk. Can be at most 10K characters long.

string chunk_text = 1;

Parameter
Name Description
value String

The chunkText to set.

Returns
Type Description
CheckGroundingResponse.CheckGroundingFactChunk.Builder

This builder for chaining.

setChunkTextBytes(ByteString value)

public CheckGroundingResponse.CheckGroundingFactChunk.Builder setChunkTextBytes(ByteString value)

Text content of the fact chunk. Can be at most 10K characters long.

string chunk_text = 1;

Parameter
Name Description
value ByteString

The bytes for chunkText to set.

Returns
Type Description
CheckGroundingResponse.CheckGroundingFactChunk.Builder

This builder for chaining.