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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<ExamplesOverride.Builder> implements ExamplesOverrideOrBuilder
Overrides for example-based explanations.
Protobuf typegoogle.cloud.aiplatform.v1.ExamplesOverride
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExamplesOverride.BuilderaddAllRestrictions(Iterable<? extends ExamplesRestrictionsNamespace> values)Restrict the resulting nearest neighbors to respect these constraints.ExamplesOverride.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ExamplesOverride.BuilderaddRestrictions(int index, ExamplesRestrictionsNamespace value)Restrict the resulting nearest neighbors to respect these constraints.ExamplesOverride.BuilderaddRestrictions(int index, ExamplesRestrictionsNamespace.Builder builderForValue)Restrict the resulting nearest neighbors to respect these constraints.ExamplesOverride.BuilderaddRestrictions(ExamplesRestrictionsNamespace value)Restrict the resulting nearest neighbors to respect these constraints.ExamplesOverride.BuilderaddRestrictions(ExamplesRestrictionsNamespace.Builder builderForValue)Restrict the resulting nearest neighbors to respect these constraints.ExamplesRestrictionsNamespace.BuilderaddRestrictionsBuilder()Restrict the resulting nearest neighbors to respect these constraints.ExamplesRestrictionsNamespace.BuilderaddRestrictionsBuilder(int index)Restrict the resulting nearest neighbors to respect these constraints.ExamplesOverridebuild()ExamplesOverridebuildPartial()ExamplesOverride.Builderclear()ExamplesOverride.BuilderclearCrowdingCount()The number of neighbors to return that have the same crowding tag.ExamplesOverride.BuilderclearDataFormat()The format of the data being provided with each call.ExamplesOverride.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ExamplesOverride.BuilderclearNeighborCount()The number of neighbors to return.ExamplesOverride.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ExamplesOverride.BuilderclearRestrictions()Restrict the resulting nearest neighbors to respect these constraints.ExamplesOverride.BuilderclearReturnEmbeddings()If true, return the embeddings instead of neighbors.ExamplesOverride.Builderclone()intgetCrowdingCount()The number of neighbors to return that have the same crowding tag.ExamplesOverride.DataFormatgetDataFormat()The format of the data being provided with each call.intgetDataFormatValue()The format of the data being provided with each call.ExamplesOverridegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetNeighborCount()The number of neighbors to return.ExamplesRestrictionsNamespacegetRestrictions(int index)Restrict the resulting nearest neighbors to respect these constraints.ExamplesRestrictionsNamespace.BuildergetRestrictionsBuilder(int index)Restrict the resulting nearest neighbors to respect these constraints.List<ExamplesRestrictionsNamespace.Builder>getRestrictionsBuilderList()Restrict the resulting nearest neighbors to respect these constraints.intgetRestrictionsCount()Restrict the resulting nearest neighbors to respect these constraints.List<ExamplesRestrictionsNamespace>getRestrictionsList()Restrict the resulting nearest neighbors to respect these constraints.ExamplesRestrictionsNamespaceOrBuildergetRestrictionsOrBuilder(int index)Restrict the resulting nearest neighbors to respect these constraints.List<? extends ExamplesRestrictionsNamespaceOrBuilder>getRestrictionsOrBuilderList()Restrict the resulting nearest neighbors to respect these constraints.booleangetReturnEmbeddings()If true, return the embeddings instead of neighbors.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ExamplesOverride.BuildermergeFrom(ExamplesOverride other)ExamplesOverride.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ExamplesOverride.BuildermergeFrom(com.google.protobuf.Message other)ExamplesOverride.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ExamplesOverride.BuilderremoveRestrictions(int index)Restrict the resulting nearest neighbors to respect these constraints.ExamplesOverride.BuildersetCrowdingCount(int value)The number of neighbors to return that have the same crowding tag.ExamplesOverride.BuildersetDataFormat(ExamplesOverride.DataFormat value)The format of the data being provided with each call.ExamplesOverride.BuildersetDataFormatValue(int value)The format of the data being provided with each call.ExamplesOverride.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ExamplesOverride.BuildersetNeighborCount(int value)The number of neighbors to return.ExamplesOverride.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ExamplesOverride.BuildersetRestrictions(int index, ExamplesRestrictionsNamespace value)Restrict the resulting nearest neighbors to respect these constraints.ExamplesOverride.BuildersetRestrictions(int index, ExamplesRestrictionsNamespace.Builder builderForValue)Restrict the resulting nearest neighbors to respect these constraints.ExamplesOverride.BuildersetReturnEmbeddings(boolean value)If true, return the embeddings instead of neighbors.ExamplesOverride.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>
-
clear
public ExamplesOverride.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<ExamplesOverride.Builder>
-
getDefaultInstanceForType
public ExamplesOverride getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ExamplesOverride build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ExamplesOverride buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ExamplesOverride.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>
-
setField
public ExamplesOverride.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>
-
clearField
public ExamplesOverride.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>
-
clearOneof
public ExamplesOverride.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>
-
setRepeatedField
public ExamplesOverride.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>
-
addRepeatedField
public ExamplesOverride.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>
-
mergeFrom
public ExamplesOverride.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExamplesOverride.Builder>
-
mergeFrom
public ExamplesOverride.Builder mergeFrom(ExamplesOverride other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public ExamplesOverride.Builder setNeighborCount(int value)
The number of neighbors to return.
int32 neighbor_count = 1;- Parameters:
value- The neighborCount to set.- Returns:
- This builder for chaining.
-
clearNeighborCount
public ExamplesOverride.Builder 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
public ExamplesOverride.Builder setCrowdingCount(int value)
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
public ExamplesOverride.Builder clearCrowdingCount()
The number of neighbors to return that have the same crowding tag.
int32 crowding_count = 2;- Returns:
- This builder for chaining.
-
getRestrictionsList
public List<ExamplesRestrictionsNamespace> 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
public ExamplesRestrictionsNamespace getRestrictions(int index)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3;- Specified by:
getRestrictionsin interfaceExamplesOverrideOrBuilder
-
setRestrictions
public ExamplesOverride.Builder setRestrictions(int index, ExamplesRestrictionsNamespace value)
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
public ExamplesOverride.Builder addRestrictions(ExamplesRestrictionsNamespace value)
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 value)
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
public ExamplesOverride.Builder clearRestrictions()
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3;
-
removeRestrictions
public ExamplesOverride.Builder removeRestrictions(int index)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3;
-
getRestrictionsBuilder
public ExamplesRestrictionsNamespace.Builder getRestrictionsBuilder(int index)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3;
-
getRestrictionsOrBuilder
public ExamplesRestrictionsNamespaceOrBuilder getRestrictionsOrBuilder(int index)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3;- Specified by:
getRestrictionsOrBuilderin interfaceExamplesOverrideOrBuilder
-
getRestrictionsOrBuilderList
public List<? extends ExamplesRestrictionsNamespaceOrBuilder> getRestrictionsOrBuilderList()
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3;- Specified by:
getRestrictionsOrBuilderListin interfaceExamplesOverrideOrBuilder
-
addRestrictionsBuilder
public ExamplesRestrictionsNamespace.Builder addRestrictionsBuilder()
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3;
-
addRestrictionsBuilder
public ExamplesRestrictionsNamespace.Builder addRestrictionsBuilder(int index)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3;
-
getRestrictionsBuilderList
public List<ExamplesRestrictionsNamespace.Builder> 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
public ExamplesOverride.Builder setReturnEmbeddings(boolean value)
If true, return the embeddings instead of neighbors.
bool return_embeddings = 4;- Parameters:
value- The returnEmbeddings to set.- Returns:
- This builder for chaining.
-
clearReturnEmbeddings
public ExamplesOverride.Builder 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
public ExamplesOverride.Builder setDataFormatValue(int value)
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
public ExamplesOverride.DataFormat 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
public ExamplesOverride.Builder setDataFormat(ExamplesOverride.DataFormat value)
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
public ExamplesOverride.Builder 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.
-
setUnknownFields
public final ExamplesOverride.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>
-
mergeUnknownFields
public final ExamplesOverride.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>
-
-