Class DistributionConstraints.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, DistributionConstraintsOrBuilder
    Enclosing class:
    DistributionConstraints

    public static final class DistributionConstraints.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<DistributionConstraints.Builder>
    implements DistributionConstraintsOrBuilder
     Models constraints on the distribution of a feature's values.
     TODO(martinz): replace min_domain_mass with max_off_domain (but slowly).
     
    Protobuf type tensorflow.metadata.v0.DistributionConstraints
    • 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<DistributionConstraints.Builder>
      • clear

        public DistributionConstraints.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<DistributionConstraints.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<DistributionConstraints.Builder>
      • getDefaultInstanceForType

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

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

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

        public DistributionConstraints.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<DistributionConstraints.Builder>
      • clearField

        public DistributionConstraints.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<DistributionConstraints.Builder>
      • clearOneof

        public DistributionConstraints.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<DistributionConstraints.Builder>
      • setRepeatedField

        public DistributionConstraints.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<DistributionConstraints.Builder>
      • addRepeatedField

        public DistributionConstraints.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<DistributionConstraints.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DistributionConstraints.Builder>
      • mergeFrom

        public DistributionConstraints.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<DistributionConstraints.Builder>
        Throws:
        IOException
      • hasMinDomainMass

        public boolean hasMinDomainMass()
         The minimum fraction (in [0,1]) of values across all examples that
         should come from the feature's domain, e.g.:
           1.0  => All values must come from the domain.
            .9  => At least 90% of the values must come from the domain.
         
        optional double min_domain_mass = 1 [default = 1];
        Specified by:
        hasMinDomainMass in interface DistributionConstraintsOrBuilder
        Returns:
        Whether the minDomainMass field is set.
      • getMinDomainMass

        public double getMinDomainMass()
         The minimum fraction (in [0,1]) of values across all examples that
         should come from the feature's domain, e.g.:
           1.0  => All values must come from the domain.
            .9  => At least 90% of the values must come from the domain.
         
        optional double min_domain_mass = 1 [default = 1];
        Specified by:
        getMinDomainMass in interface DistributionConstraintsOrBuilder
        Returns:
        The minDomainMass.
      • setMinDomainMass

        public DistributionConstraints.Builder setMinDomainMass​(double value)
         The minimum fraction (in [0,1]) of values across all examples that
         should come from the feature's domain, e.g.:
           1.0  => All values must come from the domain.
            .9  => At least 90% of the values must come from the domain.
         
        optional double min_domain_mass = 1 [default = 1];
        Parameters:
        value - The minDomainMass to set.
        Returns:
        This builder for chaining.
      • clearMinDomainMass

        public DistributionConstraints.Builder clearMinDomainMass()
         The minimum fraction (in [0,1]) of values across all examples that
         should come from the feature's domain, e.g.:
           1.0  => All values must come from the domain.
            .9  => At least 90% of the values must come from the domain.
         
        optional double min_domain_mass = 1 [default = 1];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final DistributionConstraints.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<DistributionConstraints.Builder>
      • mergeUnknownFields

        public final DistributionConstraints.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<DistributionConstraints.Builder>