Package org.platanios.tensorflow.proto
Class RewriterConfig.CustomGraphOptimizer.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RewriterConfig.CustomGraphOptimizer.Builder>
-
- org.platanios.tensorflow.proto.RewriterConfig.CustomGraphOptimizer.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
,RewriterConfig.CustomGraphOptimizerOrBuilder
- Enclosing class:
- RewriterConfig.CustomGraphOptimizer
public static final class RewriterConfig.CustomGraphOptimizer.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RewriterConfig.CustomGraphOptimizer.Builder> implements RewriterConfig.CustomGraphOptimizerOrBuilder
Message to describe custom graph optimizer and its parameters
Protobuf typeorg.platanios.tensorflow.proto.RewriterConfig.CustomGraphOptimizer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RewriterConfig.CustomGraphOptimizer.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
RewriterConfig.CustomGraphOptimizer
build()
RewriterConfig.CustomGraphOptimizer
buildPartial()
RewriterConfig.CustomGraphOptimizer.Builder
clear()
RewriterConfig.CustomGraphOptimizer.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
RewriterConfig.CustomGraphOptimizer.Builder
clearName()
string name = 1;
RewriterConfig.CustomGraphOptimizer.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
RewriterConfig.CustomGraphOptimizer.Builder
clearParameterMap()
RewriterConfig.CustomGraphOptimizer.Builder
clone()
boolean
containsParameterMap(java.lang.String key)
map<string, .org.platanios.tensorflow.proto.AttrValue> parameter_map = 2;
RewriterConfig.CustomGraphOptimizer
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.util.Map<java.lang.String,AttrValue>
getMutableParameterMap()
Deprecated.java.lang.String
getName()
string name = 1;
com.google.protobuf.ByteString
getNameBytes()
string name = 1;
java.util.Map<java.lang.String,AttrValue>
getParameterMap()
Deprecated.int
getParameterMapCount()
map<string, .org.platanios.tensorflow.proto.AttrValue> parameter_map = 2;
java.util.Map<java.lang.String,AttrValue>
getParameterMapMap()
map<string, .org.platanios.tensorflow.proto.AttrValue> parameter_map = 2;
AttrValue
getParameterMapOrDefault(java.lang.String key, AttrValue defaultValue)
map<string, .org.platanios.tensorflow.proto.AttrValue> parameter_map = 2;
AttrValue
getParameterMapOrThrow(java.lang.String key)
map<string, .org.platanios.tensorflow.proto.AttrValue> parameter_map = 2;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
RewriterConfig.CustomGraphOptimizer.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
RewriterConfig.CustomGraphOptimizer.Builder
mergeFrom(com.google.protobuf.Message other)
RewriterConfig.CustomGraphOptimizer.Builder
mergeFrom(RewriterConfig.CustomGraphOptimizer other)
RewriterConfig.CustomGraphOptimizer.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
RewriterConfig.CustomGraphOptimizer.Builder
putAllParameterMap(java.util.Map<java.lang.String,AttrValue> values)
map<string, .org.platanios.tensorflow.proto.AttrValue> parameter_map = 2;
RewriterConfig.CustomGraphOptimizer.Builder
putParameterMap(java.lang.String key, AttrValue value)
map<string, .org.platanios.tensorflow.proto.AttrValue> parameter_map = 2;
RewriterConfig.CustomGraphOptimizer.Builder
removeParameterMap(java.lang.String key)
map<string, .org.platanios.tensorflow.proto.AttrValue> parameter_map = 2;
RewriterConfig.CustomGraphOptimizer.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
RewriterConfig.CustomGraphOptimizer.Builder
setName(java.lang.String value)
string name = 1;
RewriterConfig.CustomGraphOptimizer.Builder
setNameBytes(com.google.protobuf.ByteString value)
string name = 1;
RewriterConfig.CustomGraphOptimizer.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
RewriterConfig.CustomGraphOptimizer.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, 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()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RewriterConfig.CustomGraphOptimizer.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RewriterConfig.CustomGraphOptimizer.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<RewriterConfig.CustomGraphOptimizer.Builder>
-
clear
public RewriterConfig.CustomGraphOptimizer.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<RewriterConfig.CustomGraphOptimizer.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<RewriterConfig.CustomGraphOptimizer.Builder>
-
getDefaultInstanceForType
public RewriterConfig.CustomGraphOptimizer getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RewriterConfig.CustomGraphOptimizer build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RewriterConfig.CustomGraphOptimizer buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RewriterConfig.CustomGraphOptimizer.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<RewriterConfig.CustomGraphOptimizer.Builder>
-
setField
public RewriterConfig.CustomGraphOptimizer.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<RewriterConfig.CustomGraphOptimizer.Builder>
-
clearField
public RewriterConfig.CustomGraphOptimizer.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<RewriterConfig.CustomGraphOptimizer.Builder>
-
clearOneof
public RewriterConfig.CustomGraphOptimizer.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<RewriterConfig.CustomGraphOptimizer.Builder>
-
setRepeatedField
public RewriterConfig.CustomGraphOptimizer.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<RewriterConfig.CustomGraphOptimizer.Builder>
-
addRepeatedField
public RewriterConfig.CustomGraphOptimizer.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<RewriterConfig.CustomGraphOptimizer.Builder>
-
mergeFrom
public RewriterConfig.CustomGraphOptimizer.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RewriterConfig.CustomGraphOptimizer.Builder>
-
mergeFrom
public RewriterConfig.CustomGraphOptimizer.Builder mergeFrom(RewriterConfig.CustomGraphOptimizer other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<RewriterConfig.CustomGraphOptimizer.Builder>
-
mergeFrom
public RewriterConfig.CustomGraphOptimizer.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<RewriterConfig.CustomGraphOptimizer.Builder>
- Throws:
java.io.IOException
-
getName
public java.lang.String getName()
string name = 1;
- Specified by:
getName
in interfaceRewriterConfig.CustomGraphOptimizerOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
string name = 1;
- Specified by:
getNameBytes
in interfaceRewriterConfig.CustomGraphOptimizerOrBuilder
- Returns:
- The bytes for name.
-
setName
public RewriterConfig.CustomGraphOptimizer.Builder setName(java.lang.String value)
string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public RewriterConfig.CustomGraphOptimizer.Builder clearName()
string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
public RewriterConfig.CustomGraphOptimizer.Builder setNameBytes(com.google.protobuf.ByteString value)
string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getParameterMapCount
public int getParameterMapCount()
Description copied from interface:RewriterConfig.CustomGraphOptimizerOrBuilder
map<string, .org.platanios.tensorflow.proto.AttrValue> parameter_map = 2;
- Specified by:
getParameterMapCount
in interfaceRewriterConfig.CustomGraphOptimizerOrBuilder
-
containsParameterMap
public boolean containsParameterMap(java.lang.String key)
map<string, .org.platanios.tensorflow.proto.AttrValue> parameter_map = 2;
- Specified by:
containsParameterMap
in interfaceRewriterConfig.CustomGraphOptimizerOrBuilder
-
getParameterMap
@Deprecated public java.util.Map<java.lang.String,AttrValue> getParameterMap()
Deprecated.UsegetParameterMapMap()
instead.- Specified by:
getParameterMap
in interfaceRewriterConfig.CustomGraphOptimizerOrBuilder
-
getParameterMapMap
public java.util.Map<java.lang.String,AttrValue> getParameterMapMap()
map<string, .org.platanios.tensorflow.proto.AttrValue> parameter_map = 2;
- Specified by:
getParameterMapMap
in interfaceRewriterConfig.CustomGraphOptimizerOrBuilder
-
getParameterMapOrDefault
public AttrValue getParameterMapOrDefault(java.lang.String key, AttrValue defaultValue)
map<string, .org.platanios.tensorflow.proto.AttrValue> parameter_map = 2;
- Specified by:
getParameterMapOrDefault
in interfaceRewriterConfig.CustomGraphOptimizerOrBuilder
-
getParameterMapOrThrow
public AttrValue getParameterMapOrThrow(java.lang.String key)
map<string, .org.platanios.tensorflow.proto.AttrValue> parameter_map = 2;
- Specified by:
getParameterMapOrThrow
in interfaceRewriterConfig.CustomGraphOptimizerOrBuilder
-
clearParameterMap
public RewriterConfig.CustomGraphOptimizer.Builder clearParameterMap()
-
removeParameterMap
public RewriterConfig.CustomGraphOptimizer.Builder removeParameterMap(java.lang.String key)
map<string, .org.platanios.tensorflow.proto.AttrValue> parameter_map = 2;
-
getMutableParameterMap
@Deprecated public java.util.Map<java.lang.String,AttrValue> getMutableParameterMap()
Deprecated.Use alternate mutation accessors instead.
-
putParameterMap
public RewriterConfig.CustomGraphOptimizer.Builder putParameterMap(java.lang.String key, AttrValue value)
map<string, .org.platanios.tensorflow.proto.AttrValue> parameter_map = 2;
-
putAllParameterMap
public RewriterConfig.CustomGraphOptimizer.Builder putAllParameterMap(java.util.Map<java.lang.String,AttrValue> values)
map<string, .org.platanios.tensorflow.proto.AttrValue> parameter_map = 2;
-
setUnknownFields
public final RewriterConfig.CustomGraphOptimizer.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RewriterConfig.CustomGraphOptimizer.Builder>
-
mergeUnknownFields
public final RewriterConfig.CustomGraphOptimizer.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RewriterConfig.CustomGraphOptimizer.Builder>
-
-