Class AttrValue

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.framework.AttrValue
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, AttrValueOrBuilder

public final class AttrValue extends com.google.protobuf.GeneratedMessageV3 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
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Protocol buffer representing the value for an attr used to configure an Op.
    static final class 
    LINT.IfChange
    static interface 
     
    static enum 
     

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
    "bool"
    static AttrValue
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    float
    "float"
    "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.
    "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.
    long
    "int"
    any "list(...)"
    any "list(...)"
    com.google.protobuf.Parser<AttrValue>
     
    This is a placeholder only used in nodes defined inside a function.
    com.google.protobuf.ByteString
    This is a placeholder only used in nodes defined inside a function.
    com.google.protobuf.ByteString
    "string"
    int
     
    "shape"
    "shape"
    "tensor"
    "tensor"
    "type"
    int
    "type"
     
    boolean
    "bool"
    boolean
    "float"
    boolean
    "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.
    int
     
    boolean
    "int"
    boolean
    any "list(...)"
    boolean
    This is a placeholder only used in nodes defined inside a function.
    boolean
    "string"
    boolean
    "shape"
    boolean
    "tensor"
    boolean
    "type"
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(AttrValue prototype)
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
    static AttrValue
     
    static AttrValue
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static AttrValue
    parseFrom(byte[] data)
     
    static AttrValue
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static AttrValue
    parseFrom(com.google.protobuf.ByteString data)
     
    static AttrValue
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static AttrValue
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static AttrValue
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static AttrValue
     
    static AttrValue
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static AttrValue
     
    static AttrValue
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<AttrValue>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • getValueCase

      public AttrValue.ValueCase getValueCase()
      Specified by:
      getValueCase in interface AttrValueOrBuilder
    • hasS

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

      public com.google.protobuf.ByteString getS()
       "string"
       
      bytes s = 2;
      Specified by:
      getS in interface AttrValueOrBuilder
      Returns:
      The s.
    • 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.
    • 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.
    • 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.
    • 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.
    • getType

      public DataType getType()
       "type"
       
      .tensorflow.DataType type = 6;
      Specified by:
      getType in interface AttrValueOrBuilder
      Returns:
      The type.
    • hasShape

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

      public TensorShapeProto getShape()
       "shape"
       
      .tensorflow.TensorShapeProto shape = 7;
      Specified by:
      getShape in interface AttrValueOrBuilder
      Returns:
      The shape.
    • getShapeOrBuilder

      public TensorShapeProtoOrBuilder getShapeOrBuilder()
       "shape"
       
      .tensorflow.TensorShapeProto shape = 7;
      Specified by:
      getShapeOrBuilder in interface AttrValueOrBuilder
    • hasTensor

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

      public TensorProto getTensor()
       "tensor"
       
      .tensorflow.TensorProto tensor = 8;
      Specified by:
      getTensor in interface AttrValueOrBuilder
      Returns:
      The tensor.
    • getTensorOrBuilder

      public TensorProtoOrBuilder getTensorOrBuilder()
       "tensor"
       
      .tensorflow.TensorProto tensor = 8;
      Specified by:
      getTensorOrBuilder in interface AttrValueOrBuilder
    • hasList

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

      public AttrValue.ListValue getList()
       any "list(...)"
       
      .tensorflow.AttrValue.ListValue list = 1;
      Specified by:
      getList in interface AttrValueOrBuilder
      Returns:
      The list.
    • getListOrBuilder

      public AttrValue.ListValueOrBuilder getListOrBuilder()
       any "list(...)"
       
      .tensorflow.AttrValue.ListValue list = 1;
      Specified by:
      getListOrBuilder in interface AttrValueOrBuilder
    • 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.
    • 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 com.google.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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AttrValue parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AttrValue parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AttrValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AttrValue parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AttrValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AttrValue parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AttrValue parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AttrValue parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AttrValue parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AttrValue parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AttrValue parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AttrValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public AttrValue.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static AttrValue.Builder newBuilder()
    • newBuilder

      public static AttrValue.Builder newBuilder(AttrValue prototype)
    • toBuilder

      public AttrValue.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected AttrValue.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static AttrValue getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AttrValue> parser()
    • getParserForType

      public com.google.protobuf.Parser<AttrValue> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public AttrValue getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder