Package com.google.cloud.aiplatform.v1
Class ExamplesOverride.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExamplesOverride.Builder>
com.google.cloud.aiplatform.v1.ExamplesOverride.Builder
- All Implemented Interfaces:
ExamplesOverrideOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ExamplesOverride
public static final class ExamplesOverride.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ExamplesOverride.Builder>
implements ExamplesOverrideOrBuilder
Overrides for example-based explanations.Protobuf type
google.cloud.aiplatform.v1.ExamplesOverride-
Method Summary
Modifier and TypeMethodDescriptionaddAllRestrictions(Iterable<? extends ExamplesRestrictionsNamespace> values) Restrict the resulting nearest neighbors to respect these constraints.addRestrictions(int index, ExamplesRestrictionsNamespace value) Restrict the resulting nearest neighbors to respect these constraints.addRestrictions(int index, ExamplesRestrictionsNamespace.Builder builderForValue) Restrict the resulting nearest neighbors to respect these constraints.Restrict the resulting nearest neighbors to respect these constraints.addRestrictions(ExamplesRestrictionsNamespace.Builder builderForValue) Restrict the resulting nearest neighbors to respect these constraints.Restrict the resulting nearest neighbors to respect these constraints.addRestrictionsBuilder(int index) Restrict the resulting nearest neighbors to respect these constraints.build()clear()The number of neighbors to return that have the same crowding tag.The format of the data being provided with each call.The number of neighbors to return.Restrict the resulting nearest neighbors to respect these constraints.If true, return the embeddings instead of neighbors.intThe number of neighbors to return that have the same crowding tag.The format of the data being provided with each call.intThe format of the data being provided with each call.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintThe number of neighbors to return.getRestrictions(int index) Restrict the resulting nearest neighbors to respect these constraints.getRestrictionsBuilder(int index) Restrict the resulting nearest neighbors to respect these constraints.Restrict the resulting nearest neighbors to respect these constraints.intRestrict the resulting nearest neighbors to respect these constraints.Restrict the resulting nearest neighbors to respect these constraints.getRestrictionsOrBuilder(int index) Restrict the resulting nearest neighbors to respect these constraints.List<? extends ExamplesRestrictionsNamespaceOrBuilder>Restrict the resulting nearest neighbors to respect these constraints.booleanIf true, return the embeddings instead of neighbors.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ExamplesOverride other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeRestrictions(int index) Restrict the resulting nearest neighbors to respect these constraints.setCrowdingCount(int value) The number of neighbors to return that have the same crowding tag.The format of the data being provided with each call.setDataFormatValue(int value) The format of the data being provided with each call.setNeighborCount(int value) The number of neighbors to return.setRestrictions(int index, ExamplesRestrictionsNamespace value) Restrict the resulting nearest neighbors to respect these constraints.setRestrictions(int index, ExamplesRestrictionsNamespace.Builder builderForValue) Restrict the resulting nearest neighbors to respect these constraints.setReturnEmbeddings(boolean value) If true, return the embeddings instead of neighbors.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ExamplesOverride.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ExamplesOverride.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ExamplesOverride.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExamplesOverride.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ExamplesOverride.Builder>
-
mergeFrom
public ExamplesOverride.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExamplesOverride.Builder>- Throws:
IOException
-
getNeighborCount
public int getNeighborCount()The number of neighbors to return.
int32 neighbor_count = 1;- Specified by:
getNeighborCountin interfaceExamplesOverrideOrBuilder- Returns:
- The neighborCount.
-
setNeighborCount
The number of neighbors to return.
int32 neighbor_count = 1;- Parameters:
value- The neighborCount to set.- Returns:
- This builder for chaining.
-
clearNeighborCount
The number of neighbors to return.
int32 neighbor_count = 1;- Returns:
- This builder for chaining.
-
getCrowdingCount
public int getCrowdingCount()The number of neighbors to return that have the same crowding tag.
int32 crowding_count = 2;- Specified by:
getCrowdingCountin interfaceExamplesOverrideOrBuilder- Returns:
- The crowdingCount.
-
setCrowdingCount
The number of neighbors to return that have the same crowding tag.
int32 crowding_count = 2;- Parameters:
value- The crowdingCount to set.- Returns:
- This builder for chaining.
-
clearCrowdingCount
The number of neighbors to return that have the same crowding tag.
int32 crowding_count = 2;- Returns:
- This builder for chaining.
-
getRestrictionsList
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3;- Specified by:
getRestrictionsListin interfaceExamplesOverrideOrBuilder
-
getRestrictionsCount
public int getRestrictionsCount()Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3;- Specified by:
getRestrictionsCountin interfaceExamplesOverrideOrBuilder
-
getRestrictions
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3;- Specified by:
getRestrictionsin interfaceExamplesOverrideOrBuilder
-
setRestrictions
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; -
setRestrictions
public ExamplesOverride.Builder setRestrictions(int index, ExamplesRestrictionsNamespace.Builder builderForValue) Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; -
addRestrictions
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; -
addRestrictions
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; -
addRestrictions
public ExamplesOverride.Builder addRestrictions(ExamplesRestrictionsNamespace.Builder builderForValue) Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; -
addRestrictions
public ExamplesOverride.Builder addRestrictions(int index, ExamplesRestrictionsNamespace.Builder builderForValue) Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; -
addAllRestrictions
public ExamplesOverride.Builder addAllRestrictions(Iterable<? extends ExamplesRestrictionsNamespace> values) Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; -
clearRestrictions
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; -
removeRestrictions
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; -
getRestrictionsBuilder
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; -
getRestrictionsOrBuilder
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3;- Specified by:
getRestrictionsOrBuilderin interfaceExamplesOverrideOrBuilder
-
getRestrictionsOrBuilderList
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3;- Specified by:
getRestrictionsOrBuilderListin interfaceExamplesOverrideOrBuilder
-
addRestrictionsBuilder
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; -
addRestrictionsBuilder
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; -
getRestrictionsBuilderList
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; -
getReturnEmbeddings
public boolean getReturnEmbeddings()If true, return the embeddings instead of neighbors.
bool return_embeddings = 4;- Specified by:
getReturnEmbeddingsin interfaceExamplesOverrideOrBuilder- Returns:
- The returnEmbeddings.
-
setReturnEmbeddings
If true, return the embeddings instead of neighbors.
bool return_embeddings = 4;- Parameters:
value- The returnEmbeddings to set.- Returns:
- This builder for chaining.
-
clearReturnEmbeddings
If true, return the embeddings instead of neighbors.
bool return_embeddings = 4;- Returns:
- This builder for chaining.
-
getDataFormatValue
public int getDataFormatValue()The format of the data being provided with each call.
.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat data_format = 5;- Specified by:
getDataFormatValuein interfaceExamplesOverrideOrBuilder- Returns:
- The enum numeric value on the wire for dataFormat.
-
setDataFormatValue
The format of the data being provided with each call.
.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat data_format = 5;- Parameters:
value- The enum numeric value on the wire for dataFormat to set.- Returns:
- This builder for chaining.
-
getDataFormat
The format of the data being provided with each call.
.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat data_format = 5;- Specified by:
getDataFormatin interfaceExamplesOverrideOrBuilder- Returns:
- The dataFormat.
-
setDataFormat
The format of the data being provided with each call.
.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat data_format = 5;- Parameters:
value- The dataFormat to set.- Returns:
- This builder for chaining.
-
clearDataFormat
The format of the data being provided with each call.
.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat data_format = 5;- Returns:
- This builder for chaining.
-