Class AttrValue.Builder

  • All Implemented Interfaces:
    Cloneable, org.nd4j.shade.protobuf.Message.Builder, org.nd4j.shade.protobuf.MessageLite.Builder, org.nd4j.shade.protobuf.MessageLiteOrBuilder, org.nd4j.shade.protobuf.MessageOrBuilder, AttrValueOrBuilder
    Enclosing class:
    AttrValue

    public static final class AttrValue.Builder
    extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
    implements AttrValueOrBuilder
     Protocol buffer representing the value for an attr used to configure an Op.
     Comment indicates the corresponding attr type.  Only the field matching the
     attr type may be filled.
     
    Protobuf type tensorflow.AttrValue
    • Method Detail

      • getDescriptor

        public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
      • clear

        public AttrValue.Builder clear()
        Specified by:
        clear in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        clear in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        clear in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
      • getDescriptorForType

        public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface org.nd4j.shade.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
      • getDefaultInstanceForType

        public AttrValue getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilder
      • build

        public AttrValue build()
        Specified by:
        build in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        build in interface org.nd4j.shade.protobuf.MessageLite.Builder
      • buildPartial

        public AttrValue buildPartial()
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.MessageLite.Builder
      • clone

        public AttrValue.Builder clone()
        Specified by:
        clone in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        clone in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        clone in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
      • setField

        public AttrValue.Builder setField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                          Object value)
        Specified by:
        setField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
      • clearField

        public AttrValue.Builder clearField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        clearField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
      • clearOneof

        public AttrValue.Builder clearOneof​(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        clearOneof in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
      • setRepeatedField

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

        public AttrValue.Builder addRepeatedField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        addRepeatedField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
      • mergeFrom

        public AttrValue.Builder mergeFrom​(org.nd4j.shade.protobuf.Message other)
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        mergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<AttrValue.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
      • mergeFrom

        public AttrValue.Builder mergeFrom​(org.nd4j.shade.protobuf.CodedInputStream input,
                                           org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws IOException
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<AttrValue.Builder>
        Throws:
        IOException
      • hasS

        public boolean hasS()
         "string"
         
        bytes s = 2;
        Specified by:
        hasS in interface AttrValueOrBuilder
        Returns:
        Whether the s field is set.
      • getS

        public org.nd4j.shade.protobuf.ByteString getS()
         "string"
         
        bytes s = 2;
        Specified by:
        getS in interface AttrValueOrBuilder
        Returns:
        The s.
      • setS

        public AttrValue.Builder setS​(org.nd4j.shade.protobuf.ByteString value)
         "string"
         
        bytes s = 2;
        Parameters:
        value - The s to set.
        Returns:
        This builder for chaining.
      • clearS

        public AttrValue.Builder clearS()
         "string"
         
        bytes s = 2;
        Returns:
        This builder for chaining.
      • hasI

        public boolean hasI()
         "int"
         
        int64 i = 3;
        Specified by:
        hasI in interface AttrValueOrBuilder
        Returns:
        Whether the i field is set.
      • getI

        public long getI()
         "int"
         
        int64 i = 3;
        Specified by:
        getI in interface AttrValueOrBuilder
        Returns:
        The i.
      • setI

        public AttrValue.Builder setI​(long value)
         "int"
         
        int64 i = 3;
        Parameters:
        value - The i to set.
        Returns:
        This builder for chaining.
      • clearI

        public AttrValue.Builder clearI()
         "int"
         
        int64 i = 3;
        Returns:
        This builder for chaining.
      • hasF

        public boolean hasF()
         "float"
         
        float f = 4;
        Specified by:
        hasF in interface AttrValueOrBuilder
        Returns:
        Whether the f field is set.
      • getF

        public float getF()
         "float"
         
        float f = 4;
        Specified by:
        getF in interface AttrValueOrBuilder
        Returns:
        The f.
      • setF

        public AttrValue.Builder setF​(float value)
         "float"
         
        float f = 4;
        Parameters:
        value - The f to set.
        Returns:
        This builder for chaining.
      • clearF

        public AttrValue.Builder clearF()
         "float"
         
        float f = 4;
        Returns:
        This builder for chaining.
      • hasB

        public boolean hasB()
         "bool"
         
        bool b = 5;
        Specified by:
        hasB in interface AttrValueOrBuilder
        Returns:
        Whether the b field is set.
      • getB

        public boolean getB()
         "bool"
         
        bool b = 5;
        Specified by:
        getB in interface AttrValueOrBuilder
        Returns:
        The b.
      • setB

        public AttrValue.Builder setB​(boolean value)
         "bool"
         
        bool b = 5;
        Parameters:
        value - The b to set.
        Returns:
        This builder for chaining.
      • clearB

        public AttrValue.Builder clearB()
         "bool"
         
        bool b = 5;
        Returns:
        This builder for chaining.
      • hasType

        public boolean hasType()
         "type"
         
        .tensorflow.DataType type = 6;
        Specified by:
        hasType in interface AttrValueOrBuilder
        Returns:
        Whether the type field is set.
      • getTypeValue

        public int getTypeValue()
         "type"
         
        .tensorflow.DataType type = 6;
        Specified by:
        getTypeValue in interface AttrValueOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public AttrValue.Builder setTypeValue​(int value)
         "type"
         
        .tensorflow.DataType type = 6;
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • setType

        public AttrValue.Builder setType​(DataType value)
         "type"
         
        .tensorflow.DataType type = 6;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public AttrValue.Builder clearType()
         "type"
         
        .tensorflow.DataType type = 6;
        Returns:
        This builder for chaining.
      • hasShape

        public boolean hasShape()
         "shape"
         
        .tensorflow.TensorShapeProto shape = 7;
        Specified by:
        hasShape in interface AttrValueOrBuilder
        Returns:
        Whether the shape field is set.
      • clearShape

        public AttrValue.Builder clearShape()
         "shape"
         
        .tensorflow.TensorShapeProto shape = 7;
      • hasTensor

        public boolean hasTensor()
         "tensor"
         
        .tensorflow.TensorProto tensor = 8;
        Specified by:
        hasTensor in interface AttrValueOrBuilder
        Returns:
        Whether the tensor field is set.
      • clearTensor

        public AttrValue.Builder clearTensor()
         "tensor"
         
        .tensorflow.TensorProto tensor = 8;
      • getTensorBuilder

        public TensorProto.Builder getTensorBuilder()
         "tensor"
         
        .tensorflow.TensorProto tensor = 8;
      • hasList

        public boolean hasList()
         any "list(...)"
         
        .tensorflow.AttrValue.ListValue list = 1;
        Specified by:
        hasList in interface AttrValueOrBuilder
        Returns:
        Whether the list field is set.
      • clearList

        public AttrValue.Builder clearList()
         any "list(...)"
         
        .tensorflow.AttrValue.ListValue list = 1;
      • hasFunc

        public boolean hasFunc()
         "func" represents a function. func.name is a function's name or
         a primitive op's name. func.attr.first is the name of an attr
         defined for that function. func.attr.second is the value for
         that attr in the instantiation.
         
        .tensorflow.NameAttrList func = 10;
        Specified by:
        hasFunc in interface AttrValueOrBuilder
        Returns:
        Whether the func field is set.
      • getFunc

        public NameAttrList getFunc()
         "func" represents a function. func.name is a function's name or
         a primitive op's name. func.attr.first is the name of an attr
         defined for that function. func.attr.second is the value for
         that attr in the instantiation.
         
        .tensorflow.NameAttrList func = 10;
        Specified by:
        getFunc in interface AttrValueOrBuilder
        Returns:
        The func.
      • setFunc

        public AttrValue.Builder setFunc​(NameAttrList value)
         "func" represents a function. func.name is a function's name or
         a primitive op's name. func.attr.first is the name of an attr
         defined for that function. func.attr.second is the value for
         that attr in the instantiation.
         
        .tensorflow.NameAttrList func = 10;
      • setFunc

        public AttrValue.Builder setFunc​(NameAttrList.Builder builderForValue)
         "func" represents a function. func.name is a function's name or
         a primitive op's name. func.attr.first is the name of an attr
         defined for that function. func.attr.second is the value for
         that attr in the instantiation.
         
        .tensorflow.NameAttrList func = 10;
      • mergeFunc

        public AttrValue.Builder mergeFunc​(NameAttrList value)
         "func" represents a function. func.name is a function's name or
         a primitive op's name. func.attr.first is the name of an attr
         defined for that function. func.attr.second is the value for
         that attr in the instantiation.
         
        .tensorflow.NameAttrList func = 10;
      • clearFunc

        public AttrValue.Builder clearFunc()
         "func" represents a function. func.name is a function's name or
         a primitive op's name. func.attr.first is the name of an attr
         defined for that function. func.attr.second is the value for
         that attr in the instantiation.
         
        .tensorflow.NameAttrList func = 10;
      • getFuncBuilder

        public NameAttrList.Builder getFuncBuilder()
         "func" represents a function. func.name is a function's name or
         a primitive op's name. func.attr.first is the name of an attr
         defined for that function. func.attr.second is the value for
         that attr in the instantiation.
         
        .tensorflow.NameAttrList func = 10;
      • getFuncOrBuilder

        public NameAttrListOrBuilder getFuncOrBuilder()
         "func" represents a function. func.name is a function's name or
         a primitive op's name. func.attr.first is the name of an attr
         defined for that function. func.attr.second is the value for
         that attr in the instantiation.
         
        .tensorflow.NameAttrList func = 10;
        Specified by:
        getFuncOrBuilder in interface AttrValueOrBuilder
      • hasPlaceholder

        public boolean hasPlaceholder()
         This is a placeholder only used in nodes defined inside a
         function.  It indicates the attr value will be supplied when
         the function is instantiated.  For example, let us suppose a
         node "N" in function "FN". "N" has an attr "A" with value
         placeholder = "foo". When FN is instantiated with attr "foo"
         set to "bar", the instantiated node N's attr A will have been
         given the value "bar".
         
        string placeholder = 9;
        Specified by:
        hasPlaceholder in interface AttrValueOrBuilder
        Returns:
        Whether the placeholder field is set.
      • getPlaceholder

        public String getPlaceholder()
         This is a placeholder only used in nodes defined inside a
         function.  It indicates the attr value will be supplied when
         the function is instantiated.  For example, let us suppose a
         node "N" in function "FN". "N" has an attr "A" with value
         placeholder = "foo". When FN is instantiated with attr "foo"
         set to "bar", the instantiated node N's attr A will have been
         given the value "bar".
         
        string placeholder = 9;
        Specified by:
        getPlaceholder in interface AttrValueOrBuilder
        Returns:
        The placeholder.
      • getPlaceholderBytes

        public org.nd4j.shade.protobuf.ByteString getPlaceholderBytes()
         This is a placeholder only used in nodes defined inside a
         function.  It indicates the attr value will be supplied when
         the function is instantiated.  For example, let us suppose a
         node "N" in function "FN". "N" has an attr "A" with value
         placeholder = "foo". When FN is instantiated with attr "foo"
         set to "bar", the instantiated node N's attr A will have been
         given the value "bar".
         
        string placeholder = 9;
        Specified by:
        getPlaceholderBytes in interface AttrValueOrBuilder
        Returns:
        The bytes for placeholder.
      • setPlaceholder

        public AttrValue.Builder setPlaceholder​(String value)
         This is a placeholder only used in nodes defined inside a
         function.  It indicates the attr value will be supplied when
         the function is instantiated.  For example, let us suppose a
         node "N" in function "FN". "N" has an attr "A" with value
         placeholder = "foo". When FN is instantiated with attr "foo"
         set to "bar", the instantiated node N's attr A will have been
         given the value "bar".
         
        string placeholder = 9;
        Parameters:
        value - The placeholder to set.
        Returns:
        This builder for chaining.
      • clearPlaceholder

        public AttrValue.Builder clearPlaceholder()
         This is a placeholder only used in nodes defined inside a
         function.  It indicates the attr value will be supplied when
         the function is instantiated.  For example, let us suppose a
         node "N" in function "FN". "N" has an attr "A" with value
         placeholder = "foo". When FN is instantiated with attr "foo"
         set to "bar", the instantiated node N's attr A will have been
         given the value "bar".
         
        string placeholder = 9;
        Returns:
        This builder for chaining.
      • setPlaceholderBytes

        public AttrValue.Builder setPlaceholderBytes​(org.nd4j.shade.protobuf.ByteString value)
         This is a placeholder only used in nodes defined inside a
         function.  It indicates the attr value will be supplied when
         the function is instantiated.  For example, let us suppose a
         node "N" in function "FN". "N" has an attr "A" with value
         placeholder = "foo". When FN is instantiated with attr "foo"
         set to "bar", the instantiated node N's attr A will have been
         given the value "bar".
         
        string placeholder = 9;
        Parameters:
        value - The bytes for placeholder to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final AttrValue.Builder setUnknownFields​(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
      • mergeUnknownFields

        public final AttrValue.Builder mergeUnknownFields​(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>