Package org.platanios.tensorflow.proto
Class ApiDef.Attr.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ApiDef.Attr.Builder>
-
- org.platanios.tensorflow.proto.ApiDef.Attr.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
,ApiDef.AttrOrBuilder
- Enclosing class:
- ApiDef.Attr
public static final class ApiDef.Attr.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ApiDef.Attr.Builder> implements ApiDef.AttrOrBuilder
Description of the graph-construction-time configuration of this Op. That is to say, this describes the attr fields that will be specified in the NodeDef.
Protobuf typeorg.platanios.tensorflow.proto.ApiDef.Attr
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiDef.Attr.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ApiDef.Attr
build()
ApiDef.Attr
buildPartial()
ApiDef.Attr.Builder
clear()
ApiDef.Attr.Builder
clearDefaultValue()
Specify a new default value to use for this attr.ApiDef.Attr.Builder
clearDescription()
Note: this will replace any inherited attr doc, there is no current way of modifying attr descriptions as can be done with op descriptions.ApiDef.Attr.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ApiDef.Attr.Builder
clearName()
string name = 1;
ApiDef.Attr.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ApiDef.Attr.Builder
clearRenameTo()
Change the name used to access this attr in the API from what is used in the GraphDef.ApiDef.Attr.Builder
clone()
ApiDef.Attr
getDefaultInstanceForType()
AttrValue
getDefaultValue()
Specify a new default value to use for this attr.AttrValue.Builder
getDefaultValueBuilder()
Specify a new default value to use for this attr.AttrValueOrBuilder
getDefaultValueOrBuilder()
Specify a new default value to use for this attr.java.lang.String
getDescription()
Note: this will replace any inherited attr doc, there is no current way of modifying attr descriptions as can be done with op descriptions.com.google.protobuf.ByteString
getDescriptionBytes()
Note: this will replace any inherited attr doc, there is no current way of modifying attr descriptions as can be done with op descriptions.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getName()
string name = 1;
com.google.protobuf.ByteString
getNameBytes()
string name = 1;
java.lang.String
getRenameTo()
Change the name used to access this attr in the API from what is used in the GraphDef.com.google.protobuf.ByteString
getRenameToBytes()
Change the name used to access this attr in the API from what is used in the GraphDef.boolean
hasDefaultValue()
Specify a new default value to use for this attr.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ApiDef.Attr.Builder
mergeDefaultValue(AttrValue value)
Specify a new default value to use for this attr.ApiDef.Attr.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ApiDef.Attr.Builder
mergeFrom(com.google.protobuf.Message other)
ApiDef.Attr.Builder
mergeFrom(ApiDef.Attr other)
ApiDef.Attr.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ApiDef.Attr.Builder
setDefaultValue(AttrValue value)
Specify a new default value to use for this attr.ApiDef.Attr.Builder
setDefaultValue(AttrValue.Builder builderForValue)
Specify a new default value to use for this attr.ApiDef.Attr.Builder
setDescription(java.lang.String value)
Note: this will replace any inherited attr doc, there is no current way of modifying attr descriptions as can be done with op descriptions.ApiDef.Attr.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
Note: this will replace any inherited attr doc, there is no current way of modifying attr descriptions as can be done with op descriptions.ApiDef.Attr.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ApiDef.Attr.Builder
setName(java.lang.String value)
string name = 1;
ApiDef.Attr.Builder
setNameBytes(com.google.protobuf.ByteString value)
string name = 1;
ApiDef.Attr.Builder
setRenameTo(java.lang.String value)
Change the name used to access this attr in the API from what is used in the GraphDef.ApiDef.Attr.Builder
setRenameToBytes(com.google.protobuf.ByteString value)
Change the name used to access this attr in the API from what is used in the GraphDef.ApiDef.Attr.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
ApiDef.Attr.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<ApiDef.Attr.Builder>
-
clear
public ApiDef.Attr.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<ApiDef.Attr.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<ApiDef.Attr.Builder>
-
getDefaultInstanceForType
public ApiDef.Attr getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ApiDef.Attr build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ApiDef.Attr buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ApiDef.Attr.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<ApiDef.Attr.Builder>
-
setField
public ApiDef.Attr.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<ApiDef.Attr.Builder>
-
clearField
public ApiDef.Attr.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<ApiDef.Attr.Builder>
-
clearOneof
public ApiDef.Attr.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<ApiDef.Attr.Builder>
-
setRepeatedField
public ApiDef.Attr.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<ApiDef.Attr.Builder>
-
addRepeatedField
public ApiDef.Attr.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<ApiDef.Attr.Builder>
-
mergeFrom
public ApiDef.Attr.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ApiDef.Attr.Builder>
-
mergeFrom
public ApiDef.Attr.Builder mergeFrom(ApiDef.Attr other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiDef.Attr.Builder>
-
mergeFrom
public ApiDef.Attr.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<ApiDef.Attr.Builder>
- Throws:
java.io.IOException
-
getName
public java.lang.String getName()
string name = 1;
- Specified by:
getName
in interfaceApiDef.AttrOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
string name = 1;
- Specified by:
getNameBytes
in interfaceApiDef.AttrOrBuilder
- Returns:
- The bytes for name.
-
setName
public ApiDef.Attr.Builder setName(java.lang.String value)
string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public ApiDef.Attr.Builder clearName()
string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
public ApiDef.Attr.Builder setNameBytes(com.google.protobuf.ByteString value)
string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getRenameTo
public java.lang.String getRenameTo()
Change the name used to access this attr in the API from what is used in the GraphDef. Note that these names in `backticks` will also be replaced in the summary & description fields.
string rename_to = 2;
- Specified by:
getRenameTo
in interfaceApiDef.AttrOrBuilder
- Returns:
- The renameTo.
-
getRenameToBytes
public com.google.protobuf.ByteString getRenameToBytes()
Change the name used to access this attr in the API from what is used in the GraphDef. Note that these names in `backticks` will also be replaced in the summary & description fields.
string rename_to = 2;
- Specified by:
getRenameToBytes
in interfaceApiDef.AttrOrBuilder
- Returns:
- The bytes for renameTo.
-
setRenameTo
public ApiDef.Attr.Builder setRenameTo(java.lang.String value)
Change the name used to access this attr in the API from what is used in the GraphDef. Note that these names in `backticks` will also be replaced in the summary & description fields.
string rename_to = 2;
- Parameters:
value
- The renameTo to set.- Returns:
- This builder for chaining.
-
clearRenameTo
public ApiDef.Attr.Builder clearRenameTo()
Change the name used to access this attr in the API from what is used in the GraphDef. Note that these names in `backticks` will also be replaced in the summary & description fields.
string rename_to = 2;
- Returns:
- This builder for chaining.
-
setRenameToBytes
public ApiDef.Attr.Builder setRenameToBytes(com.google.protobuf.ByteString value)
Change the name used to access this attr in the API from what is used in the GraphDef. Note that these names in `backticks` will also be replaced in the summary & description fields.
string rename_to = 2;
- Parameters:
value
- The bytes for renameTo to set.- Returns:
- This builder for chaining.
-
hasDefaultValue
public boolean hasDefaultValue()
Specify a new default value to use for this attr. This default will be used when creating new graphs, as opposed to the default in the OpDef, which will be used when interpreting old GraphDefs.
.org.platanios.tensorflow.proto.AttrValue default_value = 3;
- Specified by:
hasDefaultValue
in interfaceApiDef.AttrOrBuilder
- Returns:
- Whether the defaultValue field is set.
-
getDefaultValue
public AttrValue getDefaultValue()
Specify a new default value to use for this attr. This default will be used when creating new graphs, as opposed to the default in the OpDef, which will be used when interpreting old GraphDefs.
.org.platanios.tensorflow.proto.AttrValue default_value = 3;
- Specified by:
getDefaultValue
in interfaceApiDef.AttrOrBuilder
- Returns:
- The defaultValue.
-
setDefaultValue
public ApiDef.Attr.Builder setDefaultValue(AttrValue value)
Specify a new default value to use for this attr. This default will be used when creating new graphs, as opposed to the default in the OpDef, which will be used when interpreting old GraphDefs.
.org.platanios.tensorflow.proto.AttrValue default_value = 3;
-
setDefaultValue
public ApiDef.Attr.Builder setDefaultValue(AttrValue.Builder builderForValue)
Specify a new default value to use for this attr. This default will be used when creating new graphs, as opposed to the default in the OpDef, which will be used when interpreting old GraphDefs.
.org.platanios.tensorflow.proto.AttrValue default_value = 3;
-
mergeDefaultValue
public ApiDef.Attr.Builder mergeDefaultValue(AttrValue value)
Specify a new default value to use for this attr. This default will be used when creating new graphs, as opposed to the default in the OpDef, which will be used when interpreting old GraphDefs.
.org.platanios.tensorflow.proto.AttrValue default_value = 3;
-
clearDefaultValue
public ApiDef.Attr.Builder clearDefaultValue()
Specify a new default value to use for this attr. This default will be used when creating new graphs, as opposed to the default in the OpDef, which will be used when interpreting old GraphDefs.
.org.platanios.tensorflow.proto.AttrValue default_value = 3;
-
getDefaultValueBuilder
public AttrValue.Builder getDefaultValueBuilder()
Specify a new default value to use for this attr. This default will be used when creating new graphs, as opposed to the default in the OpDef, which will be used when interpreting old GraphDefs.
.org.platanios.tensorflow.proto.AttrValue default_value = 3;
-
getDefaultValueOrBuilder
public AttrValueOrBuilder getDefaultValueOrBuilder()
Specify a new default value to use for this attr. This default will be used when creating new graphs, as opposed to the default in the OpDef, which will be used when interpreting old GraphDefs.
.org.platanios.tensorflow.proto.AttrValue default_value = 3;
- Specified by:
getDefaultValueOrBuilder
in interfaceApiDef.AttrOrBuilder
-
getDescription
public java.lang.String getDescription()
Note: this will replace any inherited attr doc, there is no current way of modifying attr descriptions as can be done with op descriptions.
string description = 4;
- Specified by:
getDescription
in interfaceApiDef.AttrOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Note: this will replace any inherited attr doc, there is no current way of modifying attr descriptions as can be done with op descriptions.
string description = 4;
- Specified by:
getDescriptionBytes
in interfaceApiDef.AttrOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public ApiDef.Attr.Builder setDescription(java.lang.String value)
Note: this will replace any inherited attr doc, there is no current way of modifying attr descriptions as can be done with op descriptions.
string description = 4;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public ApiDef.Attr.Builder clearDescription()
Note: this will replace any inherited attr doc, there is no current way of modifying attr descriptions as can be done with op descriptions.
string description = 4;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
public ApiDef.Attr.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Note: this will replace any inherited attr doc, there is no current way of modifying attr descriptions as can be done with op descriptions.
string description = 4;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ApiDef.Attr.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiDef.Attr.Builder>
-
mergeUnknownFields
public final ApiDef.Attr.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiDef.Attr.Builder>
-
-