public static final class ExamplesOverride.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder> implements ExamplesOverrideOrBuilder
Overrides for example-based explanations.Protobuf type
google.cloud.vertexai.v1.ExamplesOverride| Modifier and Type | Method and Description |
|---|---|
ExamplesOverride.Builder |
addAllRestrictions(Iterable<? extends ExamplesRestrictionsNamespace> values)
Restrict the resulting nearest neighbors to respect these constraints.
|
ExamplesOverride.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ExamplesOverride.Builder |
addRestrictions(ExamplesRestrictionsNamespace.Builder builderForValue)
Restrict the resulting nearest neighbors to respect these constraints.
|
ExamplesOverride.Builder |
addRestrictions(ExamplesRestrictionsNamespace value)
Restrict the resulting nearest neighbors to respect these constraints.
|
ExamplesOverride.Builder |
addRestrictions(int index,
ExamplesRestrictionsNamespace.Builder builderForValue)
Restrict the resulting nearest neighbors to respect these constraints.
|
ExamplesOverride.Builder |
addRestrictions(int index,
ExamplesRestrictionsNamespace value)
Restrict the resulting nearest neighbors to respect these constraints.
|
ExamplesRestrictionsNamespace.Builder |
addRestrictionsBuilder()
Restrict the resulting nearest neighbors to respect these constraints.
|
ExamplesRestrictionsNamespace.Builder |
addRestrictionsBuilder(int index)
Restrict the resulting nearest neighbors to respect these constraints.
|
ExamplesOverride |
build() |
ExamplesOverride |
buildPartial() |
ExamplesOverride.Builder |
clear() |
ExamplesOverride.Builder |
clearCrowdingCount()
The number of neighbors to return that have the same crowding tag.
|
ExamplesOverride.Builder |
clearDataFormat()
The format of the data being provided with each call.
|
ExamplesOverride.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ExamplesOverride.Builder |
clearNeighborCount()
The number of neighbors to return.
|
ExamplesOverride.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ExamplesOverride.Builder |
clearRestrictions()
Restrict the resulting nearest neighbors to respect these constraints.
|
ExamplesOverride.Builder |
clearReturnEmbeddings()
If true, return the embeddings instead of neighbors.
|
ExamplesOverride.Builder |
clone() |
int |
getCrowdingCount()
The number of neighbors to return that have the same crowding tag.
|
ExamplesOverride.DataFormat |
getDataFormat()
The format of the data being provided with each call.
|
int |
getDataFormatValue()
The format of the data being provided with each call.
|
ExamplesOverride |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getNeighborCount()
The number of neighbors to return.
|
ExamplesRestrictionsNamespace |
getRestrictions(int index)
Restrict the resulting nearest neighbors to respect these constraints.
|
ExamplesRestrictionsNamespace.Builder |
getRestrictionsBuilder(int index)
Restrict the resulting nearest neighbors to respect these constraints.
|
List<ExamplesRestrictionsNamespace.Builder> |
getRestrictionsBuilderList()
Restrict the resulting nearest neighbors to respect these constraints.
|
int |
getRestrictionsCount()
Restrict the resulting nearest neighbors to respect these constraints.
|
List<ExamplesRestrictionsNamespace> |
getRestrictionsList()
Restrict the resulting nearest neighbors to respect these constraints.
|
ExamplesRestrictionsNamespaceOrBuilder |
getRestrictionsOrBuilder(int index)
Restrict the resulting nearest neighbors to respect these constraints.
|
List<? extends ExamplesRestrictionsNamespaceOrBuilder> |
getRestrictionsOrBuilderList()
Restrict the resulting nearest neighbors to respect these constraints.
|
boolean |
getReturnEmbeddings()
If true, return the embeddings instead of neighbors.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ExamplesOverride.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ExamplesOverride.Builder |
mergeFrom(ExamplesOverride other) |
ExamplesOverride.Builder |
mergeFrom(com.google.protobuf.Message other) |
ExamplesOverride.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ExamplesOverride.Builder |
removeRestrictions(int index)
Restrict the resulting nearest neighbors to respect these constraints.
|
ExamplesOverride.Builder |
setCrowdingCount(int value)
The number of neighbors to return that have the same crowding tag.
|
ExamplesOverride.Builder |
setDataFormat(ExamplesOverride.DataFormat value)
The format of the data being provided with each call.
|
ExamplesOverride.Builder |
setDataFormatValue(int value)
The format of the data being provided with each call.
|
ExamplesOverride.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ExamplesOverride.Builder |
setNeighborCount(int value)
The number of neighbors to return.
|
ExamplesOverride.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ExamplesOverride.Builder |
setRestrictions(int index,
ExamplesRestrictionsNamespace.Builder builderForValue)
Restrict the resulting nearest neighbors to respect these constraints.
|
ExamplesOverride.Builder |
setRestrictions(int index,
ExamplesRestrictionsNamespace value)
Restrict the resulting nearest neighbors to respect these constraints.
|
ExamplesOverride.Builder |
setReturnEmbeddings(boolean value)
If true, return the embeddings instead of neighbors.
|
ExamplesOverride.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>public ExamplesOverride.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>public ExamplesOverride getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ExamplesOverride build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ExamplesOverride buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ExamplesOverride.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>public ExamplesOverride.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>public ExamplesOverride.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>public ExamplesOverride.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>public ExamplesOverride.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>public ExamplesOverride.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>public ExamplesOverride.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExamplesOverride.Builder>public ExamplesOverride.Builder mergeFrom(ExamplesOverride other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>public ExamplesOverride.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExamplesOverride.Builder>IOExceptionpublic int getNeighborCount()
The number of neighbors to return.
int32 neighbor_count = 1;getNeighborCount in interface ExamplesOverrideOrBuilderpublic ExamplesOverride.Builder setNeighborCount(int value)
The number of neighbors to return.
int32 neighbor_count = 1;value - The neighborCount to set.public ExamplesOverride.Builder clearNeighborCount()
The number of neighbors to return.
int32 neighbor_count = 1;public int getCrowdingCount()
The number of neighbors to return that have the same crowding tag.
int32 crowding_count = 2;getCrowdingCount in interface ExamplesOverrideOrBuilderpublic ExamplesOverride.Builder setCrowdingCount(int value)
The number of neighbors to return that have the same crowding tag.
int32 crowding_count = 2;value - The crowdingCount to set.public ExamplesOverride.Builder clearCrowdingCount()
The number of neighbors to return that have the same crowding tag.
int32 crowding_count = 2;public List<ExamplesRestrictionsNamespace> getRestrictionsList()
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1.ExamplesRestrictionsNamespace restrictions = 3;
getRestrictionsList in interface ExamplesOverrideOrBuilderpublic int getRestrictionsCount()
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1.ExamplesRestrictionsNamespace restrictions = 3;
getRestrictionsCount in interface ExamplesOverrideOrBuilderpublic ExamplesRestrictionsNamespace getRestrictions(int index)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1.ExamplesRestrictionsNamespace restrictions = 3;
getRestrictions in interface ExamplesOverrideOrBuilderpublic ExamplesOverride.Builder setRestrictions(int index, ExamplesRestrictionsNamespace value)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1.ExamplesRestrictionsNamespace restrictions = 3;
public ExamplesOverride.Builder setRestrictions(int index, ExamplesRestrictionsNamespace.Builder builderForValue)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1.ExamplesRestrictionsNamespace restrictions = 3;
public ExamplesOverride.Builder addRestrictions(ExamplesRestrictionsNamespace value)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1.ExamplesRestrictionsNamespace restrictions = 3;
public ExamplesOverride.Builder addRestrictions(int index, ExamplesRestrictionsNamespace value)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1.ExamplesRestrictionsNamespace restrictions = 3;
public ExamplesOverride.Builder addRestrictions(ExamplesRestrictionsNamespace.Builder builderForValue)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1.ExamplesRestrictionsNamespace restrictions = 3;
public ExamplesOverride.Builder addRestrictions(int index, ExamplesRestrictionsNamespace.Builder builderForValue)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1.ExamplesRestrictionsNamespace restrictions = 3;
public ExamplesOverride.Builder addAllRestrictions(Iterable<? extends ExamplesRestrictionsNamespace> values)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1.ExamplesRestrictionsNamespace restrictions = 3;
public ExamplesOverride.Builder clearRestrictions()
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1.ExamplesRestrictionsNamespace restrictions = 3;
public ExamplesOverride.Builder removeRestrictions(int index)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1.ExamplesRestrictionsNamespace restrictions = 3;
public ExamplesRestrictionsNamespace.Builder getRestrictionsBuilder(int index)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1.ExamplesRestrictionsNamespace restrictions = 3;
public ExamplesRestrictionsNamespaceOrBuilder getRestrictionsOrBuilder(int index)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1.ExamplesRestrictionsNamespace restrictions = 3;
getRestrictionsOrBuilder in interface ExamplesOverrideOrBuilderpublic List<? extends ExamplesRestrictionsNamespaceOrBuilder> getRestrictionsOrBuilderList()
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1.ExamplesRestrictionsNamespace restrictions = 3;
getRestrictionsOrBuilderList in interface ExamplesOverrideOrBuilderpublic ExamplesRestrictionsNamespace.Builder addRestrictionsBuilder()
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1.ExamplesRestrictionsNamespace restrictions = 3;
public ExamplesRestrictionsNamespace.Builder addRestrictionsBuilder(int index)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1.ExamplesRestrictionsNamespace restrictions = 3;
public List<ExamplesRestrictionsNamespace.Builder> getRestrictionsBuilderList()
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1.ExamplesRestrictionsNamespace restrictions = 3;
public boolean getReturnEmbeddings()
If true, return the embeddings instead of neighbors.
bool return_embeddings = 4;getReturnEmbeddings in interface ExamplesOverrideOrBuilderpublic ExamplesOverride.Builder setReturnEmbeddings(boolean value)
If true, return the embeddings instead of neighbors.
bool return_embeddings = 4;value - The returnEmbeddings to set.public ExamplesOverride.Builder clearReturnEmbeddings()
If true, return the embeddings instead of neighbors.
bool return_embeddings = 4;public int getDataFormatValue()
The format of the data being provided with each call.
.google.cloud.vertexai.v1.ExamplesOverride.DataFormat data_format = 5;getDataFormatValue in interface ExamplesOverrideOrBuilderpublic ExamplesOverride.Builder setDataFormatValue(int value)
The format of the data being provided with each call.
.google.cloud.vertexai.v1.ExamplesOverride.DataFormat data_format = 5;value - The enum numeric value on the wire for dataFormat to set.public ExamplesOverride.DataFormat getDataFormat()
The format of the data being provided with each call.
.google.cloud.vertexai.v1.ExamplesOverride.DataFormat data_format = 5;getDataFormat in interface ExamplesOverrideOrBuilderpublic ExamplesOverride.Builder setDataFormat(ExamplesOverride.DataFormat value)
The format of the data being provided with each call.
.google.cloud.vertexai.v1.ExamplesOverride.DataFormat data_format = 5;value - The dataFormat to set.public ExamplesOverride.Builder clearDataFormat()
The format of the data being provided with each call.
.google.cloud.vertexai.v1.ExamplesOverride.DataFormat data_format = 5;public final ExamplesOverride.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>public final ExamplesOverride.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>Copyright © 2025 Google LLC. All rights reserved.