Package org.platanios.tensorflow.proto
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.platanios.tensorflow.proto.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 typeorg.platanios.tensorflow.proto.OpDef.ArgDef
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
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, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
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.Builder<OpDef.ArgDef.Builder>
-
clear
public OpDef.ArgDef.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
-
getDefaultInstanceForType
public OpDef.ArgDef getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public OpDef.ArgDef build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public OpDef.ArgDef buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public OpDef.ArgDef.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in 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:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
-
clearField
public OpDef.ArgDef.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
-
clearOneof
public OpDef.ArgDef.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in 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:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
-
mergeFrom
public OpDef.ArgDef.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<OpDef.ArgDef.Builder>
-
mergeFrom
public OpDef.ArgDef.Builder mergeFrom(OpDef.ArgDef other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getName
in 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:
getNameBytes
in interfaceOpDef.ArgDefOrBuilder
- Returns:
- The bytes for name.
-
setName
public 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;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public OpDef.ArgDef.Builder clearName()
Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
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;
- 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:
getDescription
in interfaceOpDef.ArgDefOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Human readable description.
string description = 2;
- Specified by:
getDescriptionBytes
in interfaceOpDef.ArgDefOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public OpDef.ArgDef.Builder setDescription(java.lang.String value)
Human readable description.
string description = 2;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public OpDef.ArgDef.Builder clearDescription()
Human readable description.
string description = 2;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
public OpDef.ArgDef.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
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)".
.org.platanios.tensorflow.proto.DataType type = 3;
- Specified by:
getTypeValue
in interfaceOpDef.ArgDefOrBuilder
- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
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)".
.org.platanios.tensorflow.proto.DataType type = 3;
- Parameters:
value
- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
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)".
.org.platanios.tensorflow.proto.DataType type = 3;
- Specified by:
getType
in interfaceOpDef.ArgDefOrBuilder
- Returns:
- The type.
-
setType
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)".
.org.platanios.tensorflow.proto.DataType type = 3;
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
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)".
.org.platanios.tensorflow.proto.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:
getTypeAttr
in 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:
getTypeAttrBytes
in interfaceOpDef.ArgDefOrBuilder
- Returns:
- The bytes for typeAttr.
-
setTypeAttr
public OpDef.ArgDef.Builder setTypeAttr(java.lang.String value)
if specified, attr must have type "type"
string type_attr = 4;
- Parameters:
value
- The typeAttr to set.- Returns:
- This builder for chaining.
-
clearTypeAttr
public OpDef.ArgDef.Builder clearTypeAttr()
if specified, attr must have type "type"
string type_attr = 4;
- Returns:
- This builder for chaining.
-
setTypeAttrBytes
public OpDef.ArgDef.Builder setTypeAttrBytes(com.google.protobuf.ByteString value)
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:
getNumberAttr
in 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:
getNumberAttrBytes
in interfaceOpDef.ArgDefOrBuilder
- Returns:
- The bytes for numberAttr.
-
setNumberAttr
public OpDef.ArgDef.Builder setNumberAttr(java.lang.String value)
if specified, attr must have type "int"
string number_attr = 5;
- Parameters:
value
- The numberAttr to set.- Returns:
- This builder for chaining.
-
clearNumberAttr
public OpDef.ArgDef.Builder clearNumberAttr()
if specified, attr must have type "int"
string number_attr = 5;
- Returns:
- This builder for chaining.
-
setNumberAttrBytes
public OpDef.ArgDef.Builder setNumberAttrBytes(com.google.protobuf.ByteString value)
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:
getTypeListAttr
in 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:
getTypeListAttrBytes
in interfaceOpDef.ArgDefOrBuilder
- Returns:
- The bytes for typeListAttr.
-
setTypeListAttr
public 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;
- Parameters:
value
- The typeListAttr to set.- Returns:
- This builder for chaining.
-
clearTypeListAttr
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;
- Returns:
- This builder for chaining.
-
setTypeListAttrBytes
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;
- 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:
getIsRef
in interfaceOpDef.ArgDefOrBuilder
- Returns:
- The isRef.
-
setIsRef
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;
- Parameters:
value
- The isRef to set.- Returns:
- This builder for chaining.
-
clearIsRef
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;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final OpDef.ArgDef.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
-
mergeUnknownFields
public final OpDef.ArgDef.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
-
-