public static final class OpDef.ArgDef extends com.google.protobuf.GeneratedMessageV3 implements OpDef.ArgDefOrBuilder
For describing inputs and outputs.Protobuf type
tensorflow.OpDef.ArgDef| Modifier and Type | Class and Description |
|---|---|
static class |
OpDef.ArgDef.Builder
For describing inputs and outputs.
|
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| Modifier and Type | Field and Description |
|---|---|
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
IS_REF_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
NUMBER_ATTR_FIELD_NUMBER |
static int |
TYPE_ATTR_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
static int |
TYPE_LIST_ATTR_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static OpDef.ArgDef |
getDefaultInstance() |
OpDef.ArgDef |
getDefaultInstanceForType() |
java.lang.String |
getDescription()
Human readable description.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
Human readable description.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getIsRef()
For inputs: if true, the inputs are required to be refs.
|
java.lang.String |
getName()
Name for the input/output.
|
com.google.protobuf.ByteString |
getNameBytes()
Name for the input/output.
|
java.lang.String |
getNumberAttr()
if specified, attr must have type "int"
|
com.google.protobuf.ByteString |
getNumberAttrBytes()
if specified, attr must have type "int"
|
com.google.protobuf.Parser<OpDef.ArgDef> |
getParserForType() |
int |
getSerializedSize() |
DataType |
getType()
Describes the type of one or more tensors that are accepted/produced
by this input/output arg.
|
java.lang.String |
getTypeAttr()
if specified, attr must have type "type"
|
com.google.protobuf.ByteString |
getTypeAttrBytes()
if specified, attr must have type "type"
|
java.lang.String |
getTypeListAttr()
If specified, attr must have type "list(type)", and none of
type, type_attr, and number_attr may be specified.
|
com.google.protobuf.ByteString |
getTypeListAttrBytes()
If specified, attr must have type "list(type)", and none of
type, type_attr, and number_attr may be specified.
|
int |
getTypeValue()
Describes the type of one or more tensors that are accepted/produced
by this input/output arg.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static OpDef.ArgDef.Builder |
newBuilder() |
static OpDef.ArgDef.Builder |
newBuilder(OpDef.ArgDef prototype) |
OpDef.ArgDef.Builder |
newBuilderForType() |
protected OpDef.ArgDef.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static OpDef.ArgDef |
parseDelimitedFrom(java.io.InputStream input) |
static OpDef.ArgDef |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OpDef.ArgDef |
parseFrom(byte[] data) |
static OpDef.ArgDef |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OpDef.ArgDef |
parseFrom(java.nio.ByteBuffer data) |
static OpDef.ArgDef |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OpDef.ArgDef |
parseFrom(com.google.protobuf.ByteString data) |
static OpDef.ArgDef |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OpDef.ArgDef |
parseFrom(com.google.protobuf.CodedInputStream input) |
static OpDef.ArgDef |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OpDef.ArgDef |
parseFrom(java.io.InputStream input) |
static OpDef.ArgDef |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<OpDef.ArgDef> |
parser() |
OpDef.ArgDef.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int TYPE_ATTR_FIELD_NUMBER
public static final int NUMBER_ATTR_FIELD_NUMBER
public static final int TYPE_LIST_ATTR_FIELD_NUMBER
public static final int IS_REF_FIELD_NUMBER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public java.lang.String getName()
Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
string name = 1;getName in interface OpDef.ArgDefOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
string name = 1;getNameBytes in interface OpDef.ArgDefOrBuilderpublic java.lang.String getDescription()
Human readable description.
string description = 2;getDescription in interface OpDef.ArgDefOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
Human readable description.
string description = 2;getDescriptionBytes in interface OpDef.ArgDefOrBuilderpublic int getTypeValue()
Describes the type of one or more tensors that are accepted/produced by this input/output arg. The only legal combinations are: * For a single tensor: either the "type" field is set or the "type_attr" field is set to the name of an attr with type "type". * For a sequence of tensors with the same type: the "number_attr" field will be set to the name of an attr with type "int", and either the "type" or "type_attr" field will be set as for single tensors. * For a sequence of tensors, the "type_list_attr" field will be set to the name of an attr with type "list(type)".
.tensorflow.DataType type = 3;getTypeValue in interface OpDef.ArgDefOrBuilderpublic DataType getType()
Describes the type of one or more tensors that are accepted/produced by this input/output arg. The only legal combinations are: * For a single tensor: either the "type" field is set or the "type_attr" field is set to the name of an attr with type "type". * For a sequence of tensors with the same type: the "number_attr" field will be set to the name of an attr with type "int", and either the "type" or "type_attr" field will be set as for single tensors. * For a sequence of tensors, the "type_list_attr" field will be set to the name of an attr with type "list(type)".
.tensorflow.DataType type = 3;getType in interface OpDef.ArgDefOrBuilderpublic java.lang.String getTypeAttr()
if specified, attr must have type "type"
string type_attr = 4;getTypeAttr in interface OpDef.ArgDefOrBuilderpublic com.google.protobuf.ByteString getTypeAttrBytes()
if specified, attr must have type "type"
string type_attr = 4;getTypeAttrBytes in interface OpDef.ArgDefOrBuilderpublic java.lang.String getNumberAttr()
if specified, attr must have type "int"
string number_attr = 5;getNumberAttr in interface OpDef.ArgDefOrBuilderpublic com.google.protobuf.ByteString getNumberAttrBytes()
if specified, attr must have type "int"
string number_attr = 5;getNumberAttrBytes in interface OpDef.ArgDefOrBuilderpublic java.lang.String getTypeListAttr()
If specified, attr must have type "list(type)", and none of type, type_attr, and number_attr may be specified.
string type_list_attr = 6;getTypeListAttr in interface OpDef.ArgDefOrBuilderpublic com.google.protobuf.ByteString getTypeListAttrBytes()
If specified, attr must have type "list(type)", and none of type, type_attr, and number_attr may be specified.
string type_list_attr = 6;getTypeListAttrBytes in interface OpDef.ArgDefOrBuilderpublic boolean getIsRef()
For inputs: if true, the inputs are required to be refs. By default, inputs can be either refs or non-refs. For outputs: if true, outputs are refs, otherwise they are not.
bool is_ref = 16;getIsRef in interface OpDef.ArgDefOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static OpDef.ArgDef parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OpDef.ArgDef parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OpDef.ArgDef parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OpDef.ArgDef parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OpDef.ArgDef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OpDef.ArgDef parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OpDef.ArgDef parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static OpDef.ArgDef parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static OpDef.ArgDef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static OpDef.ArgDef parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static OpDef.ArgDef parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static OpDef.ArgDef parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic OpDef.ArgDef.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static OpDef.ArgDef.Builder newBuilder()
public static OpDef.ArgDef.Builder newBuilder(OpDef.ArgDef prototype)
public OpDef.ArgDef.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected OpDef.ArgDef.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static OpDef.ArgDef getDefaultInstance()
public static com.google.protobuf.Parser<OpDef.ArgDef> parser()
public com.google.protobuf.Parser<OpDef.ArgDef> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public OpDef.ArgDef getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder