Class 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 type tensorflow.metadata.v0.IntDomain
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<IntDomain.Builder>
      • clear

        public IntDomain.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<IntDomain.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<IntDomain.Builder>
      • getDefaultInstanceForType

        public IntDomain getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public IntDomain build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public IntDomain buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public IntDomain.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<IntDomain.Builder>
      • setField

        public IntDomain.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                          Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<IntDomain.Builder>
      • clearField

        public IntDomain.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<IntDomain.Builder>
      • clearOneof

        public IntDomain.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<IntDomain.Builder>
      • setRepeatedField

        public IntDomain.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  int index,
                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<IntDomain.Builder>
      • addRepeatedField

        public IntDomain.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<IntDomain.Builder>
      • mergeFrom

        public IntDomain.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<IntDomain.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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:
        hasName in interface IntDomainOrBuilder
        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:
        getName in interface IntDomainOrBuilder
        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:
        getNameBytes in interface IntDomainOrBuilder
        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:
        hasMin in interface IntDomainOrBuilder
        Returns:
        Whether the min field is set.
      • getMin

        public long getMin()
         Min and max values for the domain.
         
        optional int64 min = 3;
        Specified by:
        getMin in interface IntDomainOrBuilder
        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:
        hasMax in interface IntDomainOrBuilder
        Returns:
        Whether the max field is set.
      • getMax

        public long getMax()
        optional int64 max = 4;
        Specified by:
        getMax in interface IntDomainOrBuilder
        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:
        hasIsCategorical in interface IntDomainOrBuilder
        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:
        getIsCategorical in interface IntDomainOrBuilder
        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:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<IntDomain.Builder>
      • mergeUnknownFields

        public final IntDomain.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<IntDomain.Builder>