Package org.platanios.tensorflow.proto
Class OpDef.AttrDef
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- org.platanios.tensorflow.proto.OpDef.AttrDef
-
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.io.Serializable
,OpDef.AttrDefOrBuilder
- Enclosing class:
- OpDef
public static final class OpDef.AttrDef extends com.google.protobuf.GeneratedMessageV3 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 typeorg.platanios.tensorflow.proto.OpDef.AttrDef
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OpDef.AttrDef.Builder
Description of the graph-construction-time configuration of this Op.-
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
ALLOWED_VALUES_FIELD_NUMBER
static int
DEFAULT_VALUE_FIELD_NUMBER
static int
DESCRIPTION_FIELD_NUMBER
static int
HAS_MINIMUM_FIELD_NUMBER
static int
MINIMUM_FIELD_NUMBER
static int
NAME_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)
AttrValue
getAllowedValues()
The set of allowed values.AttrValueOrBuilder
getAllowedValuesOrBuilder()
The set of allowed values.static OpDef.AttrDef
getDefaultInstance()
OpDef.AttrDef
getDefaultInstanceForType()
AttrValue
getDefaultValue()
A reasonable default for this attribute if the user does not supply a value.AttrValueOrBuilder
getDefaultValueOrBuilder()
A reasonable default for this attribute if the user does not supply a value.java.lang.String
getDescription()
Human-readable description.com.google.protobuf.ByteString
getDescriptionBytes()
Human-readable description.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
boolean
getHasMinimum()
For type == "int", this is a minimum value.long
getMinimum()
int64 minimum = 6;
java.lang.String
getName()
A descriptive name for the argument.com.google.protobuf.ByteString
getNameBytes()
A descriptive name for the argument.com.google.protobuf.Parser<OpDef.AttrDef>
getParserForType()
int
getSerializedSize()
java.lang.String
getType()
One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).com.google.protobuf.ByteString
getTypeBytes()
One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).com.google.protobuf.UnknownFieldSet
getUnknownFields()
boolean
hasAllowedValues()
The set of allowed values.boolean
hasDefaultValue()
A reasonable default for this attribute if the user does not supply a value.int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static OpDef.AttrDef.Builder
newBuilder()
static OpDef.AttrDef.Builder
newBuilder(OpDef.AttrDef prototype)
OpDef.AttrDef.Builder
newBuilderForType()
protected OpDef.AttrDef.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected java.lang.Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static OpDef.AttrDef
parseDelimitedFrom(java.io.InputStream input)
static OpDef.AttrDef
parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static OpDef.AttrDef
parseFrom(byte[] data)
static OpDef.AttrDef
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static OpDef.AttrDef
parseFrom(com.google.protobuf.ByteString data)
static OpDef.AttrDef
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static OpDef.AttrDef
parseFrom(com.google.protobuf.CodedInputStream input)
static OpDef.AttrDef
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static OpDef.AttrDef
parseFrom(java.io.InputStream input)
static OpDef.AttrDef
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static OpDef.AttrDef
parseFrom(java.nio.ByteBuffer data)
static OpDef.AttrDef
parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<OpDef.AttrDef>
parser()
OpDef.AttrDef.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
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEFAULT_VALUE_FIELD_NUMBER
public static final int DEFAULT_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HAS_MINIMUM_FIELD_NUMBER
public static final int HAS_MINIMUM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MINIMUM_FIELD_NUMBER
public static final int MINIMUM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ALLOWED_VALUES_FIELD_NUMBER
public static final int ALLOWED_VALUES_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
-
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 interfaceOpDef.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 interfaceOpDef.AttrDefOrBuilder
- Returns:
- The bytes for name.
-
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 interfaceOpDef.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 interfaceOpDef.AttrDefOrBuilder
- Returns:
- The bytes for type.
-
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 interfaceOpDef.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 interfaceOpDef.AttrDefOrBuilder
- Returns:
- The defaultValue.
-
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 interfaceOpDef.AttrDefOrBuilder
-
getDescription
public java.lang.String getDescription()
Human-readable description.
string description = 4;
- Specified by:
getDescription
in interfaceOpDef.AttrDefOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Human-readable description.
string description = 4;
- Specified by:
getDescriptionBytes
in interfaceOpDef.AttrDefOrBuilder
- Returns:
- The bytes for description.
-
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 interfaceOpDef.AttrDefOrBuilder
- Returns:
- The hasMinimum.
-
getMinimum
public long getMinimum()
int64 minimum = 6;
- Specified by:
getMinimum
in interfaceOpDef.AttrDefOrBuilder
- Returns:
- The minimum.
-
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 interfaceOpDef.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 interfaceOpDef.AttrDefOrBuilder
- Returns:
- The allowedValues.
-
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 interfaceOpDef.AttrDefOrBuilder
-
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 OpDef.AttrDef parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpDef.AttrDef parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpDef.AttrDef parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpDef.AttrDef parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpDef.AttrDef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpDef.AttrDef parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpDef.AttrDef parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static OpDef.AttrDef parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static OpDef.AttrDef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static OpDef.AttrDef parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static OpDef.AttrDef parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static OpDef.AttrDef parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public OpDef.AttrDef.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static OpDef.AttrDef.Builder newBuilder()
-
newBuilder
public static OpDef.AttrDef.Builder newBuilder(OpDef.AttrDef prototype)
-
toBuilder
public OpDef.AttrDef.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected OpDef.AttrDef.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static OpDef.AttrDef getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<OpDef.AttrDef> parser()
-
getParserForType
public com.google.protobuf.Parser<OpDef.AttrDef> 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 OpDef.AttrDef getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-