Send feedback
Class GroundingChunk.Builder (3.53.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.53.0 keyboard_arrow_down
public static final class GroundingChunk . Builder extends GeneratedMessageV3 . Builder<GroundingChunk . Builder > implements GroundingChunkOrBuilder
Grounding chunk.
Protobuf type google.cloud.aiplatform.v1beta1.GroundingChunk
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
public static final Descriptors . Descriptor getDescriptor ()
Methods
public GroundingChunk . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public GroundingChunk build ()
public GroundingChunk buildPartial ()
public GroundingChunk . Builder clear ()
Overrides
public GroundingChunk . Builder clearChunkType ()
public GroundingChunk . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
public GroundingChunk . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearRetrievedContext()
public GroundingChunk . Builder clearRetrievedContext ()
Grounding chunk from context retrieved by the retrieval tools.
.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext retrieved_context = 2;
public GroundingChunk . Builder clearWeb ()
Grounding chunk from the web.
.google.cloud.aiplatform.v1beta1.GroundingChunk.Web web = 1;
public GroundingChunk . Builder clone ()
Overrides
public GroundingChunk . ChunkTypeCase getChunkTypeCase ()
public GroundingChunk getDefaultInstanceForType ()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getRetrievedContext()
public GroundingChunk . RetrievedContext getRetrievedContext ()
Grounding chunk from context retrieved by the retrieval tools.
.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext retrieved_context = 2;
getRetrievedContextBuilder()
public GroundingChunk . RetrievedContext . Builder getRetrievedContextBuilder ()
Grounding chunk from context retrieved by the retrieval tools.
.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext retrieved_context = 2;
getRetrievedContextOrBuilder()
public GroundingChunk . RetrievedContextOrBuilder getRetrievedContextOrBuilder ()
Grounding chunk from context retrieved by the retrieval tools.
.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext retrieved_context = 2;
public GroundingChunk . Web getWeb ()
Grounding chunk from the web.
.google.cloud.aiplatform.v1beta1.GroundingChunk.Web web = 1;
public GroundingChunk . Web . Builder getWebBuilder ()
Grounding chunk from the web.
.google.cloud.aiplatform.v1beta1.GroundingChunk.Web web = 1;
public GroundingChunk . WebOrBuilder getWebOrBuilder ()
Grounding chunk from the web.
.google.cloud.aiplatform.v1beta1.GroundingChunk.Web web = 1;
hasRetrievedContext()
public boolean hasRetrievedContext ()
Grounding chunk from context retrieved by the retrieval tools.
.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext retrieved_context = 2;
Returns
Type
Description
boolean
Whether the retrievedContext field is set.
Grounding chunk from the web.
.google.cloud.aiplatform.v1beta1.GroundingChunk.Web web = 1;
Returns
Type
Description
boolean
Whether the web field is set.
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public GroundingChunk . Builder mergeFrom ( GroundingChunk other )
public GroundingChunk . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
public GroundingChunk . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeRetrievedContext(GroundingChunk.RetrievedContext value)
public GroundingChunk . Builder mergeRetrievedContext ( GroundingChunk . RetrievedContext value )
Grounding chunk from context retrieved by the retrieval tools.
.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext retrieved_context = 2;
public final GroundingChunk . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
public GroundingChunk . Builder mergeWeb ( GroundingChunk . Web value )
Grounding chunk from the web.
.google.cloud.aiplatform.v1beta1.GroundingChunk.Web web = 1;
public GroundingChunk . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public GroundingChunk . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setRetrievedContext(GroundingChunk.RetrievedContext value)
public GroundingChunk . Builder setRetrievedContext ( GroundingChunk . RetrievedContext value )
Grounding chunk from context retrieved by the retrieval tools.
.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext retrieved_context = 2;
setRetrievedContext(GroundingChunk.RetrievedContext.Builder builderForValue)
public GroundingChunk . Builder setRetrievedContext ( GroundingChunk . RetrievedContext . Builder builderForValue )
Grounding chunk from context retrieved by the retrieval tools.
.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext retrieved_context = 2;
public final GroundingChunk . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
public GroundingChunk . Builder setWeb ( GroundingChunk . Web value )
Grounding chunk from the web.
.google.cloud.aiplatform.v1beta1.GroundingChunk.Web web = 1;
public GroundingChunk . Builder setWeb ( GroundingChunk . Web . Builder builderForValue )
Grounding chunk from the web.
.google.cloud.aiplatform.v1beta1.GroundingChunk.Web web = 1;
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-01-27 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-01-27 UTC."],[],[]]