Package com.google.cloud.aiplatform.v1
Class IndexDatapoint.NumericRestriction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<IndexDatapoint.NumericRestriction.Builder>
com.google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.Builder
- All Implemented Interfaces:
IndexDatapoint.NumericRestrictionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- IndexDatapoint.NumericRestriction
public static final class IndexDatapoint.NumericRestriction.Builder
extends com.google.protobuf.GeneratedMessage.Builder<IndexDatapoint.NumericRestriction.Builder>
implements IndexDatapoint.NumericRestrictionOrBuilder
This field allows restricts to be based on numeric comparisons rather than categorical tokens.Protobuf type
google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The namespace of this restriction. e.g.: cost.clearOp()This MUST be specified for queries and must NOT be specified for datapoints.Represents 64 bit float.Represents 32 bit float.Represents 64 bit integer.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe namespace of this restriction. e.g.: cost.com.google.protobuf.ByteStringThe namespace of this restriction. e.g.: cost.getOp()This MUST be specified for queries and must NOT be specified for datapoints.intThis MUST be specified for queries and must NOT be specified for datapoints.doubleRepresents 64 bit float.floatRepresents 32 bit float.longRepresents 64 bit integer.booleanRepresents 64 bit float.booleanRepresents 32 bit float.booleanRepresents 64 bit integer.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setNamespace(String value) The namespace of this restriction. e.g.: cost.setNamespaceBytes(com.google.protobuf.ByteString value) The namespace of this restriction. e.g.: cost.This MUST be specified for queries and must NOT be specified for datapoints.setOpValue(int value) This MUST be specified for queries and must NOT be specified for datapoints.setValueDouble(double value) Represents 64 bit float.setValueFloat(float value) Represents 32 bit float.setValueInt(long value) Represents 64 bit integer.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<IndexDatapoint.NumericRestriction.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<IndexDatapoint.NumericRestriction.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<IndexDatapoint.NumericRestriction.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<IndexDatapoint.NumericRestriction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<IndexDatapoint.NumericRestriction.Builder>
-
mergeFrom
public IndexDatapoint.NumericRestriction.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<IndexDatapoint.NumericRestriction.Builder>- Throws:
IOException
-
getValueCase
- Specified by:
getValueCasein interfaceIndexDatapoint.NumericRestrictionOrBuilder
-
clearValue
-
hasValueInt
public boolean hasValueInt()Represents 64 bit integer.
int64 value_int = 2;- Specified by:
hasValueIntin interfaceIndexDatapoint.NumericRestrictionOrBuilder- Returns:
- Whether the valueInt field is set.
-
getValueInt
public long getValueInt()Represents 64 bit integer.
int64 value_int = 2;- Specified by:
getValueIntin interfaceIndexDatapoint.NumericRestrictionOrBuilder- Returns:
- The valueInt.
-
setValueInt
Represents 64 bit integer.
int64 value_int = 2;- Parameters:
value- The valueInt to set.- Returns:
- This builder for chaining.
-
clearValueInt
Represents 64 bit integer.
int64 value_int = 2;- Returns:
- This builder for chaining.
-
hasValueFloat
public boolean hasValueFloat()Represents 32 bit float.
float value_float = 3;- Specified by:
hasValueFloatin interfaceIndexDatapoint.NumericRestrictionOrBuilder- Returns:
- Whether the valueFloat field is set.
-
getValueFloat
public float getValueFloat()Represents 32 bit float.
float value_float = 3;- Specified by:
getValueFloatin interfaceIndexDatapoint.NumericRestrictionOrBuilder- Returns:
- The valueFloat.
-
setValueFloat
Represents 32 bit float.
float value_float = 3;- Parameters:
value- The valueFloat to set.- Returns:
- This builder for chaining.
-
clearValueFloat
Represents 32 bit float.
float value_float = 3;- Returns:
- This builder for chaining.
-
hasValueDouble
public boolean hasValueDouble()Represents 64 bit float.
double value_double = 4;- Specified by:
hasValueDoublein interfaceIndexDatapoint.NumericRestrictionOrBuilder- Returns:
- Whether the valueDouble field is set.
-
getValueDouble
public double getValueDouble()Represents 64 bit float.
double value_double = 4;- Specified by:
getValueDoublein interfaceIndexDatapoint.NumericRestrictionOrBuilder- Returns:
- The valueDouble.
-
setValueDouble
Represents 64 bit float.
double value_double = 4;- Parameters:
value- The valueDouble to set.- Returns:
- This builder for chaining.
-
clearValueDouble
Represents 64 bit float.
double value_double = 4;- Returns:
- This builder for chaining.
-
getNamespace
The namespace of this restriction. e.g.: cost.
string namespace = 1;- Specified by:
getNamespacein interfaceIndexDatapoint.NumericRestrictionOrBuilder- Returns:
- The namespace.
-
getNamespaceBytes
public com.google.protobuf.ByteString getNamespaceBytes()The namespace of this restriction. e.g.: cost.
string namespace = 1;- Specified by:
getNamespaceBytesin interfaceIndexDatapoint.NumericRestrictionOrBuilder- Returns:
- The bytes for namespace.
-
setNamespace
The namespace of this restriction. e.g.: cost.
string namespace = 1;- Parameters:
value- The namespace to set.- Returns:
- This builder for chaining.
-
clearNamespace
The namespace of this restriction. e.g.: cost.
string namespace = 1;- Returns:
- This builder for chaining.
-
setNamespaceBytes
public IndexDatapoint.NumericRestriction.Builder setNamespaceBytes(com.google.protobuf.ByteString value) The namespace of this restriction. e.g.: cost.
string namespace = 1;- Parameters:
value- The bytes for namespace to set.- Returns:
- This builder for chaining.
-
getOpValue
public int getOpValue()This MUST be specified for queries and must NOT be specified for datapoints.
.google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.Operator op = 5;- Specified by:
getOpValuein interfaceIndexDatapoint.NumericRestrictionOrBuilder- Returns:
- The enum numeric value on the wire for op.
-
setOpValue
This MUST be specified for queries and must NOT be specified for datapoints.
.google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.Operator op = 5;- Parameters:
value- The enum numeric value on the wire for op to set.- Returns:
- This builder for chaining.
-
getOp
This MUST be specified for queries and must NOT be specified for datapoints.
.google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.Operator op = 5;- Specified by:
getOpin interfaceIndexDatapoint.NumericRestrictionOrBuilder- Returns:
- The op.
-
setOp
public IndexDatapoint.NumericRestriction.Builder setOp(IndexDatapoint.NumericRestriction.Operator value) This MUST be specified for queries and must NOT be specified for datapoints.
.google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.Operator op = 5;- Parameters:
value- The op to set.- Returns:
- This builder for chaining.
-
clearOp
This MUST be specified for queries and must NOT be specified for datapoints.
.google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.Operator op = 5;- Returns:
- This builder for chaining.
-