public static final class OpDef.ArgDef.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder> implements OpDef.ArgDefOrBuilder
For describing inputs and outputs.Protobuf type
tensorflow.OpDef.ArgDef| Modifier and Type | Method and Description |
|---|---|
OpDef.ArgDef.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
OpDef.ArgDef |
build() |
OpDef.ArgDef |
buildPartial() |
OpDef.ArgDef.Builder |
clear() |
OpDef.ArgDef.Builder |
clearDescription()
Human readable description.
|
OpDef.ArgDef.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
OpDef.ArgDef.Builder |
clearIsRef()
For inputs: if true, the inputs are required to be refs.
|
OpDef.ArgDef.Builder |
clearName()
Name for the input/output.
|
OpDef.ArgDef.Builder |
clearNumberAttr()
if specified, attr must have type "int"
|
OpDef.ArgDef.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
OpDef.ArgDef.Builder |
clearType()
Describes the type of one or more tensors that are accepted/produced
by this input/output arg.
|
OpDef.ArgDef.Builder |
clearTypeAttr()
if specified, attr must have type "type"
|
OpDef.ArgDef.Builder |
clearTypeListAttr()
If specified, attr must have type "list(type)", and none of
type, type_attr, and number_attr may be specified.
|
OpDef.ArgDef.Builder |
clone() |
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() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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"
|
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
OpDef.ArgDef.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
OpDef.ArgDef.Builder |
mergeFrom(com.google.protobuf.Message other) |
OpDef.ArgDef.Builder |
mergeFrom(OpDef.ArgDef other) |
OpDef.ArgDef.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
OpDef.ArgDef.Builder |
setDescription(java.lang.String value)
Human readable description.
|
OpDef.ArgDef.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
Human readable description.
|
OpDef.ArgDef.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
OpDef.ArgDef.Builder |
setIsRef(boolean value)
For inputs: if true, the inputs are required to be refs.
|
OpDef.ArgDef.Builder |
setName(java.lang.String value)
Name for the input/output.
|
OpDef.ArgDef.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Name for the input/output.
|
OpDef.ArgDef.Builder |
setNumberAttr(java.lang.String value)
if specified, attr must have type "int"
|
OpDef.ArgDef.Builder |
setNumberAttrBytes(com.google.protobuf.ByteString value)
if specified, attr must have type "int"
|
OpDef.ArgDef.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
OpDef.ArgDef.Builder |
setType(DataType value)
Describes the type of one or more tensors that are accepted/produced
by this input/output arg.
|
OpDef.ArgDef.Builder |
setTypeAttr(java.lang.String value)
if specified, attr must have type "type"
|
OpDef.ArgDef.Builder |
setTypeAttrBytes(com.google.protobuf.ByteString value)
if specified, attr must have type "type"
|
OpDef.ArgDef.Builder |
setTypeListAttr(java.lang.String value)
If specified, attr must have type "list(type)", and none of
type, type_attr, and number_attr may be specified.
|
OpDef.ArgDef.Builder |
setTypeListAttrBytes(com.google.protobuf.ByteString value)
If specified, attr must have type "list(type)", and none of
type, type_attr, and number_attr may be specified.
|
OpDef.ArgDef.Builder |
setTypeValue(int value)
Describes the type of one or more tensors that are accepted/produced
by this input/output arg.
|
OpDef.ArgDef.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>public OpDef.ArgDef.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>public OpDef.ArgDef getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic OpDef.ArgDef build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic OpDef.ArgDef buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic OpDef.ArgDef.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>public OpDef.ArgDef.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>public OpDef.ArgDef.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>public OpDef.ArgDef.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>public OpDef.ArgDef.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>public OpDef.ArgDef.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>public OpDef.ArgDef.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<OpDef.ArgDef.Builder>public OpDef.ArgDef.Builder mergeFrom(OpDef.ArgDef other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>public OpDef.ArgDef.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<OpDef.ArgDef.Builder>java.io.IOExceptionpublic 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 OpDef.ArgDef.Builder setName(java.lang.String value)
Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
string name = 1;value - The name to set.public OpDef.ArgDef.Builder clearName()
Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
string name = 1;public OpDef.ArgDef.Builder setNameBytes(com.google.protobuf.ByteString value)
Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
string name = 1;value - The bytes for name to set.public 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 OpDef.ArgDef.Builder setDescription(java.lang.String value)
Human readable description.
string description = 2;value - The description to set.public OpDef.ArgDef.Builder clearDescription()
Human readable description.
string description = 2;public OpDef.ArgDef.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Human readable description.
string description = 2;value - The bytes for description to set.public 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 OpDef.ArgDef.Builder setTypeValue(int value)
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;value - The enum numeric value on the wire for type to set.public 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 OpDef.ArgDef.Builder setType(DataType value)
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;value - The type to set.public OpDef.ArgDef.Builder clearType()
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;public 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 OpDef.ArgDef.Builder setTypeAttr(java.lang.String value)
if specified, attr must have type "type"
string type_attr = 4;value - The typeAttr to set.public OpDef.ArgDef.Builder clearTypeAttr()
if specified, attr must have type "type"
string type_attr = 4;public OpDef.ArgDef.Builder setTypeAttrBytes(com.google.protobuf.ByteString value)
if specified, attr must have type "type"
string type_attr = 4;value - The bytes for typeAttr to set.public 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 OpDef.ArgDef.Builder setNumberAttr(java.lang.String value)
if specified, attr must have type "int"
string number_attr = 5;value - The numberAttr to set.public OpDef.ArgDef.Builder clearNumberAttr()
if specified, attr must have type "int"
string number_attr = 5;public OpDef.ArgDef.Builder setNumberAttrBytes(com.google.protobuf.ByteString value)
if specified, attr must have type "int"
string number_attr = 5;value - The bytes for numberAttr to set.public 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 OpDef.ArgDef.Builder setTypeListAttr(java.lang.String value)
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;value - The typeListAttr to set.public OpDef.ArgDef.Builder clearTypeListAttr()
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;public OpDef.ArgDef.Builder setTypeListAttrBytes(com.google.protobuf.ByteString value)
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;value - The bytes for typeListAttr to set.public 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 OpDef.ArgDef.Builder setIsRef(boolean value)
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;value - The isRef to set.public OpDef.ArgDef.Builder clearIsRef()
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;public final OpDef.ArgDef.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>public final OpDef.ArgDef.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>