Class ExamplesOverride.Builder (0.2.0)

publicstaticfinalclass ExamplesOverride.BuilderextendsGeneratedMessageV3.Builder<ExamplesOverride.Builder>implementsExamplesOverrideOrBuilder

Overrides for example-based explanations.

Protobuf type google.cloud.vertexai.v1beta1.ExamplesOverride

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

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAllRestrictions(Iterable<? extends ExamplesRestrictionsNamespace> values)

publicExamplesOverride.BuilderaddAllRestrictions(Iterable<?extendsExamplesRestrictionsNamespace>values)

Restrict the resulting nearest neighbors to respect these constraints.

repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.vertexai.api.ExamplesRestrictionsNamespace>
Returns
Type Description
ExamplesOverride.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicExamplesOverride.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExamplesOverride.Builder
Overrides

addRestrictions(ExamplesRestrictionsNamespace value)

publicExamplesOverride.BuilderaddRestrictions(ExamplesRestrictionsNamespacevalue)

Restrict the resulting nearest neighbors to respect these constraints.

repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;

Parameter
Name Description
value ExamplesRestrictionsNamespace
Returns
Type Description
ExamplesOverride.Builder

addRestrictions(ExamplesRestrictionsNamespace.Builder builderForValue)

publicExamplesOverride.BuilderaddRestrictions(ExamplesRestrictionsNamespace.BuilderbuilderForValue)

Restrict the resulting nearest neighbors to respect these constraints.

repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;

Parameter
Name Description
builderForValue ExamplesRestrictionsNamespace.Builder
Returns
Type Description
ExamplesOverride.Builder

addRestrictions(int index, ExamplesRestrictionsNamespace value)

publicExamplesOverride.BuilderaddRestrictions(intindex,ExamplesRestrictionsNamespacevalue)

Restrict the resulting nearest neighbors to respect these constraints.

repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;

Parameters
Name Description
index int
value ExamplesRestrictionsNamespace
Returns
Type Description
ExamplesOverride.Builder

addRestrictions(int index, ExamplesRestrictionsNamespace.Builder builderForValue)

publicExamplesOverride.BuilderaddRestrictions(intindex,ExamplesRestrictionsNamespace.BuilderbuilderForValue)

Restrict the resulting nearest neighbors to respect these constraints.

repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;

Parameters
Name Description
index int
builderForValue ExamplesRestrictionsNamespace.Builder
Returns
Type Description
ExamplesOverride.Builder

addRestrictionsBuilder()

publicExamplesRestrictionsNamespace.BuilderaddRestrictionsBuilder()

Restrict the resulting nearest neighbors to respect these constraints.

repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;

Returns
Type Description
ExamplesRestrictionsNamespace.Builder

addRestrictionsBuilder(int index)

publicExamplesRestrictionsNamespace.BuilderaddRestrictionsBuilder(intindex)

Restrict the resulting nearest neighbors to respect these constraints.

repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;

Parameter
Name Description
index int
Returns
Type Description
ExamplesRestrictionsNamespace.Builder

build()

publicExamplesOverridebuild()
Returns
Type Description
ExamplesOverride

buildPartial()

publicExamplesOverridebuildPartial()
Returns
Type Description
ExamplesOverride

clear()

publicExamplesOverride.Builderclear()
Returns
Type Description
ExamplesOverride.Builder
Overrides

clearCrowdingCount()

publicExamplesOverride.BuilderclearCrowdingCount()

The number of neighbors to return that have the same crowding tag.

int32 crowding_count = 2;

Returns
Type Description
ExamplesOverride.Builder

This builder for chaining.

clearDataFormat()

publicExamplesOverride.BuilderclearDataFormat()

The format of the data being provided with each call.

.google.cloud.vertexai.v1beta1.ExamplesOverride.DataFormat data_format = 5;

Returns
Type Description
ExamplesOverride.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicExamplesOverride.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ExamplesOverride.Builder
Overrides

clearNeighborCount()

publicExamplesOverride.BuilderclearNeighborCount()

The number of neighbors to return.

int32 neighbor_count = 1;

Returns
Type Description
ExamplesOverride.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicExamplesOverride.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ExamplesOverride.Builder
Overrides

clearRestrictions()

publicExamplesOverride.BuilderclearRestrictions()

Restrict the resulting nearest neighbors to respect these constraints.

repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;

Returns
Type Description
ExamplesOverride.Builder

clearReturnEmbeddings()

publicExamplesOverride.BuilderclearReturnEmbeddings()

If true, return the embeddings instead of neighbors.

bool return_embeddings = 4;

Returns
Type Description
ExamplesOverride.Builder

This builder for chaining.

clone()

publicExamplesOverride.Builderclone()
Returns
Type Description
ExamplesOverride.Builder
Overrides

getCrowdingCount()

publicintgetCrowdingCount()

The number of neighbors to return that have the same crowding tag.

int32 crowding_count = 2;

Returns
Type Description
int

The crowdingCount.

getDataFormat()

publicExamplesOverride.DataFormatgetDataFormat()

The format of the data being provided with each call.

.google.cloud.vertexai.v1beta1.ExamplesOverride.DataFormat data_format = 5;

Returns
Type Description
ExamplesOverride.DataFormat

The dataFormat.

getDataFormatValue()

publicintgetDataFormatValue()

The format of the data being provided with each call.

.google.cloud.vertexai.v1beta1.ExamplesOverride.DataFormat data_format = 5;

Returns
Type Description
int

The enum numeric value on the wire for dataFormat.

getDefaultInstanceForType()

publicExamplesOverridegetDefaultInstanceForType()
Returns
Type Description
ExamplesOverride

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNeighborCount()

publicintgetNeighborCount()

The number of neighbors to return.

int32 neighbor_count = 1;

Returns
Type Description
int

The neighborCount.

getRestrictions(int index)

publicExamplesRestrictionsNamespacegetRestrictions(intindex)

Restrict the resulting nearest neighbors to respect these constraints.

repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;

Parameter
Name Description
index int
Returns
Type Description
ExamplesRestrictionsNamespace

getRestrictionsBuilder(int index)

publicExamplesRestrictionsNamespace.BuildergetRestrictionsBuilder(intindex)

Restrict the resulting nearest neighbors to respect these constraints.

repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;

Parameter
Name Description
index int
Returns
Type Description
ExamplesRestrictionsNamespace.Builder

getRestrictionsBuilderList()

publicList<ExamplesRestrictionsNamespace.Builder>getRestrictionsBuilderList()

Restrict the resulting nearest neighbors to respect these constraints.

repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;

Returns
Type Description
List<Builder>

getRestrictionsCount()

publicintgetRestrictionsCount()

Restrict the resulting nearest neighbors to respect these constraints.

repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;

Returns
Type Description
int

getRestrictionsList()

publicList<ExamplesRestrictionsNamespace>getRestrictionsList()

Restrict the resulting nearest neighbors to respect these constraints.

repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;

Returns
Type Description
List<ExamplesRestrictionsNamespace>

getRestrictionsOrBuilder(int index)

publicExamplesRestrictionsNamespaceOrBuildergetRestrictionsOrBuilder(intindex)

Restrict the resulting nearest neighbors to respect these constraints.

repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;

Parameter
Name Description
index int
Returns
Type Description
ExamplesRestrictionsNamespaceOrBuilder

getRestrictionsOrBuilderList()

publicList<?extendsExamplesRestrictionsNamespaceOrBuilder>getRestrictionsOrBuilderList()

Restrict the resulting nearest neighbors to respect these constraints.

repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;

Returns
Type Description
List<? extends com.google.cloud.vertexai.api.ExamplesRestrictionsNamespaceOrBuilder>

getReturnEmbeddings()

publicbooleangetReturnEmbeddings()

If true, return the embeddings instead of neighbors.

bool return_embeddings = 4;

Returns
Type Description
boolean

The returnEmbeddings.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExamplesOverride other)

publicExamplesOverride.BuildermergeFrom(ExamplesOverrideother)
Parameter
Name Description
other ExamplesOverride
Returns
Type Description
ExamplesOverride.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicExamplesOverride.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExamplesOverride.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicExamplesOverride.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
ExamplesOverride.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalExamplesOverride.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ExamplesOverride.Builder
Overrides

removeRestrictions(int index)

publicExamplesOverride.BuilderremoveRestrictions(intindex)

Restrict the resulting nearest neighbors to respect these constraints.

repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;

Parameter
Name Description
index int
Returns
Type Description
ExamplesOverride.Builder

setCrowdingCount(int value)

publicExamplesOverride.BuildersetCrowdingCount(intvalue)

The number of neighbors to return that have the same crowding tag.

int32 crowding_count = 2;

Parameter
Name Description
value int

The crowdingCount to set.

Returns
Type Description
ExamplesOverride.Builder

This builder for chaining.

setDataFormat(ExamplesOverride.DataFormat value)

publicExamplesOverride.BuildersetDataFormat(ExamplesOverride.DataFormatvalue)

The format of the data being provided with each call.

.google.cloud.vertexai.v1beta1.ExamplesOverride.DataFormat data_format = 5;

Parameter
Name Description
value ExamplesOverride.DataFormat

The dataFormat to set.

Returns
Type Description
ExamplesOverride.Builder

This builder for chaining.

setDataFormatValue(int value)

publicExamplesOverride.BuildersetDataFormatValue(intvalue)

The format of the data being provided with each call.

.google.cloud.vertexai.v1beta1.ExamplesOverride.DataFormat data_format = 5;

Parameter
Name Description
value int

The enum numeric value on the wire for dataFormat to set.

Returns
Type Description
ExamplesOverride.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicExamplesOverride.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExamplesOverride.Builder
Overrides

setNeighborCount(int value)

publicExamplesOverride.BuildersetNeighborCount(intvalue)

The number of neighbors to return.

int32 neighbor_count = 1;

Parameter
Name Description
value int

The neighborCount to set.

Returns
Type Description
ExamplesOverride.Builder

This builder for chaining.

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

publicExamplesOverride.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ExamplesOverride.Builder
Overrides

setRestrictions(int index, ExamplesRestrictionsNamespace value)

publicExamplesOverride.BuildersetRestrictions(intindex,ExamplesRestrictionsNamespacevalue)

Restrict the resulting nearest neighbors to respect these constraints.

repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;

Parameters
Name Description
index int
value ExamplesRestrictionsNamespace
Returns
Type Description
ExamplesOverride.Builder

setRestrictions(int index, ExamplesRestrictionsNamespace.Builder builderForValue)

publicExamplesOverride.BuildersetRestrictions(intindex,ExamplesRestrictionsNamespace.BuilderbuilderForValue)

Restrict the resulting nearest neighbors to respect these constraints.

repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;

Parameters
Name Description
index int
builderForValue ExamplesRestrictionsNamespace.Builder
Returns
Type Description
ExamplesOverride.Builder

setReturnEmbeddings(boolean value)

publicExamplesOverride.BuildersetReturnEmbeddings(booleanvalue)

If true, return the embeddings instead of neighbors.

bool return_embeddings = 4;

Parameter
Name Description
value boolean

The returnEmbeddings to set.

Returns
Type Description
ExamplesOverride.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalExamplesOverride.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ExamplesOverride.Builder
Overrides

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年11月19日 UTC.