Package org.platanios.tensorflow.proto
Class AttrValue
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- org.platanios.tensorflow.proto.AttrValue
-
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.io.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 typeorg.platanios.tensorflow.proto.AttrValue
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AttrValue.Builder
Protocol buffer representing the value for an attr used to configure an Op.static class
AttrValue.ListValue
LINT.IfChangestatic interface
AttrValue.ListValueOrBuilder
static class
AttrValue.ValueCase
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
B_FIELD_NUMBER
static int
F_FIELD_NUMBER
static int
FUNC_FIELD_NUMBER
static int
I_FIELD_NUMBER
static int
LIST_FIELD_NUMBER
static int
PLACEHOLDER_FIELD_NUMBER
static int
S_FIELD_NUMBER
static int
SHAPE_FIELD_NUMBER
static int
TENSOR_FIELD_NUMBER
static int
TYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
boolean
getB()
"bool"static AttrValue
getDefaultInstance()
AttrValue
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
float
getF()
"float"NameAttrList
getFunc()
"func" represents a function.NameAttrListOrBuilder
getFuncOrBuilder()
"func" represents a function.long
getI()
"int"AttrValue.ListValue
getList()
any "list(...)"AttrValue.ListValueOrBuilder
getListOrBuilder()
any "list(...)"com.google.protobuf.Parser<AttrValue>
getParserForType()
java.lang.String
getPlaceholder()
This is a placeholder only used in nodes defined inside a function.com.google.protobuf.ByteString
getPlaceholderBytes()
This is a placeholder only used in nodes defined inside a function.com.google.protobuf.ByteString
getS()
"string"int
getSerializedSize()
TensorShapeProto
getShape()
"shape"TensorShapeProtoOrBuilder
getShapeOrBuilder()
"shape"TensorProto
getTensor()
"tensor"TensorProtoOrBuilder
getTensorOrBuilder()
"tensor"DataType
getType()
"type"int
getTypeValue()
"type"com.google.protobuf.UnknownFieldSet
getUnknownFields()
AttrValue.ValueCase
getValueCase()
boolean
hasFunc()
"func" represents a function.int
hashCode()
boolean
hasList()
any "list(...)"boolean
hasShape()
"shape"boolean
hasTensor()
"tensor"protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static AttrValue.Builder
newBuilder()
static AttrValue.Builder
newBuilder(AttrValue prototype)
AttrValue.Builder
newBuilderForType()
protected AttrValue.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected java.lang.Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static AttrValue
parseDelimitedFrom(java.io.InputStream input)
static AttrValue
parseDelimitedFrom(java.io.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
parseFrom(java.io.InputStream input)
static AttrValue
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AttrValue
parseFrom(java.nio.ByteBuffer data)
static AttrValue
parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<AttrValue>
parser()
AttrValue.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, 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
-
-
-
-
Field Detail
-
S_FIELD_NUMBER
public static final int S_FIELD_NUMBER
- See Also:
- Constant Field Values
-
I_FIELD_NUMBER
public static final int I_FIELD_NUMBER
- See Also:
- Constant Field Values
-
F_FIELD_NUMBER
public static final int F_FIELD_NUMBER
- See Also:
- Constant Field Values
-
B_FIELD_NUMBER
public static final int B_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SHAPE_FIELD_NUMBER
public static final int SHAPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TENSOR_FIELD_NUMBER
public static final int TENSOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LIST_FIELD_NUMBER
public static final int LIST_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FUNC_FIELD_NUMBER
public static final int FUNC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PLACEHOLDER_FIELD_NUMBER
public static final int PLACEHOLDER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFields
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in classcom.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 classcom.google.protobuf.GeneratedMessageV3
-
getValueCase
public AttrValue.ValueCase getValueCase()
- Specified by:
getValueCase
in interfaceAttrValueOrBuilder
-
getS
public com.google.protobuf.ByteString getS()
"string"
bytes s = 2;
- Specified by:
getS
in interfaceAttrValueOrBuilder
- Returns:
- The s.
-
getI
public long getI()
"int"
int64 i = 3;
- Specified by:
getI
in interfaceAttrValueOrBuilder
- Returns:
- The i.
-
getF
public float getF()
"float"
float f = 4;
- Specified by:
getF
in interfaceAttrValueOrBuilder
- Returns:
- The f.
-
getB
public boolean getB()
"bool"
bool b = 5;
- Specified by:
getB
in interfaceAttrValueOrBuilder
- Returns:
- The b.
-
getTypeValue
public int getTypeValue()
"type"
.org.platanios.tensorflow.proto.DataType type = 6;
- Specified by:
getTypeValue
in interfaceAttrValueOrBuilder
- Returns:
- The enum numeric value on the wire for type.
-
getType
public DataType getType()
"type"
.org.platanios.tensorflow.proto.DataType type = 6;
- Specified by:
getType
in interfaceAttrValueOrBuilder
- Returns:
- The type.
-
hasShape
public boolean hasShape()
"shape"
.org.platanios.tensorflow.proto.TensorShapeProto shape = 7;
- Specified by:
hasShape
in interfaceAttrValueOrBuilder
- Returns:
- Whether the shape field is set.
-
getShape
public TensorShapeProto getShape()
"shape"
.org.platanios.tensorflow.proto.TensorShapeProto shape = 7;
- Specified by:
getShape
in interfaceAttrValueOrBuilder
- Returns:
- The shape.
-
getShapeOrBuilder
public TensorShapeProtoOrBuilder getShapeOrBuilder()
"shape"
.org.platanios.tensorflow.proto.TensorShapeProto shape = 7;
- Specified by:
getShapeOrBuilder
in interfaceAttrValueOrBuilder
-
hasTensor
public boolean hasTensor()
"tensor"
.org.platanios.tensorflow.proto.TensorProto tensor = 8;
- Specified by:
hasTensor
in interfaceAttrValueOrBuilder
- Returns:
- Whether the tensor field is set.
-
getTensor
public TensorProto getTensor()
"tensor"
.org.platanios.tensorflow.proto.TensorProto tensor = 8;
- Specified by:
getTensor
in interfaceAttrValueOrBuilder
- Returns:
- The tensor.
-
getTensorOrBuilder
public TensorProtoOrBuilder getTensorOrBuilder()
"tensor"
.org.platanios.tensorflow.proto.TensorProto tensor = 8;
- Specified by:
getTensorOrBuilder
in interfaceAttrValueOrBuilder
-
hasList
public boolean hasList()
any "list(...)"
.org.platanios.tensorflow.proto.AttrValue.ListValue list = 1;
- Specified by:
hasList
in interfaceAttrValueOrBuilder
- Returns:
- Whether the list field is set.
-
getList
public AttrValue.ListValue getList()
any "list(...)"
.org.platanios.tensorflow.proto.AttrValue.ListValue list = 1;
- Specified by:
getList
in interfaceAttrValueOrBuilder
- Returns:
- The list.
-
getListOrBuilder
public AttrValue.ListValueOrBuilder getListOrBuilder()
any "list(...)"
.org.platanios.tensorflow.proto.AttrValue.ListValue list = 1;
- Specified by:
getListOrBuilder
in interfaceAttrValueOrBuilder
-
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.
.org.platanios.tensorflow.proto.NameAttrList func = 10;
- Specified by:
hasFunc
in interfaceAttrValueOrBuilder
- 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.
.org.platanios.tensorflow.proto.NameAttrList func = 10;
- Specified by:
getFunc
in interfaceAttrValueOrBuilder
- 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.
.org.platanios.tensorflow.proto.NameAttrList func = 10;
- Specified by:
getFuncOrBuilder
in interfaceAttrValueOrBuilder
-
getPlaceholder
public java.lang.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 interfaceAttrValueOrBuilder
- 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 interfaceAttrValueOrBuilder
- Returns:
- The bytes for placeholder.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AttrValue parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttrValue parseFrom(java.nio.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(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static AttrValue parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static AttrValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static AttrValue parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static AttrValue parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static AttrValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public AttrValue.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.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 interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AttrValue.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.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 interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AttrValue getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-