Class FunctionDef.Builder

All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, FunctionDefOrBuilder
Enclosing class:
FunctionDef

public static final class FunctionDef.Builder extends GeneratedMessage.Builder<FunctionDef.Builder> implements FunctionDefOrBuilder
A function can be instantiated when the runtime can bind every attr
with a value. When a GraphDef has a call to a function, it must
have binding for every attr defined in the signature.

TODO(zhifengc):
* device spec, etc.
Protobuf type tensorflow.FunctionDef
  • Method Details

    • getDescriptor

      public static final Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class GeneratedMessage.Builder<FunctionDef.Builder>
    • internalGetMutableMapFieldReflection

      protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class GeneratedMessage.Builder<FunctionDef.Builder>
    • internalGetFieldAccessorTable

      protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class GeneratedMessage.Builder<FunctionDef.Builder>
    • clear

      public FunctionDef.Builder clear()
      Specified by:
      clear in interface Message.Builder
      Specified by:
      clear in interface MessageLite.Builder
      Overrides:
      clear in class GeneratedMessage.Builder<FunctionDef.Builder>
    • getDescriptorForType

      public Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface Message.Builder
      Specified by:
      getDescriptorForType in interface MessageOrBuilder
      Overrides:
      getDescriptorForType in class GeneratedMessage.Builder<FunctionDef.Builder>
    • getDefaultInstanceForType

      public FunctionDef getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface MessageOrBuilder
    • build

      public FunctionDef build()
      Specified by:
      build in interface Message.Builder
      Specified by:
      build in interface MessageLite.Builder
    • buildPartial

      public FunctionDef buildPartial()
      Specified by:
      buildPartial in interface Message.Builder
      Specified by:
      buildPartial in interface MessageLite.Builder
    • mergeFrom

      public FunctionDef.Builder mergeFrom(Message other)
      Specified by:
      mergeFrom in interface Message.Builder
      Overrides:
      mergeFrom in class AbstractMessage.Builder<FunctionDef.Builder>
    • mergeFrom

      public FunctionDef.Builder mergeFrom(FunctionDef other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface MessageLiteOrBuilder
      Overrides:
      isInitialized in class GeneratedMessage.Builder<FunctionDef.Builder>
    • mergeFrom

      public FunctionDef.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface Message.Builder
      Specified by:
      mergeFrom in interface MessageLite.Builder
      Overrides:
      mergeFrom in class AbstractMessage.Builder<FunctionDef.Builder>
      Throws:
      IOException
    • hasSignature

      public boolean hasSignature()
      The definition of the function's name, arguments, return values,
      attrs etc.
      
      .tensorflow.OpDef signature = 1;
      Specified by:
      hasSignature in interface FunctionDefOrBuilder
      Returns:
      Whether the signature field is set.
    • getSignature

      public OpDef getSignature()
      The definition of the function's name, arguments, return values,
      attrs etc.
      
      .tensorflow.OpDef signature = 1;
      Specified by:
      getSignature in interface FunctionDefOrBuilder
      Returns:
      The signature.
    • setSignature

      public FunctionDef.Builder setSignature(OpDef value)
      The definition of the function's name, arguments, return values,
      attrs etc.
      
      .tensorflow.OpDef signature = 1;
    • setSignature

      public FunctionDef.Builder setSignature(OpDef.Builder builderForValue)
      The definition of the function's name, arguments, return values,
      attrs etc.
      
      .tensorflow.OpDef signature = 1;
    • mergeSignature

      public FunctionDef.Builder mergeSignature(OpDef value)
      The definition of the function's name, arguments, return values,
      attrs etc.
      
      .tensorflow.OpDef signature = 1;
    • clearSignature

      public FunctionDef.Builder clearSignature()
      The definition of the function's name, arguments, return values,
      attrs etc.
      
      .tensorflow.OpDef signature = 1;
    • getSignatureBuilder

      public OpDef.Builder getSignatureBuilder()
      The definition of the function's name, arguments, return values,
      attrs etc.
      
      .tensorflow.OpDef signature = 1;
    • getSignatureOrBuilder

      public OpDefOrBuilder getSignatureOrBuilder()
      The definition of the function's name, arguments, return values,
      attrs etc.
      
      .tensorflow.OpDef signature = 1;
      Specified by:
      getSignatureOrBuilder in interface FunctionDefOrBuilder
    • getAttrCount

      public int getAttrCount()
      Description copied from interface: FunctionDefOrBuilder
      Attributes specific to this function definition.
      
      map<string, .tensorflow.AttrValue> attr = 5;
      Specified by:
      getAttrCount in interface FunctionDefOrBuilder
    • containsAttr

      public boolean containsAttr(String key)
      Attributes specific to this function definition.
      
      map<string, .tensorflow.AttrValue> attr = 5;
      Specified by:
      containsAttr in interface FunctionDefOrBuilder
    • getAttr

      @Deprecated public Map<String, AttrValue> getAttr()
      Deprecated.
      Use getAttrMap() instead.
      Specified by:
      getAttr in interface FunctionDefOrBuilder
    • getAttrMap

      public Map<String, AttrValue> getAttrMap()
      Attributes specific to this function definition.
      
      map<string, .tensorflow.AttrValue> attr = 5;
      Specified by:
      getAttrMap in interface FunctionDefOrBuilder
    • getAttrOrDefault

      public AttrValue getAttrOrDefault(String key, AttrValue defaultValue)
      Attributes specific to this function definition.
      
      map<string, .tensorflow.AttrValue> attr = 5;
      Specified by:
      getAttrOrDefault in interface FunctionDefOrBuilder
    • getAttrOrThrow

      public AttrValue getAttrOrThrow(String key)
      Attributes specific to this function definition.
      
      map<string, .tensorflow.AttrValue> attr = 5;
      Specified by:
      getAttrOrThrow in interface FunctionDefOrBuilder
    • clearAttr

      public FunctionDef.Builder clearAttr()
    • removeAttr

      public FunctionDef.Builder removeAttr(String key)
      Attributes specific to this function definition.
      
      map<string, .tensorflow.AttrValue> attr = 5;
    • getMutableAttr

      @Deprecated public Map<String, AttrValue> getMutableAttr()
      Deprecated.
      Use alternate mutation accessors instead.
    • putAttr

      public FunctionDef.Builder putAttr(String key, AttrValue value)
      Attributes specific to this function definition.
      
      map<string, .tensorflow.AttrValue> attr = 5;
    • putAllAttr

      public FunctionDef.Builder putAllAttr(Map<String, AttrValue> values)
      Attributes specific to this function definition.
      
      map<string, .tensorflow.AttrValue> attr = 5;
    • putAttrBuilderIfAbsent

      public AttrValue.Builder putAttrBuilderIfAbsent(String key)
      Attributes specific to this function definition.
      
      map<string, .tensorflow.AttrValue> attr = 5;
    • getArgAttrCount

      public int getArgAttrCount()
      Description copied from interface: FunctionDefOrBuilder
      map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
      Specified by:
      getArgAttrCount in interface FunctionDefOrBuilder
    • containsArgAttr

      public boolean containsArgAttr(int key)
      map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
      Specified by:
      containsArgAttr in interface FunctionDefOrBuilder
    • getArgAttr

      Deprecated.
      Use getArgAttrMap() instead.
      Specified by:
      getArgAttr in interface FunctionDefOrBuilder
    • getArgAttrMap

      public Map<Integer, FunctionDef.ArgAttrs> getArgAttrMap()
      map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
      Specified by:
      getArgAttrMap in interface FunctionDefOrBuilder
    • getArgAttrOrDefault

      public FunctionDef.ArgAttrs getArgAttrOrDefault(int key, FunctionDef.ArgAttrs defaultValue)
      map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
      Specified by:
      getArgAttrOrDefault in interface FunctionDefOrBuilder
    • getArgAttrOrThrow

      public FunctionDef.ArgAttrs getArgAttrOrThrow(int key)
      map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
      Specified by:
      getArgAttrOrThrow in interface FunctionDefOrBuilder
    • clearArgAttr

      public FunctionDef.Builder clearArgAttr()
    • removeArgAttr

      public FunctionDef.Builder removeArgAttr(int key)
      map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
    • getMutableArgAttr

      @Deprecated public Map<Integer, FunctionDef.ArgAttrs> getMutableArgAttr()
      Deprecated.
      Use alternate mutation accessors instead.
    • putArgAttr

      public FunctionDef.Builder putArgAttr(int key, FunctionDef.ArgAttrs value)
      map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
    • putAllArgAttr

      public FunctionDef.Builder putAllArgAttr(Map<Integer, FunctionDef.ArgAttrs> values)
      map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
    • putArgAttrBuilderIfAbsent

      public FunctionDef.ArgAttrs.Builder putArgAttrBuilderIfAbsent(int key)
      map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
    • getResourceArgUniqueIdCount

      public int getResourceArgUniqueIdCount()
      Description copied from interface: FunctionDefOrBuilder
      Unique IDs for each resource argument, used to track aliasing resources. If
      Argument A and Argument B alias each other, then
      resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index].
      
      If this field is empty, none of the arguments could alias; otherwise, every
      resource argument should have an entry in this field.
      
      When instantiated, the unique IDs will be attached to the _Arg nodes'
      "_resource_arg_unique_id" attribute.
      
      map<uint32, uint32> resource_arg_unique_id = 8;
      Specified by:
      getResourceArgUniqueIdCount in interface FunctionDefOrBuilder
    • containsResourceArgUniqueId

      public boolean containsResourceArgUniqueId(int key)
      Unique IDs for each resource argument, used to track aliasing resources. If
      Argument A and Argument B alias each other, then
      resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index].
      
      If this field is empty, none of the arguments could alias; otherwise, every
      resource argument should have an entry in this field.
      
      When instantiated, the unique IDs will be attached to the _Arg nodes'
      "_resource_arg_unique_id" attribute.
      
      map<uint32, uint32> resource_arg_unique_id = 8;
      Specified by:
      containsResourceArgUniqueId in interface FunctionDefOrBuilder
    • getResourceArgUniqueId

      @Deprecated public Map<Integer,Integer> getResourceArgUniqueId()
      Deprecated.
      Specified by:
      getResourceArgUniqueId in interface FunctionDefOrBuilder
    • getResourceArgUniqueIdMap

      public Map<Integer,Integer> getResourceArgUniqueIdMap()
      Unique IDs for each resource argument, used to track aliasing resources. If
      Argument A and Argument B alias each other, then
      resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index].
      
      If this field is empty, none of the arguments could alias; otherwise, every
      resource argument should have an entry in this field.
      
      When instantiated, the unique IDs will be attached to the _Arg nodes'
      "_resource_arg_unique_id" attribute.
      
      map<uint32, uint32> resource_arg_unique_id = 8;
      Specified by:
      getResourceArgUniqueIdMap in interface FunctionDefOrBuilder
    • getResourceArgUniqueIdOrDefault

      public int getResourceArgUniqueIdOrDefault(int key, int defaultValue)
      Unique IDs for each resource argument, used to track aliasing resources. If
      Argument A and Argument B alias each other, then
      resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index].
      
      If this field is empty, none of the arguments could alias; otherwise, every
      resource argument should have an entry in this field.
      
      When instantiated, the unique IDs will be attached to the _Arg nodes'
      "_resource_arg_unique_id" attribute.
      
      map<uint32, uint32> resource_arg_unique_id = 8;
      Specified by:
      getResourceArgUniqueIdOrDefault in interface FunctionDefOrBuilder
    • getResourceArgUniqueIdOrThrow

      public int getResourceArgUniqueIdOrThrow(int key)
      Unique IDs for each resource argument, used to track aliasing resources. If
      Argument A and Argument B alias each other, then
      resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index].
      
      If this field is empty, none of the arguments could alias; otherwise, every
      resource argument should have an entry in this field.
      
      When instantiated, the unique IDs will be attached to the _Arg nodes'
      "_resource_arg_unique_id" attribute.
      
      map<uint32, uint32> resource_arg_unique_id = 8;
      Specified by:
      getResourceArgUniqueIdOrThrow in interface FunctionDefOrBuilder
    • clearResourceArgUniqueId

      public FunctionDef.Builder clearResourceArgUniqueId()
    • removeResourceArgUniqueId

      public FunctionDef.Builder removeResourceArgUniqueId(int key)
      Unique IDs for each resource argument, used to track aliasing resources. If
      Argument A and Argument B alias each other, then
      resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index].
      
      If this field is empty, none of the arguments could alias; otherwise, every
      resource argument should have an entry in this field.
      
      When instantiated, the unique IDs will be attached to the _Arg nodes'
      "_resource_arg_unique_id" attribute.
      
      map<uint32, uint32> resource_arg_unique_id = 8;
    • getMutableResourceArgUniqueId

      @Deprecated public Map<Integer,Integer> getMutableResourceArgUniqueId()
      Deprecated.
      Use alternate mutation accessors instead.
    • putResourceArgUniqueId

      public FunctionDef.Builder putResourceArgUniqueId(int key, int value)
      Unique IDs for each resource argument, used to track aliasing resources. If
      Argument A and Argument B alias each other, then
      resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index].
      
      If this field is empty, none of the arguments could alias; otherwise, every
      resource argument should have an entry in this field.
      
      When instantiated, the unique IDs will be attached to the _Arg nodes'
      "_resource_arg_unique_id" attribute.
      
      map<uint32, uint32> resource_arg_unique_id = 8;
    • putAllResourceArgUniqueId

      public FunctionDef.Builder putAllResourceArgUniqueId(Map<Integer,Integer> values)
      Unique IDs for each resource argument, used to track aliasing resources. If
      Argument A and Argument B alias each other, then
      resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index].
      
      If this field is empty, none of the arguments could alias; otherwise, every
      resource argument should have an entry in this field.
      
      When instantiated, the unique IDs will be attached to the _Arg nodes'
      "_resource_arg_unique_id" attribute.
      
      map<uint32, uint32> resource_arg_unique_id = 8;
    • getNodeDefList

      public List<NodeDef> getNodeDefList()
      By convention, "op" in node_def is resolved by consulting with a
      user-defined library first. If not resolved, "func" is assumed to
      be a builtin op.
      
      repeated .tensorflow.NodeDef node_def = 3;
      Specified by:
      getNodeDefList in interface FunctionDefOrBuilder
    • getNodeDefCount

      public int getNodeDefCount()
      By convention, "op" in node_def is resolved by consulting with a
      user-defined library first. If not resolved, "func" is assumed to
      be a builtin op.
      
      repeated .tensorflow.NodeDef node_def = 3;
      Specified by:
      getNodeDefCount in interface FunctionDefOrBuilder
    • getNodeDef

      public NodeDef getNodeDef(int index)
      By convention, "op" in node_def is resolved by consulting with a
      user-defined library first. If not resolved, "func" is assumed to
      be a builtin op.
      
      repeated .tensorflow.NodeDef node_def = 3;
      Specified by:
      getNodeDef in interface FunctionDefOrBuilder
    • setNodeDef

      public FunctionDef.Builder setNodeDef(int index, NodeDef value)
      By convention, "op" in node_def is resolved by consulting with a
      user-defined library first. If not resolved, "func" is assumed to
      be a builtin op.
      
      repeated .tensorflow.NodeDef node_def = 3;
    • setNodeDef

      public FunctionDef.Builder setNodeDef(int index, NodeDef.Builder builderForValue)
      By convention, "op" in node_def is resolved by consulting with a
      user-defined library first. If not resolved, "func" is assumed to
      be a builtin op.
      
      repeated .tensorflow.NodeDef node_def = 3;
    • addNodeDef

      public FunctionDef.Builder addNodeDef(NodeDef value)
      By convention, "op" in node_def is resolved by consulting with a
      user-defined library first. If not resolved, "func" is assumed to
      be a builtin op.
      
      repeated .tensorflow.NodeDef node_def = 3;
    • addNodeDef

      public FunctionDef.Builder addNodeDef(int index, NodeDef value)
      By convention, "op" in node_def is resolved by consulting with a
      user-defined library first. If not resolved, "func" is assumed to
      be a builtin op.
      
      repeated .tensorflow.NodeDef node_def = 3;
    • addNodeDef

      public FunctionDef.Builder addNodeDef(NodeDef.Builder builderForValue)
      By convention, "op" in node_def is resolved by consulting with a
      user-defined library first. If not resolved, "func" is assumed to
      be a builtin op.
      
      repeated .tensorflow.NodeDef node_def = 3;
    • addNodeDef

      public FunctionDef.Builder addNodeDef(int index, NodeDef.Builder builderForValue)
      By convention, "op" in node_def is resolved by consulting with a
      user-defined library first. If not resolved, "func" is assumed to
      be a builtin op.
      
      repeated .tensorflow.NodeDef node_def = 3;
    • addAllNodeDef

      public FunctionDef.Builder addAllNodeDef(Iterable<? extends NodeDef> values)
      By convention, "op" in node_def is resolved by consulting with a
      user-defined library first. If not resolved, "func" is assumed to
      be a builtin op.
      
      repeated .tensorflow.NodeDef node_def = 3;
    • clearNodeDef

      public FunctionDef.Builder clearNodeDef()
      By convention, "op" in node_def is resolved by consulting with a
      user-defined library first. If not resolved, "func" is assumed to
      be a builtin op.
      
      repeated .tensorflow.NodeDef node_def = 3;
    • removeNodeDef

      public FunctionDef.Builder removeNodeDef(int index)
      By convention, "op" in node_def is resolved by consulting with a
      user-defined library first. If not resolved, "func" is assumed to
      be a builtin op.
      
      repeated .tensorflow.NodeDef node_def = 3;
    • getNodeDefBuilder

      public NodeDef.Builder getNodeDefBuilder(int index)
      By convention, "op" in node_def is resolved by consulting with a
      user-defined library first. If not resolved, "func" is assumed to
      be a builtin op.
      
      repeated .tensorflow.NodeDef node_def = 3;
    • getNodeDefOrBuilder

      public NodeDefOrBuilder getNodeDefOrBuilder(int index)
      By convention, "op" in node_def is resolved by consulting with a
      user-defined library first. If not resolved, "func" is assumed to
      be a builtin op.
      
      repeated .tensorflow.NodeDef node_def = 3;
      Specified by:
      getNodeDefOrBuilder in interface FunctionDefOrBuilder
    • getNodeDefOrBuilderList

      public List<? extends NodeDefOrBuilder> getNodeDefOrBuilderList()
      By convention, "op" in node_def is resolved by consulting with a
      user-defined library first. If not resolved, "func" is assumed to
      be a builtin op.
      
      repeated .tensorflow.NodeDef node_def = 3;
      Specified by:
      getNodeDefOrBuilderList in interface FunctionDefOrBuilder
    • addNodeDefBuilder

      public NodeDef.Builder addNodeDefBuilder()
      By convention, "op" in node_def is resolved by consulting with a
      user-defined library first. If not resolved, "func" is assumed to
      be a builtin op.
      
      repeated .tensorflow.NodeDef node_def = 3;
    • addNodeDefBuilder

      public NodeDef.Builder addNodeDefBuilder(int index)
      By convention, "op" in node_def is resolved by consulting with a
      user-defined library first. If not resolved, "func" is assumed to
      be a builtin op.
      
      repeated .tensorflow.NodeDef node_def = 3;
    • getNodeDefBuilderList

      public List<NodeDef.Builder> getNodeDefBuilderList()
      By convention, "op" in node_def is resolved by consulting with a
      user-defined library first. If not resolved, "func" is assumed to
      be a builtin op.
      
      repeated .tensorflow.NodeDef node_def = 3;
    • getRetCount

      public int getRetCount()
      Description copied from interface: FunctionDefOrBuilder
      A mapping from the output arg names from `signature` to the
      outputs from `node_def` that should be returned by the function.
      
      map<string, string> ret = 4;
      Specified by:
      getRetCount in interface FunctionDefOrBuilder
    • containsRet

      public boolean containsRet(String key)
      A mapping from the output arg names from `signature` to the
      outputs from `node_def` that should be returned by the function.
      
      map<string, string> ret = 4;
      Specified by:
      containsRet in interface FunctionDefOrBuilder
    • getRet

      @Deprecated public Map<String,String> getRet()
      Deprecated.
      Use getRetMap() instead.
      Specified by:
      getRet in interface FunctionDefOrBuilder
    • getRetMap

      public Map<String,String> getRetMap()
      A mapping from the output arg names from `signature` to the
      outputs from `node_def` that should be returned by the function.
      
      map<string, string> ret = 4;
      Specified by:
      getRetMap in interface FunctionDefOrBuilder
    • getRetOrDefault

      public String getRetOrDefault(String key, String defaultValue)
      A mapping from the output arg names from `signature` to the
      outputs from `node_def` that should be returned by the function.
      
      map<string, string> ret = 4;
      Specified by:
      getRetOrDefault in interface FunctionDefOrBuilder
    • getRetOrThrow

      public String getRetOrThrow(String key)
      A mapping from the output arg names from `signature` to the
      outputs from `node_def` that should be returned by the function.
      
      map<string, string> ret = 4;
      Specified by:
      getRetOrThrow in interface FunctionDefOrBuilder
    • clearRet

      public FunctionDef.Builder clearRet()
    • removeRet

      public FunctionDef.Builder removeRet(String key)
      A mapping from the output arg names from `signature` to the
      outputs from `node_def` that should be returned by the function.
      
      map<string, string> ret = 4;
    • getMutableRet

      @Deprecated public Map<String,String> getMutableRet()
      Deprecated.
      Use alternate mutation accessors instead.
    • putRet

      public FunctionDef.Builder putRet(String key, String value)
      A mapping from the output arg names from `signature` to the
      outputs from `node_def` that should be returned by the function.
      
      map<string, string> ret = 4;
    • putAllRet

      public FunctionDef.Builder putAllRet(Map<String,String> values)
      A mapping from the output arg names from `signature` to the
      outputs from `node_def` that should be returned by the function.
      
      map<string, string> ret = 4;
    • getControlRetCount

      public int getControlRetCount()
      Description copied from interface: FunctionDefOrBuilder
      A mapping from control output names from `signature` to node names in
      `node_def` which should be control outputs of this function.
      
      map<string, string> control_ret = 6;
      Specified by:
      getControlRetCount in interface FunctionDefOrBuilder
    • containsControlRet

      public boolean containsControlRet(String key)
      A mapping from control output names from `signature` to node names in
      `node_def` which should be control outputs of this function.
      
      map<string, string> control_ret = 6;
      Specified by:
      containsControlRet in interface FunctionDefOrBuilder
    • getControlRet

      @Deprecated public Map<String,String> getControlRet()
      Deprecated.
      Use getControlRetMap() instead.
      Specified by:
      getControlRet in interface FunctionDefOrBuilder
    • getControlRetMap

      public Map<String,String> getControlRetMap()
      A mapping from control output names from `signature` to node names in
      `node_def` which should be control outputs of this function.
      
      map<string, string> control_ret = 6;
      Specified by:
      getControlRetMap in interface FunctionDefOrBuilder
    • getControlRetOrDefault

      public String getControlRetOrDefault(String key, String defaultValue)
      A mapping from control output names from `signature` to node names in
      `node_def` which should be control outputs of this function.
      
      map<string, string> control_ret = 6;
      Specified by:
      getControlRetOrDefault in interface FunctionDefOrBuilder
    • getControlRetOrThrow

      public String getControlRetOrThrow(String key)
      A mapping from control output names from `signature` to node names in
      `node_def` which should be control outputs of this function.
      
      map<string, string> control_ret = 6;
      Specified by:
      getControlRetOrThrow in interface FunctionDefOrBuilder
    • clearControlRet

      public FunctionDef.Builder clearControlRet()
    • removeControlRet

      public FunctionDef.Builder removeControlRet(String key)
      A mapping from control output names from `signature` to node names in
      `node_def` which should be control outputs of this function.
      
      map<string, string> control_ret = 6;
    • getMutableControlRet

      @Deprecated public Map<String,String> getMutableControlRet()
      Deprecated.
      Use alternate mutation accessors instead.
    • putControlRet

      public FunctionDef.Builder putControlRet(String key, String value)
      A mapping from control output names from `signature` to node names in
      `node_def` which should be control outputs of this function.
      
      map<string, string> control_ret = 6;
    • putAllControlRet

      public FunctionDef.Builder putAllControlRet(Map<String,String> values)
      A mapping from control output names from `signature` to node names in
      `node_def` which should be control outputs of this function.
      
      map<string, string> control_ret = 6;