Class FunctionDef.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, FunctionDefOrBuilder
    Enclosing class:
    FunctionDef

    public static final class FunctionDef.Builder
    extends com.google.protobuf.GeneratedMessageV3.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 org.platanios.tensorflow.proto.FunctionDef
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
      • clear

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

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

        public FunctionDef getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

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

        public FunctionDef buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public FunctionDef.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
      • setField

        public FunctionDef.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
      • clearField

        public FunctionDef.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
      • clearOneof

        public FunctionDef.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
      • setRepeatedField

        public FunctionDef.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    int index,
                                                    java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
      • addRepeatedField

        public FunctionDef.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
      • mergeFrom

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

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

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

        public boolean hasSignature()
         The definition of the function's name, arguments, return values,
         attrs etc.
         
        .org.platanios.tensorflow.proto.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.
         
        .org.platanios.tensorflow.proto.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.
         
        .org.platanios.tensorflow.proto.OpDef signature = 1;
      • setSignature

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

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

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

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

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

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

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

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

        public AttrValue getAttrOrThrow​(java.lang.String key)
         Attributes specific to this function definition.
         
        map<string, .org.platanios.tensorflow.proto.AttrValue> attr = 5;
        Specified by:
        getAttrOrThrow in interface FunctionDefOrBuilder
      • removeAttr

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

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

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

        public FunctionDef.Builder putAllAttr​(java.util.Map<java.lang.String,​AttrValue> values)
         Attributes specific to this function definition.
         
        map<string, .org.platanios.tensorflow.proto.AttrValue> attr = 5;
      • containsArgAttr

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

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

        @Deprecated
        public java.util.Map<java.lang.Integer,​FunctionDef.ArgAttrs> getMutableArgAttr()
        Deprecated.
        Use alternate mutation accessors instead.
      • putAllArgAttr

        public FunctionDef.Builder putAllArgAttr​(java.util.Map<java.lang.Integer,​FunctionDef.ArgAttrs> values)
        map<uint32, .org.platanios.tensorflow.proto.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
      • getResourceArgUniqueIdMap

        public java.util.Map<java.lang.Integer,​java.lang.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
      • 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 java.util.Map<java.lang.Integer,​java.lang.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​(java.util.Map<java.lang.Integer,​java.lang.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 java.util.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.NodeDef node_def = 3;
      • addAllNodeDef

        public FunctionDef.Builder addAllNodeDef​(java.lang.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.NodeDef node_def = 3;
        Specified by:
        getNodeDefOrBuilder in interface FunctionDefOrBuilder
      • getNodeDefOrBuilderList

        public java.util.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.NodeDef node_def = 3;
      • getNodeDefBuilderList

        public java.util.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 .org.platanios.tensorflow.proto.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​(java.lang.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
      • getRetMap

        public java.util.Map<java.lang.String,​java.lang.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 java.lang.String getRetOrDefault​(java.lang.String key,
                                                java.lang.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 java.lang.String getRetOrThrow​(java.lang.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
      • removeRet

        public FunctionDef.Builder removeRet​(java.lang.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 java.util.Map<java.lang.String,​java.lang.String> getMutableRet()
        Deprecated.
        Use alternate mutation accessors instead.
      • putRet

        public FunctionDef.Builder putRet​(java.lang.String key,
                                          java.lang.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​(java.util.Map<java.lang.String,​java.lang.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​(java.lang.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
      • getControlRetMap

        public java.util.Map<java.lang.String,​java.lang.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 java.lang.String getControlRetOrDefault​(java.lang.String key,
                                                       java.lang.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 java.lang.String getControlRetOrThrow​(java.lang.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
      • removeControlRet

        public FunctionDef.Builder removeControlRet​(java.lang.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 java.util.Map<java.lang.String,​java.lang.String> getMutableControlRet()
        Deprecated.
        Use alternate mutation accessors instead.
      • putControlRet

        public FunctionDef.Builder putControlRet​(java.lang.String key,
                                                 java.lang.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​(java.util.Map<java.lang.String,​java.lang.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;
      • setUnknownFields

        public final FunctionDef.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
      • mergeUnknownFields

        public final FunctionDef.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>