Package org.tensorflow.framework
Class OpDef.ArgDef.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
org.tensorflow.framework.OpDef.ArgDef.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable,OpDef.ArgDefOrBuilder
- Enclosing class:
- OpDef.ArgDef
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-
Method Summary
Modifier and Type Method Description OpDef.ArgDef.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)OpDef.ArgDefbuild()OpDef.ArgDefbuildPartial()OpDef.ArgDef.Builderclear()OpDef.ArgDef.BuilderclearDescription()Human readable description.OpDef.ArgDef.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)OpDef.ArgDef.BuilderclearIsRef()For inputs: if true, the inputs are required to be refs.OpDef.ArgDef.BuilderclearName()Name for the input/output.OpDef.ArgDef.BuilderclearNumberAttr()if specified, attr must have type "int"OpDef.ArgDef.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)OpDef.ArgDef.BuilderclearType()Describes the type of one or more tensors that are accepted/produced by this input/output arg.OpDef.ArgDef.BuilderclearTypeAttr()if specified, attr must have type "type"OpDef.ArgDef.BuilderclearTypeListAttr()If specified, attr must have type "list(type)", and none of type, type_attr, and number_attr may be specified.OpDef.ArgDef.Builderclone()OpDef.ArgDefgetDefaultInstanceForType()java.lang.StringgetDescription()Human readable description.com.google.protobuf.ByteStringgetDescriptionBytes()Human readable description.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetIsRef()For inputs: if true, the inputs are required to be refs.java.lang.StringgetName()Name for the input/output.com.google.protobuf.ByteStringgetNameBytes()Name for the input/output.java.lang.StringgetNumberAttr()if specified, attr must have type "int"com.google.protobuf.ByteStringgetNumberAttrBytes()if specified, attr must have type "int"DataTypegetType()Describes the type of one or more tensors that are accepted/produced by this input/output arg.java.lang.StringgetTypeAttr()if specified, attr must have type "type"com.google.protobuf.ByteStringgetTypeAttrBytes()if specified, attr must have type "type"java.lang.StringgetTypeListAttr()If specified, attr must have type "list(type)", and none of type, type_attr, and number_attr may be specified.com.google.protobuf.ByteStringgetTypeListAttrBytes()If specified, attr must have type "list(type)", and none of type, type_attr, and number_attr may be specified.intgetTypeValue()Describes the type of one or more tensors that are accepted/produced by this input/output arg.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()OpDef.ArgDef.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)OpDef.ArgDef.BuildermergeFrom(com.google.protobuf.Message other)OpDef.ArgDef.BuildermergeFrom(OpDef.ArgDef other)OpDef.ArgDef.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)OpDef.ArgDef.BuildersetDescription(java.lang.String value)Human readable description.OpDef.ArgDef.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)Human readable description.OpDef.ArgDef.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)OpDef.ArgDef.BuildersetIsRef(boolean value)For inputs: if true, the inputs are required to be refs.OpDef.ArgDef.BuildersetName(java.lang.String value)Name for the input/output.OpDef.ArgDef.BuildersetNameBytes(com.google.protobuf.ByteString value)Name for the input/output.OpDef.ArgDef.BuildersetNumberAttr(java.lang.String value)if specified, attr must have type "int"OpDef.ArgDef.BuildersetNumberAttrBytes(com.google.protobuf.ByteString value)if specified, attr must have type "int"OpDef.ArgDef.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)OpDef.ArgDef.BuildersetType(DataType value)Describes the type of one or more tensors that are accepted/produced by this input/output arg.OpDef.ArgDef.BuildersetTypeAttr(java.lang.String value)if specified, attr must have type "type"OpDef.ArgDef.BuildersetTypeAttrBytes(com.google.protobuf.ByteString value)if specified, attr must have type "type"OpDef.ArgDef.BuildersetTypeListAttr(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.BuildersetTypeListAttrBytes(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.BuildersetTypeValue(int value)Describes the type of one or more tensors that are accepted/produced by this input/output arg.OpDef.ArgDef.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
-
setField
public OpDef.ArgDef.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
-
setRepeatedField
public OpDef.ArgDef.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
-
addRepeatedField
public OpDef.ArgDef.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OpDef.ArgDef.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
-
mergeFrom
public OpDef.ArgDef.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OpDef.ArgDef.Builder>- Throws:
java.io.IOException
-
getName
public java.lang.String getName()Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
string name = 1;- Specified by:
getNamein interfaceOpDef.ArgDefOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
string name = 1;- Specified by:
getNameBytesin interfaceOpDef.ArgDefOrBuilder- Returns:
- The bytes for name.
-
setName
Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDescription
public java.lang.String getDescription()Human readable description.
string description = 2;- Specified by:
getDescriptionin interfaceOpDef.ArgDefOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Human readable description.
string description = 2;- Specified by:
getDescriptionBytesin interfaceOpDef.ArgDefOrBuilder- Returns:
- The bytes for description.
-
setDescription
Human readable description.
string description = 2;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Human readable description.
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
Human readable description.
string description = 2;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getTypeValue
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;- Specified by:
getTypeValuein interfaceOpDef.ArgDefOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
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;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getTypein interfaceOpDef.ArgDefOrBuilder- Returns:
- The type.
-
setType
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;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
getTypeAttr
public java.lang.String getTypeAttr()if specified, attr must have type "type"
string type_attr = 4;- Specified by:
getTypeAttrin interfaceOpDef.ArgDefOrBuilder- Returns:
- The typeAttr.
-
getTypeAttrBytes
public com.google.protobuf.ByteString getTypeAttrBytes()if specified, attr must have type "type"
string type_attr = 4;- Specified by:
getTypeAttrBytesin interfaceOpDef.ArgDefOrBuilder- Returns:
- The bytes for typeAttr.
-
setTypeAttr
if specified, attr must have type "type"
string type_attr = 4;- Parameters:
value- The typeAttr to set.- Returns:
- This builder for chaining.
-
clearTypeAttr
if specified, attr must have type "type"
string type_attr = 4;- Returns:
- This builder for chaining.
-
setTypeAttrBytes
if specified, attr must have type "type"
string type_attr = 4;- Parameters:
value- The bytes for typeAttr to set.- Returns:
- This builder for chaining.
-
getNumberAttr
public java.lang.String getNumberAttr()if specified, attr must have type "int"
string number_attr = 5;- Specified by:
getNumberAttrin interfaceOpDef.ArgDefOrBuilder- Returns:
- The numberAttr.
-
getNumberAttrBytes
public com.google.protobuf.ByteString getNumberAttrBytes()if specified, attr must have type "int"
string number_attr = 5;- Specified by:
getNumberAttrBytesin interfaceOpDef.ArgDefOrBuilder- Returns:
- The bytes for numberAttr.
-
setNumberAttr
if specified, attr must have type "int"
string number_attr = 5;- Parameters:
value- The numberAttr to set.- Returns:
- This builder for chaining.
-
clearNumberAttr
if specified, attr must have type "int"
string number_attr = 5;- Returns:
- This builder for chaining.
-
setNumberAttrBytes
if specified, attr must have type "int"
string number_attr = 5;- Parameters:
value- The bytes for numberAttr to set.- Returns:
- This builder for chaining.
-
getTypeListAttr
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;- Specified by:
getTypeListAttrin interfaceOpDef.ArgDefOrBuilder- Returns:
- The typeListAttr.
-
getTypeListAttrBytes
public 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;- Specified by:
getTypeListAttrBytesin interfaceOpDef.ArgDefOrBuilder- Returns:
- The bytes for typeListAttr.
-
setTypeListAttr
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;- Parameters:
value- The typeListAttr to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setTypeListAttrBytes
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;- Parameters:
value- The bytes for typeListAttr to set.- Returns:
- This builder for chaining.
-
getIsRef
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;- Specified by:
getIsRefin interfaceOpDef.ArgDefOrBuilder- Returns:
- The isRef.
-
setIsRef
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;- Parameters:
value- The isRef to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setUnknownFields
public final OpDef.ArgDef.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
-
mergeUnknownFields
public final OpDef.ArgDef.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
-