Class GroundingChunk.RetrievedContext.Builder (1.40.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticfinalclass GroundingChunk.RetrievedContext.BuilderextendsGeneratedMessageV3.Builder<GroundingChunk.RetrievedContext.Builder>implementsGroundingChunk.RetrievedContextOrBuilderChunk from context retrieved by the retrieval tools.
Protobuf type google.cloud.vertexai.v1.GroundingChunk.RetrievedContext
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GroundingChunk.RetrievedContext.BuilderImplements
GroundingChunk.RetrievedContextOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicGroundingChunk.RetrievedContext.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext.Builder |
|
build()
publicGroundingChunk.RetrievedContextbuild()| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext |
|
buildPartial()
publicGroundingChunk.RetrievedContextbuildPartial()| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext |
|
clear()
publicGroundingChunk.RetrievedContext.Builderclear()| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext.Builder |
|
clearField(Descriptors.FieldDescriptor field)
publicGroundingChunk.RetrievedContext.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
publicGroundingChunk.RetrievedContext.BuilderclearOneof(Descriptors.OneofDescriptoroneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext.Builder |
|
clearText()
publicGroundingChunk.RetrievedContext.BuilderclearText()Text of the attribution.
optional string text = 3;
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext.Builder |
This builder for chaining. |
clearTitle()
publicGroundingChunk.RetrievedContext.BuilderclearTitle()Title of the attribution.
optional string title = 2;
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext.Builder |
This builder for chaining. |
clearUri()
publicGroundingChunk.RetrievedContext.BuilderclearUri()URI reference of the attribution.
optional string uri = 1;
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext.Builder |
This builder for chaining. |
clone()
publicGroundingChunk.RetrievedContext.Builderclone()| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext.Builder |
|
getDefaultInstanceForType()
publicGroundingChunk.RetrievedContextgetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext |
|
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getText()
publicStringgetText()Text of the attribution.
optional string text = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The text. |
getTextBytes()
publicByteStringgetTextBytes()Text of the attribution.
optional string text = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for text. |
getTitle()
publicStringgetTitle()Title of the attribution.
optional string title = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The title. |
getTitleBytes()
publicByteStringgetTitleBytes()Title of the attribution.
optional string title = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for title. |
getUri()
publicStringgetUri()URI reference of the attribution.
optional string uri = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The uri. |
getUriBytes()
publicByteStringgetUriBytes()URI reference of the attribution.
optional string uri = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for uri. |
hasText()
publicbooleanhasText()Text of the attribution.
optional string text = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the text field is set. |
hasTitle()
publicbooleanhasTitle()Title of the attribution.
optional string title = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the title field is set. |
hasUri()
publicbooleanhasUri()URI reference of the attribution.
optional string uri = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the uri field is set. |
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(GroundingChunk.RetrievedContext other)
publicGroundingChunk.RetrievedContext.BuildermergeFrom(GroundingChunk.RetrievedContextother)| Parameter | |
|---|---|
| Name | Description |
other |
GroundingChunk.RetrievedContext |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicGroundingChunk.RetrievedContext.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicGroundingChunk.RetrievedContext.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalGroundingChunk.RetrievedContext.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
publicGroundingChunk.RetrievedContext.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext.Builder |
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicGroundingChunk.RetrievedContext.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext.Builder |
|
setText(String value)
publicGroundingChunk.RetrievedContext.BuildersetText(Stringvalue)Text of the attribution.
optional string text = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
String The text to set. |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext.Builder |
This builder for chaining. |
setTextBytes(ByteString value)
publicGroundingChunk.RetrievedContext.BuildersetTextBytes(ByteStringvalue)Text of the attribution.
optional string text = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for text to set. |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext.Builder |
This builder for chaining. |
setTitle(String value)
publicGroundingChunk.RetrievedContext.BuildersetTitle(Stringvalue)Title of the attribution.
optional string title = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
String The title to set. |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext.Builder |
This builder for chaining. |
setTitleBytes(ByteString value)
publicGroundingChunk.RetrievedContext.BuildersetTitleBytes(ByteStringvalue)Title of the attribution.
optional string title = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for title to set. |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalGroundingChunk.RetrievedContext.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext.Builder |
|
setUri(String value)
publicGroundingChunk.RetrievedContext.BuildersetUri(Stringvalue)URI reference of the attribution.
optional string uri = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
String The uri to set. |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext.Builder |
This builder for chaining. |
setUriBytes(ByteString value)
publicGroundingChunk.RetrievedContext.BuildersetUriBytes(ByteStringvalue)URI reference of the attribution.
optional string uri = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for uri to set. |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext.Builder |
This builder for chaining. |