Classe GroundingMetadata.Builder (1.3.0)

public static final class GroundingMetadata.Builder extends GeneratedMessageV3.Builder<GroundingMetadata.Builder> implements GroundingMetadataOrBuilder

Metadati restituiti al client quando è abilitato il grounding.

Tipo di protobuf google.cloud.vertexai.v1.GroundingMetadata

Metodi statici

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Restituisce
Tipo Description
Descriptor

Metodi

addAllGroundingAttributions(Iterable<? extends GroundingAttribution> values)

public GroundingMetadata.Builder addAllGroundingAttributions(Iterable<? extends GroundingAttribution> values)

Facoltativo. Elenco delle attribuzioni di grounding.

repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parametro
Nome Description
values Iterable<? extends com.google.cloud.vertexai.api.GroundingAttribution>
Restituisce
Tipo Description
GroundingMetadata.Builder

addAllWebSearchQueries(Iterable<String> values)

public GroundingMetadata.Builder addAllWebSearchQueries(Iterable<String> values)

Facoltativo. Query di ricerca web per la successiva ricerca web.

repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parametro
Nome Description
values Iterable<String>

Le webSearchQuery da aggiungere.

Restituisce
Tipo Description
GroundingMetadata.Builder

Questo strumento per il concatenamento.

addGroundingAttributions(GroundingAttribution value)

public GroundingMetadata.Builder addGroundingAttributions(GroundingAttribution value)

Facoltativo. Elenco delle attribuzioni di grounding.

repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parametro
Nome Description
value GroundingAttribution
Restituisce
Tipo Description
GroundingMetadata.Builder

addGroundingAttributions(GroundingAttribution.Builder builderForValue)

public GroundingMetadata.Builder addGroundingAttributions(GroundingAttribution.Builder builderForValue)

Facoltativo. Elenco delle attribuzioni di grounding.

repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parametro
Nome Description
builderForValue GroundingAttribution.Builder
Restituisce
Tipo Description
GroundingMetadata.Builder

addGroundingAttributions(int index, GroundingAttribution value)

public GroundingMetadata.Builder addGroundingAttributions(int index, GroundingAttribution value)

Facoltativo. Elenco delle attribuzioni di grounding.

repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parametri
Nome Description
index int
value GroundingAttribution
Restituisce
Tipo Description
GroundingMetadata.Builder

addGroundingAttributions(int index, GroundingAttribution.Builder builderForValue)

public GroundingMetadata.Builder addGroundingAttributions(int index, GroundingAttribution.Builder builderForValue)

Facoltativo. Elenco delle attribuzioni di grounding.

repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parametri
Nome Description
index int
builderForValue GroundingAttribution.Builder
Restituisce
Tipo Description
GroundingMetadata.Builder

addGroundingAttributionsBuilder()

public GroundingAttribution.Builder addGroundingAttributionsBuilder()

Facoltativo. Elenco delle attribuzioni di grounding.

repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];

Restituisce
Tipo Description
GroundingAttribution.Builder

addGroundingAttributionsBuilder(int index)

public GroundingAttribution.Builder addGroundingAttributionsBuilder(int index)

Facoltativo. Elenco delle attribuzioni di grounding.

repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parametro
Nome Description
index int
Restituisce
Tipo Description
GroundingAttribution.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GroundingMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parametri
Nome Description
field FieldDescriptor
value Object
Restituisce
Tipo Description
GroundingMetadata.Builder
Sostituzioni

addWebSearchQueries(String value)

public GroundingMetadata.Builder addWebSearchQueries(String value)

Facoltativo. Query di ricerca web per la successiva ricerca web.

repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parametro
Nome Description
value String

Le webSearchQuery da aggiungere.

Restituisce
Tipo Description
GroundingMetadata.Builder

Questo strumento per il concatenamento.

addWebSearchQueriesBytes(ByteString value)

public GroundingMetadata.Builder addWebSearchQueriesBytes(ByteString value)

Facoltativo. Query di ricerca web per la successiva ricerca web.

repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parametro
Nome Description
value ByteString

I byte delle query webSearchQuery da aggiungere.

Restituisce
Tipo Description
GroundingMetadata.Builder

Questo strumento per il concatenamento.

build()

public GroundingMetadata build()
Restituisce
Tipo Description
GroundingMetadata

buildPartial()

public GroundingMetadata buildPartial()
Restituisce
Tipo Description
GroundingMetadata

Clear()

public GroundingMetadata.Builder clear()
Restituisce
Tipo Description
GroundingMetadata.Builder
Sostituzioni

clearField(Descriptors.FieldDescriptor field)

public GroundingMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parametro
Nome Description
field FieldDescriptor
Restituisce
Tipo Description
GroundingMetadata.Builder
Sostituzioni

clearGroundingAttributions()

public GroundingMetadata.Builder clearGroundingAttributions()

Facoltativo. Elenco delle attribuzioni di grounding.

repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];

Restituisce
Tipo Description
GroundingMetadata.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public GroundingMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parametro
Nome Description
oneof OneofDescriptor
Restituisce
Tipo Description
GroundingMetadata.Builder
Sostituzioni

clearWebSearchQueries()

public GroundingMetadata.Builder clearWebSearchQueries()

Facoltativo. Query di ricerca web per la successiva ricerca web.

repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];

Restituisce
Tipo Description
GroundingMetadata.Builder

Questo strumento per il concatenamento.

clone()

public GroundingMetadata.Builder clone()
Restituisce
Tipo Description
GroundingMetadata.Builder
Sostituzioni

getDefaultInstanceForType()

public GroundingMetadata getDefaultInstanceForType()
Restituisce
Tipo Description
GroundingMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Restituisce
Tipo Description
Descriptor
Sostituzioni

getGroundingAttributions(int index)

public GroundingAttribution getGroundingAttributions(int index)

Facoltativo. Elenco delle attribuzioni di grounding.

repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parametro
Nome Description
index int
Restituisce
Tipo Description
GroundingAttribution

getGroundingAttributionsBuilder(int index)

public GroundingAttribution.Builder getGroundingAttributionsBuilder(int index)

Facoltativo. Elenco delle attribuzioni di grounding.

repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parametro
Nome Description
index int
Restituisce
Tipo Description
GroundingAttribution.Builder

getGroundingAttributionsBuilderList()

public List<GroundingAttribution.Builder> getGroundingAttributionsBuilderList()

Facoltativo. Elenco delle attribuzioni di grounding.

repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];

Restituisce
Tipo Description
List<Builder>

getGroundingAttributionsCount()

public int getGroundingAttributionsCount()

Facoltativo. Elenco delle attribuzioni di grounding.

repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];

Restituisce
Tipo Description
int

getGroundingAttributionsList()

public List<GroundingAttribution> getGroundingAttributionsList()

Facoltativo. Elenco delle attribuzioni di grounding.

repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];

Restituisce
Tipo Description
List<GroundingAttribution>

getGroundingAttributionsOrBuilder(int index)

public GroundingAttributionOrBuilder getGroundingAttributionsOrBuilder(int index)

Facoltativo. Elenco delle attribuzioni di grounding.

repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parametro
Nome Description
index int
Restituisce
Tipo Description
GroundingAttributionOrBuilder

getGroundingAttributionsOrBuilderList()

public List<? extends GroundingAttributionOrBuilder> getGroundingAttributionsOrBuilderList()

Facoltativo. Elenco delle attribuzioni di grounding.

repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];

Restituisce
Tipo Description
List<? extends com.google.cloud.vertexai.api.GroundingAttributionOrBuilder>

getWebSearchQueries(int index)

public String getWebSearchQueries(int index)

Facoltativo. Query di ricerca web per la successiva ricerca web.

repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parametro
Nome Description
index int

L'indice dell'elemento da restituire.

Restituisce
Tipo Description
String

Le query webSearchQueries nell'indice specificato.

getWebSearchQueriesBytes(int index)

public ByteString getWebSearchQueriesBytes(int index)

Facoltativo. Query di ricerca web per la successiva ricerca web.

repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parametro
Nome Description
index int

L'indice del valore da restituire.

Restituisce
Tipo Description
ByteString

I byte delle query webSearch nell'indice specificato.

getWebSearchQueriesCount()

public int getWebSearchQueriesCount()

Facoltativo. Query di ricerca web per la successiva ricerca web.

repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];

Restituisce
Tipo Description
int

Il conteggio delle query di ricerca web.

getWebSearchQueriesList()

public ProtocolStringList getWebSearchQueriesList()

Facoltativo. Query di ricerca web per la successiva ricerca web.

repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];

Restituisce
Tipo Description
ProtocolStringList

Un elenco contenente le query di ricerca web.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Restituisce
Tipo Description
FieldAccessorTable
Sostituzioni

isInitialized()

public final boolean isInitialized()
Restituisce
Tipo Description
boolean
Sostituzioni

mergeFrom(GroundingMetadata other)

public GroundingMetadata.Builder mergeFrom(GroundingMetadata other)
Parametro
Nome Description
other GroundingMetadata
Restituisce
Tipo Description
GroundingMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GroundingMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parametri
Nome Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Restituisce
Tipo Description
GroundingMetadata.Builder
Sostituzioni
Eccezioni
Tipo Description
IOException

mergeFrom(Message other)

public GroundingMetadata.Builder mergeFrom(Message other)
Parametro
Nome Description
other Message
Restituisce
Tipo Description
GroundingMetadata.Builder
Sostituzioni

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GroundingMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parametro
Nome Description
unknownFields UnknownFieldSet
Restituisce
Tipo Description
GroundingMetadata.Builder
Sostituzioni

removeGroundingAttributions(int index)

public GroundingMetadata.Builder removeGroundingAttributions(int index)

Facoltativo. Elenco delle attribuzioni di grounding.

repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parametro
Nome Description
index int
Restituisce
Tipo Description
GroundingMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GroundingMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parametri
Nome Description
field FieldDescriptor
value Object
Restituisce
Tipo Description
GroundingMetadata.Builder
Sostituzioni

setGroundingAttributions(int index, GroundingAttribution value)

public GroundingMetadata.Builder setGroundingAttributions(int index, GroundingAttribution value)

Facoltativo. Elenco delle attribuzioni di grounding.

repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parametri
Nome Description
index int
value GroundingAttribution
Restituisce
Tipo Description
GroundingMetadata.Builder

setGroundingAttributions(int index, GroundingAttribution.Builder builderForValue)

public GroundingMetadata.Builder setGroundingAttributions(int index, GroundingAttribution.Builder builderForValue)

Facoltativo. Elenco delle attribuzioni di grounding.

repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parametri
Nome Description
index int
builderForValue GroundingAttribution.Builder
Restituisce
Tipo Description
GroundingMetadata.Builder

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

public GroundingMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parametri
Nome Description
field FieldDescriptor
index int
value Object
Restituisce
Tipo Description
GroundingMetadata.Builder
Sostituzioni

setUnknownFields(UnknownFieldSet unknownFields)

public final GroundingMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parametro
Nome Description
unknownFields UnknownFieldSet
Restituisce
Tipo Description
GroundingMetadata.Builder
Sostituzioni

setWebSearchQueries(int index, String value)

public GroundingMetadata.Builder setWebSearchQueries(int index, String value)

Facoltativo. Query di ricerca web per la successiva ricerca web.

repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parametri
Nome Description
index int

L'indice su cui impostare il valore.

value String

Le query webSearchQuery da impostare.

Restituisce
Tipo Description
GroundingMetadata.Builder

Questo strumento per il concatenamento.