public static final class OpDef.ArgDef.Builder extends com.github.os72.protobuf351.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.github.os72.protobuf351.Descriptors.FieldDescriptor field,
Object value) |
OpDef.ArgDef |
build() |
OpDef.ArgDef |
buildPartial() |
OpDef.ArgDef.Builder |
clear() |
OpDef.ArgDef.Builder |
clearDescription()
Human readable description.
|
OpDef.ArgDef.Builder |
clearField(com.github.os72.protobuf351.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.github.os72.protobuf351.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() |
String |
getDescription()
Human readable description.
|
com.github.os72.protobuf351.ByteString |
getDescriptionBytes()
Human readable description.
|
static com.github.os72.protobuf351.Descriptors.Descriptor |
getDescriptor() |
com.github.os72.protobuf351.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getIsRef()
For inputs: if true, the inputs are required to be refs.
|
String |
getName()
Name for the input/output.
|
com.github.os72.protobuf351.ByteString |
getNameBytes()
Name for the input/output.
|
String |
getNumberAttr()
if specified, attr must have type "int"
|
com.github.os72.protobuf351.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.
|
String |
getTypeAttr()
if specified, attr must have type "type"
|
com.github.os72.protobuf351.ByteString |
getTypeAttrBytes()
if specified, attr must have type "type"
|
String |
getTypeListAttr()
If specified, attr must have type "list(type)", and none of
type, type_attr, and number_attr may be specified.
|
com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
OpDef.ArgDef.Builder |
mergeFrom(com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
OpDef.ArgDef.Builder |
mergeFrom(com.github.os72.protobuf351.Message other) |
OpDef.ArgDef.Builder |
mergeFrom(OpDef.ArgDef other) |
OpDef.ArgDef.Builder |
mergeUnknownFields(com.github.os72.protobuf351.UnknownFieldSet unknownFields) |
OpDef.ArgDef.Builder |
setDescription(String value)
Human readable description.
|
OpDef.ArgDef.Builder |
setDescriptionBytes(com.github.os72.protobuf351.ByteString value)
Human readable description.
|
OpDef.ArgDef.Builder |
setField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
Object value) |
OpDef.ArgDef.Builder |
setIsRef(boolean value)
For inputs: if true, the inputs are required to be refs.
|
OpDef.ArgDef.Builder |
setName(String value)
Name for the input/output.
|
OpDef.ArgDef.Builder |
setNameBytes(com.github.os72.protobuf351.ByteString value)
Name for the input/output.
|
OpDef.ArgDef.Builder |
setNumberAttr(String value)
if specified, attr must have type "int"
|
OpDef.ArgDef.Builder |
setNumberAttrBytes(com.github.os72.protobuf351.ByteString value)
if specified, attr must have type "int"
|
OpDef.ArgDef.Builder |
setRepeatedField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index,
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(String value)
if specified, attr must have type "type"
|
OpDef.ArgDef.Builder |
setTypeAttrBytes(com.github.os72.protobuf351.ByteString value)
if specified, attr must have type "type"
|
OpDef.ArgDef.Builder |
setTypeListAttr(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.github.os72.protobuf351.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.github.os72.protobuf351.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor()
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
public OpDef.ArgDef.Builder clear()
clear
in interface com.github.os72.protobuf351.Message.Builder
clear
in interface com.github.os72.protobuf351.MessageLite.Builder
clear
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
public com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.github.os72.protobuf351.Message.Builder
getDescriptorForType
in interface com.github.os72.protobuf351.MessageOrBuilder
getDescriptorForType
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
public OpDef.ArgDef getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.github.os72.protobuf351.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.github.os72.protobuf351.MessageOrBuilder
public OpDef.ArgDef build()
build
in interface com.github.os72.protobuf351.Message.Builder
build
in interface com.github.os72.protobuf351.MessageLite.Builder
public OpDef.ArgDef buildPartial()
buildPartial
in interface com.github.os72.protobuf351.Message.Builder
buildPartial
in interface com.github.os72.protobuf351.MessageLite.Builder
public OpDef.ArgDef.Builder clone()
clone
in interface com.github.os72.protobuf351.Message.Builder
clone
in interface com.github.os72.protobuf351.MessageLite.Builder
clone
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
public OpDef.ArgDef.Builder setField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.github.os72.protobuf351.Message.Builder
setField
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
public OpDef.ArgDef.Builder clearField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field)
clearField
in interface com.github.os72.protobuf351.Message.Builder
clearField
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
public OpDef.ArgDef.Builder clearOneof(com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.github.os72.protobuf351.Message.Builder
clearOneof
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
public OpDef.ArgDef.Builder setRepeatedField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.github.os72.protobuf351.Message.Builder
setRepeatedField
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
public OpDef.ArgDef.Builder addRepeatedField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.github.os72.protobuf351.Message.Builder
addRepeatedField
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
public OpDef.ArgDef.Builder mergeFrom(com.github.os72.protobuf351.Message other)
mergeFrom
in interface com.github.os72.protobuf351.Message.Builder
mergeFrom
in class com.github.os72.protobuf351.AbstractMessage.Builder<OpDef.ArgDef.Builder>
public OpDef.ArgDef.Builder mergeFrom(OpDef.ArgDef other)
public final boolean isInitialized()
isInitialized
in interface com.github.os72.protobuf351.MessageLiteOrBuilder
isInitialized
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
public OpDef.ArgDef.Builder mergeFrom(com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.github.os72.protobuf351.Message.Builder
mergeFrom
in interface com.github.os72.protobuf351.MessageLite.Builder
mergeFrom
in class com.github.os72.protobuf351.AbstractMessage.Builder<OpDef.ArgDef.Builder>
IOException
public String getName()
Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
string name = 1;
getName
in interface OpDef.ArgDefOrBuilder
public com.github.os72.protobuf351.ByteString getNameBytes()
Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
string name = 1;
getNameBytes
in interface OpDef.ArgDefOrBuilder
public OpDef.ArgDef.Builder setName(String value)
Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
string name = 1;
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.github.os72.protobuf351.ByteString value)
Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
string name = 1;
public String getDescription()
Human readable description.
string description = 2;
getDescription
in interface OpDef.ArgDefOrBuilder
public com.github.os72.protobuf351.ByteString getDescriptionBytes()
Human readable description.
string description = 2;
getDescriptionBytes
in interface OpDef.ArgDefOrBuilder
public OpDef.ArgDef.Builder setDescription(String value)
Human readable description.
string description = 2;
public OpDef.ArgDef.Builder clearDescription()
Human readable description.
string description = 2;
public OpDef.ArgDef.Builder setDescriptionBytes(com.github.os72.protobuf351.ByteString value)
Human readable description.
string description = 2;
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.ArgDefOrBuilder
public 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;
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.ArgDefOrBuilder
public 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;
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 String getTypeAttr()
if specified, attr must have type "type"
string type_attr = 4;
getTypeAttr
in interface OpDef.ArgDefOrBuilder
public com.github.os72.protobuf351.ByteString getTypeAttrBytes()
if specified, attr must have type "type"
string type_attr = 4;
getTypeAttrBytes
in interface OpDef.ArgDefOrBuilder
public OpDef.ArgDef.Builder setTypeAttr(String value)
if specified, attr must have type "type"
string type_attr = 4;
public OpDef.ArgDef.Builder clearTypeAttr()
if specified, attr must have type "type"
string type_attr = 4;
public OpDef.ArgDef.Builder setTypeAttrBytes(com.github.os72.protobuf351.ByteString value)
if specified, attr must have type "type"
string type_attr = 4;
public String getNumberAttr()
if specified, attr must have type "int"
string number_attr = 5;
getNumberAttr
in interface OpDef.ArgDefOrBuilder
public com.github.os72.protobuf351.ByteString getNumberAttrBytes()
if specified, attr must have type "int"
string number_attr = 5;
getNumberAttrBytes
in interface OpDef.ArgDefOrBuilder
public OpDef.ArgDef.Builder setNumberAttr(String value)
if specified, attr must have type "int"
string number_attr = 5;
public OpDef.ArgDef.Builder clearNumberAttr()
if specified, attr must have type "int"
string number_attr = 5;
public OpDef.ArgDef.Builder setNumberAttrBytes(com.github.os72.protobuf351.ByteString value)
if specified, attr must have type "int"
string number_attr = 5;
public 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.ArgDefOrBuilder
public com.github.os72.protobuf351.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.ArgDefOrBuilder
public OpDef.ArgDef.Builder setTypeListAttr(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;
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.github.os72.protobuf351.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;
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.ArgDefOrBuilder
public 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;
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.github.os72.protobuf351.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.github.os72.protobuf351.Message.Builder
setUnknownFields
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
public final OpDef.ArgDef.Builder mergeUnknownFields(com.github.os72.protobuf351.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.github.os72.protobuf351.Message.Builder
mergeUnknownFields
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
Copyright © 2018. All rights reserved.