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.v1beta1.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.v1beta1.ExamplesOverride
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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(int index, 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(ExamplesRestrictionsNamespace value)
Restrict the resulting nearest neighbors to respect these constraints.ExamplesOverride.Builder
addRestrictions(ExamplesRestrictionsNamespace.Builder builderForValue)
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(ExamplesOverride other)
ExamplesOverride.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
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 value)
Restrict the resulting nearest neighbors to respect these constraints.ExamplesOverride.Builder
setRestrictions(int index, ExamplesRestrictionsNamespace.Builder builderForValue)
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)
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>
-
clear
public ExamplesOverride.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>
-
getDefaultInstanceForType
public ExamplesOverride getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ExamplesOverride build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ExamplesOverride buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ExamplesOverride.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>
-
setField
public ExamplesOverride.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>
-
clearField
public ExamplesOverride.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>
-
clearOneof
public ExamplesOverride.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>
-
setRepeatedField
public ExamplesOverride.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>
-
addRepeatedField
public ExamplesOverride.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>
-
mergeFrom
public ExamplesOverride.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ExamplesOverride.Builder>
-
mergeFrom
public ExamplesOverride.Builder mergeFrom(ExamplesOverride other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getNeighborCount
in 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:
getCrowdingCount
in 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.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
- Specified by:
getRestrictionsList
in interfaceExamplesOverrideOrBuilder
-
getRestrictionsCount
public int getRestrictionsCount()
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
- Specified by:
getRestrictionsCount
in interfaceExamplesOverrideOrBuilder
-
getRestrictions
public ExamplesRestrictionsNamespace getRestrictions(int index)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
- Specified by:
getRestrictions
in interfaceExamplesOverrideOrBuilder
-
setRestrictions
public ExamplesOverride.Builder setRestrictions(int index, ExamplesRestrictionsNamespace value)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
-
addRestrictions
public ExamplesOverride.Builder addRestrictions(ExamplesRestrictionsNamespace value)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
-
addRestrictions
public ExamplesOverride.Builder addRestrictions(ExamplesRestrictionsNamespace.Builder builderForValue)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
-
clearRestrictions
public ExamplesOverride.Builder clearRestrictions()
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
-
removeRestrictions
public ExamplesOverride.Builder removeRestrictions(int index)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
-
getRestrictionsBuilder
public ExamplesRestrictionsNamespace.Builder getRestrictionsBuilder(int index)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
-
getRestrictionsOrBuilder
public ExamplesRestrictionsNamespaceOrBuilder getRestrictionsOrBuilder(int index)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
- Specified by:
getRestrictionsOrBuilder
in interfaceExamplesOverrideOrBuilder
-
getRestrictionsOrBuilderList
public List<? extends ExamplesRestrictionsNamespaceOrBuilder> getRestrictionsOrBuilderList()
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
- Specified by:
getRestrictionsOrBuilderList
in interfaceExamplesOverrideOrBuilder
-
addRestrictionsBuilder
public ExamplesRestrictionsNamespace.Builder addRestrictionsBuilder()
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
-
addRestrictionsBuilder
public ExamplesRestrictionsNamespace.Builder addRestrictionsBuilder(int index)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
-
getRestrictionsBuilderList
public List<ExamplesRestrictionsNamespace.Builder> getRestrictionsBuilderList()
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
-
getReturnEmbeddings
public boolean getReturnEmbeddings()
If true, return the embeddings instead of neighbors.
bool return_embeddings = 4;
- Specified by:
getReturnEmbeddings
in 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.v1beta1.ExamplesOverride.DataFormat data_format = 5;
- Specified by:
getDataFormatValue
in 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.v1beta1.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.v1beta1.ExamplesOverride.DataFormat data_format = 5;
- Specified by:
getDataFormat
in 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.v1beta1.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.v1beta1.ExamplesOverride.DataFormat data_format = 5;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final ExamplesOverride.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>
-
mergeUnknownFields
public final ExamplesOverride.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExamplesOverride.Builder>
-
-