Package org.tensorflow.metadata.v0
Class IntDomain.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<IntDomain.Builder>
-
- org.tensorflow.metadata.v0.IntDomain.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,IntDomainOrBuilder
- Enclosing class:
- IntDomain
public static final class IntDomain.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<IntDomain.Builder> implements IntDomainOrBuilder
Encodes information for domains of integer values. Note that FeatureType could be either INT or BYTES.
Protobuf typetensorflow.metadata.v0.IntDomain
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IntDomain.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)IntDomainbuild()IntDomainbuildPartial()IntDomain.Builderclear()IntDomain.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)IntDomain.BuilderclearIsCategorical()If true then the domain encodes categorical values (i.e., ids) rather than ordinal values.IntDomain.BuilderclearMax()optional int64 max = 4;IntDomain.BuilderclearMin()Min and max values for the domain.IntDomain.BuilderclearName()Id of the domain.IntDomain.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)IntDomain.Builderclone()IntDomaingetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetIsCategorical()If true then the domain encodes categorical values (i.e., ids) rather than ordinal values.longgetMax()optional int64 max = 4;longgetMin()Min and max values for the domain.StringgetName()Id of the domain.com.google.protobuf.ByteStringgetNameBytes()Id of the domain.booleanhasIsCategorical()If true then the domain encodes categorical values (i.e., ids) rather than ordinal values.booleanhasMax()optional int64 max = 4;booleanhasMin()Min and max values for the domain.booleanhasName()Id of the domain.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()IntDomain.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)IntDomain.BuildermergeFrom(com.google.protobuf.Message other)IntDomain.BuildermergeFrom(IntDomain other)IntDomain.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)IntDomain.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)IntDomain.BuildersetIsCategorical(boolean value)If true then the domain encodes categorical values (i.e., ids) rather than ordinal values.IntDomain.BuildersetMax(long value)optional int64 max = 4;IntDomain.BuildersetMin(long value)Min and max values for the domain.IntDomain.BuildersetName(String value)Id of the domain.IntDomain.BuildersetNameBytes(com.google.protobuf.ByteString value)Id of the domain.IntDomain.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)IntDomain.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
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<IntDomain.Builder>
-
clear
public IntDomain.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<IntDomain.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<IntDomain.Builder>
-
getDefaultInstanceForType
public IntDomain getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public IntDomain build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public IntDomain buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public IntDomain.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<IntDomain.Builder>
-
setField
public IntDomain.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<IntDomain.Builder>
-
clearField
public IntDomain.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IntDomain.Builder>
-
clearOneof
public IntDomain.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<IntDomain.Builder>
-
setRepeatedField
public IntDomain.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<IntDomain.Builder>
-
addRepeatedField
public IntDomain.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<IntDomain.Builder>
-
mergeFrom
public IntDomain.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<IntDomain.Builder>
-
mergeFrom
public IntDomain.Builder mergeFrom(IntDomain other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<IntDomain.Builder>
-
mergeFrom
public IntDomain.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<IntDomain.Builder>- Throws:
IOException
-
hasName
public boolean hasName()
Id of the domain. Required if the domain is defined at the schema level. If so, then the name must be unique within the schema.
optional string name = 1;- Specified by:
hasNamein interfaceIntDomainOrBuilder- Returns:
- Whether the name field is set.
-
getName
public String getName()
Id of the domain. Required if the domain is defined at the schema level. If so, then the name must be unique within the schema.
optional string name = 1;- Specified by:
getNamein interfaceIntDomainOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Id of the domain. Required if the domain is defined at the schema level. If so, then the name must be unique within the schema.
optional string name = 1;- Specified by:
getNameBytesin interfaceIntDomainOrBuilder- Returns:
- The bytes for name.
-
setName
public IntDomain.Builder setName(String value)
Id of the domain. Required if the domain is defined at the schema level. If so, then the name must be unique within the schema.
optional string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public IntDomain.Builder clearName()
Id of the domain. Required if the domain is defined at the schema level. If so, then the name must be unique within the schema.
optional string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public IntDomain.Builder setNameBytes(com.google.protobuf.ByteString value)
Id of the domain. Required if the domain is defined at the schema level. If so, then the name must be unique within the schema.
optional string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasMin
public boolean hasMin()
Min and max values for the domain.
optional int64 min = 3;- Specified by:
hasMinin interfaceIntDomainOrBuilder- Returns:
- Whether the min field is set.
-
getMin
public long getMin()
Min and max values for the domain.
optional int64 min = 3;- Specified by:
getMinin interfaceIntDomainOrBuilder- Returns:
- The min.
-
setMin
public IntDomain.Builder setMin(long value)
Min and max values for the domain.
optional int64 min = 3;- Parameters:
value- The min to set.- Returns:
- This builder for chaining.
-
clearMin
public IntDomain.Builder clearMin()
Min and max values for the domain.
optional int64 min = 3;- Returns:
- This builder for chaining.
-
hasMax
public boolean hasMax()
optional int64 max = 4;- Specified by:
hasMaxin interfaceIntDomainOrBuilder- Returns:
- Whether the max field is set.
-
getMax
public long getMax()
optional int64 max = 4;- Specified by:
getMaxin interfaceIntDomainOrBuilder- Returns:
- The max.
-
setMax
public IntDomain.Builder setMax(long value)
optional int64 max = 4;- Parameters:
value- The max to set.- Returns:
- This builder for chaining.
-
clearMax
public IntDomain.Builder clearMax()
optional int64 max = 4;- Returns:
- This builder for chaining.
-
hasIsCategorical
public boolean hasIsCategorical()
If true then the domain encodes categorical values (i.e., ids) rather than ordinal values.
optional bool is_categorical = 5;- Specified by:
hasIsCategoricalin interfaceIntDomainOrBuilder- Returns:
- Whether the isCategorical field is set.
-
getIsCategorical
public boolean getIsCategorical()
If true then the domain encodes categorical values (i.e., ids) rather than ordinal values.
optional bool is_categorical = 5;- Specified by:
getIsCategoricalin interfaceIntDomainOrBuilder- Returns:
- The isCategorical.
-
setIsCategorical
public IntDomain.Builder setIsCategorical(boolean value)
If true then the domain encodes categorical values (i.e., ids) rather than ordinal values.
optional bool is_categorical = 5;- Parameters:
value- The isCategorical to set.- Returns:
- This builder for chaining.
-
clearIsCategorical
public IntDomain.Builder clearIsCategorical()
If true then the domain encodes categorical values (i.e., ids) rather than ordinal values.
optional bool is_categorical = 5;- Returns:
- This builder for chaining.
-
setUnknownFields
public final IntDomain.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<IntDomain.Builder>
-
mergeUnknownFields
public final IntDomain.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<IntDomain.Builder>
-
-