Class OpDef.AttrDef.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable, OpDef.AttrDefOrBuilder
    Enclosing class:
    OpDef.AttrDef

    public static final class OpDef.AttrDef.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
    implements OpDef.AttrDefOrBuilder
     Description of the graph-construction-time configuration of this
     Op.  That is to say, this describes the attr fields that will
     be specified in the NodeDef.
     
    Protobuf type org.platanios.tensorflow.proto.OpDef.AttrDef
    • 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<OpDef.AttrDef.Builder>
      • clear

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

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

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

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

        public OpDef.AttrDef.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<OpDef.AttrDef.Builder>
      • setField

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

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

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

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

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

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

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

        public OpDef.AttrDef.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws java.io.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<OpDef.AttrDef.Builder>
        Throws:
        java.io.IOException
      • getName

        public java.lang.String getName()
         A descriptive name for the argument.  May be used, e.g. by the
         Python client, as a keyword argument name, and so should match
         the regexp "[a-z][a-z0-9_]+".
         
        string name = 1;
        Specified by:
        getName in interface OpDef.AttrDefOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         A descriptive name for the argument.  May be used, e.g. by the
         Python client, as a keyword argument name, and so should match
         the regexp "[a-z][a-z0-9_]+".
         
        string name = 1;
        Specified by:
        getNameBytes in interface OpDef.AttrDefOrBuilder
        Returns:
        The bytes for name.
      • setName

        public OpDef.AttrDef.Builder setName​(java.lang.String value)
         A descriptive name for the argument.  May be used, e.g. by the
         Python client, as a keyword argument name, and so should match
         the regexp "[a-z][a-z0-9_]+".
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public OpDef.AttrDef.Builder clearName()
         A descriptive name for the argument.  May be used, e.g. by the
         Python client, as a keyword argument name, and so should match
         the regexp "[a-z][a-z0-9_]+".
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public OpDef.AttrDef.Builder setNameBytes​(com.google.protobuf.ByteString value)
         A descriptive name for the argument.  May be used, e.g. by the
         Python client, as a keyword argument name, and so should match
         the regexp "[a-z][a-z0-9_]+".
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getType

        public java.lang.String getType()
         One of the type names from attr_value.proto ("string", "list(string)",
         "int", etc.).
         
        string type = 2;
        Specified by:
        getType in interface OpDef.AttrDefOrBuilder
        Returns:
        The type.
      • getTypeBytes

        public com.google.protobuf.ByteString getTypeBytes()
         One of the type names from attr_value.proto ("string", "list(string)",
         "int", etc.).
         
        string type = 2;
        Specified by:
        getTypeBytes in interface OpDef.AttrDefOrBuilder
        Returns:
        The bytes for type.
      • setType

        public OpDef.AttrDef.Builder setType​(java.lang.String value)
         One of the type names from attr_value.proto ("string", "list(string)",
         "int", etc.).
         
        string type = 2;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public OpDef.AttrDef.Builder clearType()
         One of the type names from attr_value.proto ("string", "list(string)",
         "int", etc.).
         
        string type = 2;
        Returns:
        This builder for chaining.
      • setTypeBytes

        public OpDef.AttrDef.Builder setTypeBytes​(com.google.protobuf.ByteString value)
         One of the type names from attr_value.proto ("string", "list(string)",
         "int", etc.).
         
        string type = 2;
        Parameters:
        value - The bytes for type to set.
        Returns:
        This builder for chaining.
      • hasDefaultValue

        public boolean hasDefaultValue()
         A reasonable default for this attribute if the user does not supply
         a value.  If not specified, the user must supply a value.
         
        .org.platanios.tensorflow.proto.AttrValue default_value = 3;
        Specified by:
        hasDefaultValue in interface OpDef.AttrDefOrBuilder
        Returns:
        Whether the defaultValue field is set.
      • getDefaultValue

        public AttrValue getDefaultValue()
         A reasonable default for this attribute if the user does not supply
         a value.  If not specified, the user must supply a value.
         
        .org.platanios.tensorflow.proto.AttrValue default_value = 3;
        Specified by:
        getDefaultValue in interface OpDef.AttrDefOrBuilder
        Returns:
        The defaultValue.
      • setDefaultValue

        public OpDef.AttrDef.Builder setDefaultValue​(AttrValue value)
         A reasonable default for this attribute if the user does not supply
         a value.  If not specified, the user must supply a value.
         
        .org.platanios.tensorflow.proto.AttrValue default_value = 3;
      • setDefaultValue

        public OpDef.AttrDef.Builder setDefaultValue​(AttrValue.Builder builderForValue)
         A reasonable default for this attribute if the user does not supply
         a value.  If not specified, the user must supply a value.
         
        .org.platanios.tensorflow.proto.AttrValue default_value = 3;
      • mergeDefaultValue

        public OpDef.AttrDef.Builder mergeDefaultValue​(AttrValue value)
         A reasonable default for this attribute if the user does not supply
         a value.  If not specified, the user must supply a value.
         
        .org.platanios.tensorflow.proto.AttrValue default_value = 3;
      • clearDefaultValue

        public OpDef.AttrDef.Builder clearDefaultValue()
         A reasonable default for this attribute if the user does not supply
         a value.  If not specified, the user must supply a value.
         
        .org.platanios.tensorflow.proto.AttrValue default_value = 3;
      • getDefaultValueBuilder

        public AttrValue.Builder getDefaultValueBuilder()
         A reasonable default for this attribute if the user does not supply
         a value.  If not specified, the user must supply a value.
         
        .org.platanios.tensorflow.proto.AttrValue default_value = 3;
      • getDefaultValueOrBuilder

        public AttrValueOrBuilder getDefaultValueOrBuilder()
         A reasonable default for this attribute if the user does not supply
         a value.  If not specified, the user must supply a value.
         
        .org.platanios.tensorflow.proto.AttrValue default_value = 3;
        Specified by:
        getDefaultValueOrBuilder in interface OpDef.AttrDefOrBuilder
      • getDescription

        public java.lang.String getDescription()
         Human-readable description.
         
        string description = 4;
        Specified by:
        getDescription in interface OpDef.AttrDefOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Human-readable description.
         
        string description = 4;
        Specified by:
        getDescriptionBytes in interface OpDef.AttrDefOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public OpDef.AttrDef.Builder setDescription​(java.lang.String value)
         Human-readable description.
         
        string description = 4;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public OpDef.AttrDef.Builder clearDescription()
         Human-readable description.
         
        string description = 4;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public OpDef.AttrDef.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Human-readable description.
         
        string description = 4;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • getHasMinimum

        public boolean getHasMinimum()
         For type == "int", this is a minimum value.  For "list(___)"
         types, this is the minimum length.
         
        bool has_minimum = 5;
        Specified by:
        getHasMinimum in interface OpDef.AttrDefOrBuilder
        Returns:
        The hasMinimum.
      • setHasMinimum

        public OpDef.AttrDef.Builder setHasMinimum​(boolean value)
         For type == "int", this is a minimum value.  For "list(___)"
         types, this is the minimum length.
         
        bool has_minimum = 5;
        Parameters:
        value - The hasMinimum to set.
        Returns:
        This builder for chaining.
      • clearHasMinimum

        public OpDef.AttrDef.Builder clearHasMinimum()
         For type == "int", this is a minimum value.  For "list(___)"
         types, this is the minimum length.
         
        bool has_minimum = 5;
        Returns:
        This builder for chaining.
      • setMinimum

        public OpDef.AttrDef.Builder setMinimum​(long value)
        int64 minimum = 6;
        Parameters:
        value - The minimum to set.
        Returns:
        This builder for chaining.
      • clearMinimum

        public OpDef.AttrDef.Builder clearMinimum()
        int64 minimum = 6;
        Returns:
        This builder for chaining.
      • hasAllowedValues

        public boolean hasAllowedValues()
         The set of allowed values.  Has type that is the "list" version
         of the "type" field above (uses the "list" field of AttrValue).
         If type == "type" or "list(type)" above, then the "type" field
         of "allowed_values.list" has the set of allowed DataTypes.
         If type == "string" or "list(string)", then the "s" field of
         "allowed_values.list" has the set of allowed strings.
         
        .org.platanios.tensorflow.proto.AttrValue allowed_values = 7;
        Specified by:
        hasAllowedValues in interface OpDef.AttrDefOrBuilder
        Returns:
        Whether the allowedValues field is set.
      • getAllowedValues

        public AttrValue getAllowedValues()
         The set of allowed values.  Has type that is the "list" version
         of the "type" field above (uses the "list" field of AttrValue).
         If type == "type" or "list(type)" above, then the "type" field
         of "allowed_values.list" has the set of allowed DataTypes.
         If type == "string" or "list(string)", then the "s" field of
         "allowed_values.list" has the set of allowed strings.
         
        .org.platanios.tensorflow.proto.AttrValue allowed_values = 7;
        Specified by:
        getAllowedValues in interface OpDef.AttrDefOrBuilder
        Returns:
        The allowedValues.
      • setAllowedValues

        public OpDef.AttrDef.Builder setAllowedValues​(AttrValue value)
         The set of allowed values.  Has type that is the "list" version
         of the "type" field above (uses the "list" field of AttrValue).
         If type == "type" or "list(type)" above, then the "type" field
         of "allowed_values.list" has the set of allowed DataTypes.
         If type == "string" or "list(string)", then the "s" field of
         "allowed_values.list" has the set of allowed strings.
         
        .org.platanios.tensorflow.proto.AttrValue allowed_values = 7;
      • setAllowedValues

        public OpDef.AttrDef.Builder setAllowedValues​(AttrValue.Builder builderForValue)
         The set of allowed values.  Has type that is the "list" version
         of the "type" field above (uses the "list" field of AttrValue).
         If type == "type" or "list(type)" above, then the "type" field
         of "allowed_values.list" has the set of allowed DataTypes.
         If type == "string" or "list(string)", then the "s" field of
         "allowed_values.list" has the set of allowed strings.
         
        .org.platanios.tensorflow.proto.AttrValue allowed_values = 7;
      • mergeAllowedValues

        public OpDef.AttrDef.Builder mergeAllowedValues​(AttrValue value)
         The set of allowed values.  Has type that is the "list" version
         of the "type" field above (uses the "list" field of AttrValue).
         If type == "type" or "list(type)" above, then the "type" field
         of "allowed_values.list" has the set of allowed DataTypes.
         If type == "string" or "list(string)", then the "s" field of
         "allowed_values.list" has the set of allowed strings.
         
        .org.platanios.tensorflow.proto.AttrValue allowed_values = 7;
      • clearAllowedValues

        public OpDef.AttrDef.Builder clearAllowedValues()
         The set of allowed values.  Has type that is the "list" version
         of the "type" field above (uses the "list" field of AttrValue).
         If type == "type" or "list(type)" above, then the "type" field
         of "allowed_values.list" has the set of allowed DataTypes.
         If type == "string" or "list(string)", then the "s" field of
         "allowed_values.list" has the set of allowed strings.
         
        .org.platanios.tensorflow.proto.AttrValue allowed_values = 7;
      • getAllowedValuesBuilder

        public AttrValue.Builder getAllowedValuesBuilder()
         The set of allowed values.  Has type that is the "list" version
         of the "type" field above (uses the "list" field of AttrValue).
         If type == "type" or "list(type)" above, then the "type" field
         of "allowed_values.list" has the set of allowed DataTypes.
         If type == "string" or "list(string)", then the "s" field of
         "allowed_values.list" has the set of allowed strings.
         
        .org.platanios.tensorflow.proto.AttrValue allowed_values = 7;
      • getAllowedValuesOrBuilder

        public AttrValueOrBuilder getAllowedValuesOrBuilder()
         The set of allowed values.  Has type that is the "list" version
         of the "type" field above (uses the "list" field of AttrValue).
         If type == "type" or "list(type)" above, then the "type" field
         of "allowed_values.list" has the set of allowed DataTypes.
         If type == "string" or "list(string)", then the "s" field of
         "allowed_values.list" has the set of allowed strings.
         
        .org.platanios.tensorflow.proto.AttrValue allowed_values = 7;
        Specified by:
        getAllowedValuesOrBuilder in interface OpDef.AttrDefOrBuilder
      • setUnknownFields

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

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