Class GroundingChunk.Builder (1.14.0)

public static final class GroundingChunk.Builder extends GeneratedMessageV3.Builder<GroundingChunk.Builder> implements GroundingChunkOrBuilder

Grounding chunk.

Protobuf type google.cloud.vertexai.v1.GroundingChunk

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GroundingChunk build()
Returns
Type Description
GroundingChunk

buildPartial()

public GroundingChunk buildPartial()
Returns
Type Description
GroundingChunk

clear()

public GroundingChunk.Builder clear()
Returns
Type Description
GroundingChunk.Builder
Overrides

clearChunkType()

public GroundingChunk.Builder clearChunkType()
Returns
Type Description
GroundingChunk.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public GroundingChunk.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GroundingChunk.Builder
Overrides

clearRetrievedContext()

public GroundingChunk.Builder clearRetrievedContext()

Grounding chunk from context retrieved by the retrieval tools.

.google.cloud.vertexai.v1.GroundingChunk.RetrievedContext retrieved_context = 2;

Returns
Type Description
GroundingChunk.Builder

clearWeb()

public GroundingChunk.Builder clearWeb()

Grounding chunk from the web.

.google.cloud.vertexai.v1.GroundingChunk.Web web = 1;

Returns
Type Description
GroundingChunk.Builder

clone()

public GroundingChunk.Builder clone()
Returns
Type Description
GroundingChunk.Builder
Overrides

getChunkTypeCase()

public GroundingChunk.ChunkTypeCase getChunkTypeCase()
Returns
Type Description
GroundingChunk.ChunkTypeCase

getDefaultInstanceForType()

public GroundingChunk getDefaultInstanceForType()
Returns
Type Description
GroundingChunk

getDescriptorForType()

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

getRetrievedContext()

public GroundingChunk.RetrievedContext getRetrievedContext()

Grounding chunk from context retrieved by the retrieval tools.

.google.cloud.vertexai.v1.GroundingChunk.RetrievedContext retrieved_context = 2;

Returns
Type Description
GroundingChunk.RetrievedContext

The retrievedContext.

getRetrievedContextBuilder()

public GroundingChunk.RetrievedContext.Builder getRetrievedContextBuilder()

Grounding chunk from context retrieved by the retrieval tools.

.google.cloud.vertexai.v1.GroundingChunk.RetrievedContext retrieved_context = 2;

Returns
Type Description
GroundingChunk.RetrievedContext.Builder

getRetrievedContextOrBuilder()

public GroundingChunk.RetrievedContextOrBuilder getRetrievedContextOrBuilder()

Grounding chunk from context retrieved by the retrieval tools.

.google.cloud.vertexai.v1.GroundingChunk.RetrievedContext retrieved_context = 2;

Returns
Type Description
GroundingChunk.RetrievedContextOrBuilder

getWeb()

public GroundingChunk.Web getWeb()

Grounding chunk from the web.

.google.cloud.vertexai.v1.GroundingChunk.Web web = 1;

Returns
Type Description
GroundingChunk.Web

The web.

getWebBuilder()

public GroundingChunk.Web.Builder getWebBuilder()

Grounding chunk from the web.

.google.cloud.vertexai.v1.GroundingChunk.Web web = 1;

Returns
Type Description
GroundingChunk.Web.Builder

getWebOrBuilder()

public GroundingChunk.WebOrBuilder getWebOrBuilder()

Grounding chunk from the web.

.google.cloud.vertexai.v1.GroundingChunk.Web web = 1;

Returns
Type Description
GroundingChunk.WebOrBuilder

hasRetrievedContext()

public boolean hasRetrievedContext()

Grounding chunk from context retrieved by the retrieval tools.

.google.cloud.vertexai.v1.GroundingChunk.RetrievedContext retrieved_context = 2;

Returns
Type Description
boolean

Whether the retrievedContext field is set.

hasWeb()

public boolean hasWeb()

Grounding chunk from the web.

.google.cloud.vertexai.v1.GroundingChunk.Web web = 1;

Returns
Type Description
boolean

Whether the web field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GroundingChunk other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRetrievedContext(GroundingChunk.RetrievedContext value)

public GroundingChunk.Builder mergeRetrievedContext(GroundingChunk.RetrievedContext value)

Grounding chunk from context retrieved by the retrieval tools.

.google.cloud.vertexai.v1.GroundingChunk.RetrievedContext retrieved_context = 2;

Parameter
Name Description
value GroundingChunk.RetrievedContext
Returns
Type Description
GroundingChunk.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GroundingChunk.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GroundingChunk.Builder
Overrides

mergeWeb(GroundingChunk.Web value)

public GroundingChunk.Builder mergeWeb(GroundingChunk.Web value)

Grounding chunk from the web.

.google.cloud.vertexai.v1.GroundingChunk.Web web = 1;

Parameter
Name Description
value GroundingChunk.Web
Returns
Type Description
GroundingChunk.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public GroundingChunk.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GroundingChunk.Builder
Overrides

setRetrievedContext(GroundingChunk.RetrievedContext value)

public GroundingChunk.Builder setRetrievedContext(GroundingChunk.RetrievedContext value)

Grounding chunk from context retrieved by the retrieval tools.

.google.cloud.vertexai.v1.GroundingChunk.RetrievedContext retrieved_context = 2;

Parameter
Name Description
value GroundingChunk.RetrievedContext
Returns
Type Description
GroundingChunk.Builder

setRetrievedContext(GroundingChunk.RetrievedContext.Builder builderForValue)

public GroundingChunk.Builder setRetrievedContext(GroundingChunk.RetrievedContext.Builder builderForValue)

Grounding chunk from context retrieved by the retrieval tools.

.google.cloud.vertexai.v1.GroundingChunk.RetrievedContext retrieved_context = 2;

Parameter
Name Description
builderForValue GroundingChunk.RetrievedContext.Builder
Returns
Type Description
GroundingChunk.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setWeb(GroundingChunk.Web value)

public GroundingChunk.Builder setWeb(GroundingChunk.Web value)

Grounding chunk from the web.

.google.cloud.vertexai.v1.GroundingChunk.Web web = 1;

Parameter
Name Description
value GroundingChunk.Web
Returns
Type Description
GroundingChunk.Builder

setWeb(GroundingChunk.Web.Builder builderForValue)

public GroundingChunk.Builder setWeb(GroundingChunk.Web.Builder builderForValue)

Grounding chunk from the web.

.google.cloud.vertexai.v1.GroundingChunk.Web web = 1;

Parameter
Name Description
builderForValue GroundingChunk.Web.Builder
Returns
Type Description
GroundingChunk.Builder