Class ApiDef.Builder

All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, ApiDefOrBuilder
Enclosing class:
ApiDef

public static final class ApiDef.Builder extends GeneratedMessage.Builder<ApiDef.Builder> implements ApiDefOrBuilder
Used to specify and override the default API & behavior in the
generated code for client languages, from what you would get from
the OpDef alone. There will be a set of ApiDefs that are common
to all client languages, and another set per client language.
The per-client-language ApiDefs will inherit values from the
common ApiDefs which it can either replace or modify.

We separate the API definition from the OpDef so we can evolve the
API while remaining backwards compatible when interpreting old
graphs.  Overrides go in an "api_def.pbtxt" file with a text-format
ApiDefs message.

WARNING: Be *very* careful changing the API for any existing op --
you can change the semantics of existing code.  These changes may
need to wait until a major release of TensorFlow to avoid breaking
our compatibility promises.
Protobuf type tensorflow.ApiDef
  • Method Details

    • getDescriptor

      public static final Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

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

      public ApiDef.Builder clear()
      Specified by:
      clear in interface Message.Builder
      Specified by:
      clear in interface MessageLite.Builder
      Overrides:
      clear in class GeneratedMessage.Builder<ApiDef.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<ApiDef.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ApiDef.Builder mergeFrom(ApiDef other)
    • isInitialized

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

      public ApiDef.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<ApiDef.Builder>
      Throws:
      IOException
    • getGraphOpName

      public String getGraphOpName()
      Name of the op (in the OpDef) to specify the API for.
      
      string graph_op_name = 1;
      Specified by:
      getGraphOpName in interface ApiDefOrBuilder
      Returns:
      The graphOpName.
    • getGraphOpNameBytes

      public ByteString getGraphOpNameBytes()
      Name of the op (in the OpDef) to specify the API for.
      
      string graph_op_name = 1;
      Specified by:
      getGraphOpNameBytes in interface ApiDefOrBuilder
      Returns:
      The bytes for graphOpName.
    • setGraphOpName

      public ApiDef.Builder setGraphOpName(String value)
      Name of the op (in the OpDef) to specify the API for.
      
      string graph_op_name = 1;
      Parameters:
      value - The graphOpName to set.
      Returns:
      This builder for chaining.
    • clearGraphOpName

      public ApiDef.Builder clearGraphOpName()
      Name of the op (in the OpDef) to specify the API for.
      
      string graph_op_name = 1;
      Returns:
      This builder for chaining.
    • setGraphOpNameBytes

      public ApiDef.Builder setGraphOpNameBytes(ByteString value)
      Name of the op (in the OpDef) to specify the API for.
      
      string graph_op_name = 1;
      Parameters:
      value - The bytes for graphOpName to set.
      Returns:
      This builder for chaining.
    • getDeprecationMessage

      public String getDeprecationMessage()
      If this op is deprecated, set deprecation message to the message
      that should be logged when this op is used.
      The message should indicate alternative op to use, if any.
      
      string deprecation_message = 12;
      Specified by:
      getDeprecationMessage in interface ApiDefOrBuilder
      Returns:
      The deprecationMessage.
    • getDeprecationMessageBytes

      public ByteString getDeprecationMessageBytes()
      If this op is deprecated, set deprecation message to the message
      that should be logged when this op is used.
      The message should indicate alternative op to use, if any.
      
      string deprecation_message = 12;
      Specified by:
      getDeprecationMessageBytes in interface ApiDefOrBuilder
      Returns:
      The bytes for deprecationMessage.
    • setDeprecationMessage

      public ApiDef.Builder setDeprecationMessage(String value)
      If this op is deprecated, set deprecation message to the message
      that should be logged when this op is used.
      The message should indicate alternative op to use, if any.
      
      string deprecation_message = 12;
      Parameters:
      value - The deprecationMessage to set.
      Returns:
      This builder for chaining.
    • clearDeprecationMessage

      public ApiDef.Builder clearDeprecationMessage()
      If this op is deprecated, set deprecation message to the message
      that should be logged when this op is used.
      The message should indicate alternative op to use, if any.
      
      string deprecation_message = 12;
      Returns:
      This builder for chaining.
    • setDeprecationMessageBytes

      public ApiDef.Builder setDeprecationMessageBytes(ByteString value)
      If this op is deprecated, set deprecation message to the message
      that should be logged when this op is used.
      The message should indicate alternative op to use, if any.
      
      string deprecation_message = 12;
      Parameters:
      value - The bytes for deprecationMessage to set.
      Returns:
      This builder for chaining.
    • getDeprecationVersion

      public int getDeprecationVersion()
      Major version when the op will be deleted. For e.g. set this
      value to 2 if op API should be removed in TensorFlow 2.0 and
      deprecated in versions before that.
      
      int32 deprecation_version = 13;
      Specified by:
      getDeprecationVersion in interface ApiDefOrBuilder
      Returns:
      The deprecationVersion.
    • setDeprecationVersion

      public ApiDef.Builder setDeprecationVersion(int value)
      Major version when the op will be deleted. For e.g. set this
      value to 2 if op API should be removed in TensorFlow 2.0 and
      deprecated in versions before that.
      
      int32 deprecation_version = 13;
      Parameters:
      value - The deprecationVersion to set.
      Returns:
      This builder for chaining.
    • clearDeprecationVersion

      public ApiDef.Builder clearDeprecationVersion()
      Major version when the op will be deleted. For e.g. set this
      value to 2 if op API should be removed in TensorFlow 2.0 and
      deprecated in versions before that.
      
      int32 deprecation_version = 13;
      Returns:
      This builder for chaining.
    • getVisibilityValue

      public int getVisibilityValue()
      .tensorflow.ApiDef.Visibility visibility = 2;
      Specified by:
      getVisibilityValue in interface ApiDefOrBuilder
      Returns:
      The enum numeric value on the wire for visibility.
    • setVisibilityValue

      public ApiDef.Builder setVisibilityValue(int value)
      .tensorflow.ApiDef.Visibility visibility = 2;
      Parameters:
      value - The enum numeric value on the wire for visibility to set.
      Returns:
      This builder for chaining.
    • getVisibility

      public ApiDef.Visibility getVisibility()
      .tensorflow.ApiDef.Visibility visibility = 2;
      Specified by:
      getVisibility in interface ApiDefOrBuilder
      Returns:
      The visibility.
    • setVisibility

      public ApiDef.Builder setVisibility(ApiDef.Visibility value)
      .tensorflow.ApiDef.Visibility visibility = 2;
      Parameters:
      value - The visibility to set.
      Returns:
      This builder for chaining.
    • clearVisibility

      public ApiDef.Builder clearVisibility()
      .tensorflow.ApiDef.Visibility visibility = 2;
      Returns:
      This builder for chaining.
    • getEndpointList

      public List<ApiDef.Endpoint> getEndpointList()
      repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
      Specified by:
      getEndpointList in interface ApiDefOrBuilder
    • getEndpointCount

      public int getEndpointCount()
      repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
      Specified by:
      getEndpointCount in interface ApiDefOrBuilder
    • getEndpoint

      public ApiDef.Endpoint getEndpoint(int index)
      repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
      Specified by:
      getEndpoint in interface ApiDefOrBuilder
    • setEndpoint

      public ApiDef.Builder setEndpoint(int index, ApiDef.Endpoint value)
      repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
    • setEndpoint

      public ApiDef.Builder setEndpoint(int index, ApiDef.Endpoint.Builder builderForValue)
      repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
    • addEndpoint

      public ApiDef.Builder addEndpoint(ApiDef.Endpoint value)
      repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
    • addEndpoint

      public ApiDef.Builder addEndpoint(int index, ApiDef.Endpoint value)
      repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
    • addEndpoint

      public ApiDef.Builder addEndpoint(ApiDef.Endpoint.Builder builderForValue)
      repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
    • addEndpoint

      public ApiDef.Builder addEndpoint(int index, ApiDef.Endpoint.Builder builderForValue)
      repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
    • addAllEndpoint

      public ApiDef.Builder addAllEndpoint(Iterable<? extends ApiDef.Endpoint> values)
      repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
    • clearEndpoint

      public ApiDef.Builder clearEndpoint()
      repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
    • removeEndpoint

      public ApiDef.Builder removeEndpoint(int index)
      repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
    • getEndpointBuilder

      public ApiDef.Endpoint.Builder getEndpointBuilder(int index)
      repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
    • getEndpointOrBuilder

      public ApiDef.EndpointOrBuilder getEndpointOrBuilder(int index)
      repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
      Specified by:
      getEndpointOrBuilder in interface ApiDefOrBuilder
    • getEndpointOrBuilderList

      public List<? extends ApiDef.EndpointOrBuilder> getEndpointOrBuilderList()
      repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
      Specified by:
      getEndpointOrBuilderList in interface ApiDefOrBuilder
    • addEndpointBuilder

      public ApiDef.Endpoint.Builder addEndpointBuilder()
      repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
    • addEndpointBuilder

      public ApiDef.Endpoint.Builder addEndpointBuilder(int index)
      repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
    • getEndpointBuilderList

      public List<ApiDef.Endpoint.Builder> getEndpointBuilderList()
      repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
    • getInArgList

      public List<ApiDef.Arg> getInArgList()
      repeated .tensorflow.ApiDef.Arg in_arg = 4;
      Specified by:
      getInArgList in interface ApiDefOrBuilder
    • getInArgCount

      public int getInArgCount()
      repeated .tensorflow.ApiDef.Arg in_arg = 4;
      Specified by:
      getInArgCount in interface ApiDefOrBuilder
    • getInArg

      public ApiDef.Arg getInArg(int index)
      repeated .tensorflow.ApiDef.Arg in_arg = 4;
      Specified by:
      getInArg in interface ApiDefOrBuilder
    • setInArg

      public ApiDef.Builder setInArg(int index, ApiDef.Arg value)
      repeated .tensorflow.ApiDef.Arg in_arg = 4;
    • setInArg

      public ApiDef.Builder setInArg(int index, ApiDef.Arg.Builder builderForValue)
      repeated .tensorflow.ApiDef.Arg in_arg = 4;
    • addInArg

      public ApiDef.Builder addInArg(ApiDef.Arg value)
      repeated .tensorflow.ApiDef.Arg in_arg = 4;
    • addInArg

      public ApiDef.Builder addInArg(int index, ApiDef.Arg value)
      repeated .tensorflow.ApiDef.Arg in_arg = 4;
    • addInArg

      public ApiDef.Builder addInArg(ApiDef.Arg.Builder builderForValue)
      repeated .tensorflow.ApiDef.Arg in_arg = 4;
    • addInArg

      public ApiDef.Builder addInArg(int index, ApiDef.Arg.Builder builderForValue)
      repeated .tensorflow.ApiDef.Arg in_arg = 4;
    • addAllInArg

      public ApiDef.Builder addAllInArg(Iterable<? extends ApiDef.Arg> values)
      repeated .tensorflow.ApiDef.Arg in_arg = 4;
    • clearInArg

      public ApiDef.Builder clearInArg()
      repeated .tensorflow.ApiDef.Arg in_arg = 4;
    • removeInArg

      public ApiDef.Builder removeInArg(int index)
      repeated .tensorflow.ApiDef.Arg in_arg = 4;
    • getInArgBuilder

      public ApiDef.Arg.Builder getInArgBuilder(int index)
      repeated .tensorflow.ApiDef.Arg in_arg = 4;
    • getInArgOrBuilder

      public ApiDef.ArgOrBuilder getInArgOrBuilder(int index)
      repeated .tensorflow.ApiDef.Arg in_arg = 4;
      Specified by:
      getInArgOrBuilder in interface ApiDefOrBuilder
    • getInArgOrBuilderList

      public List<? extends ApiDef.ArgOrBuilder> getInArgOrBuilderList()
      repeated .tensorflow.ApiDef.Arg in_arg = 4;
      Specified by:
      getInArgOrBuilderList in interface ApiDefOrBuilder
    • addInArgBuilder

      public ApiDef.Arg.Builder addInArgBuilder()
      repeated .tensorflow.ApiDef.Arg in_arg = 4;
    • addInArgBuilder

      public ApiDef.Arg.Builder addInArgBuilder(int index)
      repeated .tensorflow.ApiDef.Arg in_arg = 4;
    • getInArgBuilderList

      public List<ApiDef.Arg.Builder> getInArgBuilderList()
      repeated .tensorflow.ApiDef.Arg in_arg = 4;
    • getOutArgList

      public List<ApiDef.Arg> getOutArgList()
      repeated .tensorflow.ApiDef.Arg out_arg = 5;
      Specified by:
      getOutArgList in interface ApiDefOrBuilder
    • getOutArgCount

      public int getOutArgCount()
      repeated .tensorflow.ApiDef.Arg out_arg = 5;
      Specified by:
      getOutArgCount in interface ApiDefOrBuilder
    • getOutArg

      public ApiDef.Arg getOutArg(int index)
      repeated .tensorflow.ApiDef.Arg out_arg = 5;
      Specified by:
      getOutArg in interface ApiDefOrBuilder
    • setOutArg

      public ApiDef.Builder setOutArg(int index, ApiDef.Arg value)
      repeated .tensorflow.ApiDef.Arg out_arg = 5;
    • setOutArg

      public ApiDef.Builder setOutArg(int index, ApiDef.Arg.Builder builderForValue)
      repeated .tensorflow.ApiDef.Arg out_arg = 5;
    • addOutArg

      public ApiDef.Builder addOutArg(ApiDef.Arg value)
      repeated .tensorflow.ApiDef.Arg out_arg = 5;
    • addOutArg

      public ApiDef.Builder addOutArg(int index, ApiDef.Arg value)
      repeated .tensorflow.ApiDef.Arg out_arg = 5;
    • addOutArg

      public ApiDef.Builder addOutArg(ApiDef.Arg.Builder builderForValue)
      repeated .tensorflow.ApiDef.Arg out_arg = 5;
    • addOutArg

      public ApiDef.Builder addOutArg(int index, ApiDef.Arg.Builder builderForValue)
      repeated .tensorflow.ApiDef.Arg out_arg = 5;
    • addAllOutArg

      public ApiDef.Builder addAllOutArg(Iterable<? extends ApiDef.Arg> values)
      repeated .tensorflow.ApiDef.Arg out_arg = 5;
    • clearOutArg

      public ApiDef.Builder clearOutArg()
      repeated .tensorflow.ApiDef.Arg out_arg = 5;
    • removeOutArg

      public ApiDef.Builder removeOutArg(int index)
      repeated .tensorflow.ApiDef.Arg out_arg = 5;
    • getOutArgBuilder

      public ApiDef.Arg.Builder getOutArgBuilder(int index)
      repeated .tensorflow.ApiDef.Arg out_arg = 5;
    • getOutArgOrBuilder

      public ApiDef.ArgOrBuilder getOutArgOrBuilder(int index)
      repeated .tensorflow.ApiDef.Arg out_arg = 5;
      Specified by:
      getOutArgOrBuilder in interface ApiDefOrBuilder
    • getOutArgOrBuilderList

      public List<? extends ApiDef.ArgOrBuilder> getOutArgOrBuilderList()
      repeated .tensorflow.ApiDef.Arg out_arg = 5;
      Specified by:
      getOutArgOrBuilderList in interface ApiDefOrBuilder
    • addOutArgBuilder

      public ApiDef.Arg.Builder addOutArgBuilder()
      repeated .tensorflow.ApiDef.Arg out_arg = 5;
    • addOutArgBuilder

      public ApiDef.Arg.Builder addOutArgBuilder(int index)
      repeated .tensorflow.ApiDef.Arg out_arg = 5;
    • getOutArgBuilderList

      public List<ApiDef.Arg.Builder> getOutArgBuilderList()
      repeated .tensorflow.ApiDef.Arg out_arg = 5;
    • getArgOrderList

      public ProtocolStringList getArgOrderList()
      List of original in_arg names to specify new argument order.
      Length of arg_order should be either empty to keep current order
      or match size of in_arg.
      
      repeated string arg_order = 11;
      Specified by:
      getArgOrderList in interface ApiDefOrBuilder
      Returns:
      A list containing the argOrder.
    • getArgOrderCount

      public int getArgOrderCount()
      List of original in_arg names to specify new argument order.
      Length of arg_order should be either empty to keep current order
      or match size of in_arg.
      
      repeated string arg_order = 11;
      Specified by:
      getArgOrderCount in interface ApiDefOrBuilder
      Returns:
      The count of argOrder.
    • getArgOrder

      public String getArgOrder(int index)
      List of original in_arg names to specify new argument order.
      Length of arg_order should be either empty to keep current order
      or match size of in_arg.
      
      repeated string arg_order = 11;
      Specified by:
      getArgOrder in interface ApiDefOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The argOrder at the given index.
    • getArgOrderBytes

      public ByteString getArgOrderBytes(int index)
      List of original in_arg names to specify new argument order.
      Length of arg_order should be either empty to keep current order
      or match size of in_arg.
      
      repeated string arg_order = 11;
      Specified by:
      getArgOrderBytes in interface ApiDefOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the argOrder at the given index.
    • setArgOrder

      public ApiDef.Builder setArgOrder(int index, String value)
      List of original in_arg names to specify new argument order.
      Length of arg_order should be either empty to keep current order
      or match size of in_arg.
      
      repeated string arg_order = 11;
      Parameters:
      index - The index to set the value at.
      value - The argOrder to set.
      Returns:
      This builder for chaining.
    • addArgOrder

      public ApiDef.Builder addArgOrder(String value)
      List of original in_arg names to specify new argument order.
      Length of arg_order should be either empty to keep current order
      or match size of in_arg.
      
      repeated string arg_order = 11;
      Parameters:
      value - The argOrder to add.
      Returns:
      This builder for chaining.
    • addAllArgOrder

      public ApiDef.Builder addAllArgOrder(Iterable<String> values)
      List of original in_arg names to specify new argument order.
      Length of arg_order should be either empty to keep current order
      or match size of in_arg.
      
      repeated string arg_order = 11;
      Parameters:
      values - The argOrder to add.
      Returns:
      This builder for chaining.
    • clearArgOrder

      public ApiDef.Builder clearArgOrder()
      List of original in_arg names to specify new argument order.
      Length of arg_order should be either empty to keep current order
      or match size of in_arg.
      
      repeated string arg_order = 11;
      Returns:
      This builder for chaining.
    • addArgOrderBytes

      public ApiDef.Builder addArgOrderBytes(ByteString value)
      List of original in_arg names to specify new argument order.
      Length of arg_order should be either empty to keep current order
      or match size of in_arg.
      
      repeated string arg_order = 11;
      Parameters:
      value - The bytes of the argOrder to add.
      Returns:
      This builder for chaining.
    • getAttrList

      public List<ApiDef.Attr> getAttrList()
      repeated .tensorflow.ApiDef.Attr attr = 6;
      Specified by:
      getAttrList in interface ApiDefOrBuilder
    • getAttrCount

      public int getAttrCount()
      repeated .tensorflow.ApiDef.Attr attr = 6;
      Specified by:
      getAttrCount in interface ApiDefOrBuilder
    • getAttr

      public ApiDef.Attr getAttr(int index)
      repeated .tensorflow.ApiDef.Attr attr = 6;
      Specified by:
      getAttr in interface ApiDefOrBuilder
    • setAttr

      public ApiDef.Builder setAttr(int index, ApiDef.Attr value)
      repeated .tensorflow.ApiDef.Attr attr = 6;
    • setAttr

      public ApiDef.Builder setAttr(int index, ApiDef.Attr.Builder builderForValue)
      repeated .tensorflow.ApiDef.Attr attr = 6;
    • addAttr

      public ApiDef.Builder addAttr(ApiDef.Attr value)
      repeated .tensorflow.ApiDef.Attr attr = 6;
    • addAttr

      public ApiDef.Builder addAttr(int index, ApiDef.Attr value)
      repeated .tensorflow.ApiDef.Attr attr = 6;
    • addAttr

      public ApiDef.Builder addAttr(ApiDef.Attr.Builder builderForValue)
      repeated .tensorflow.ApiDef.Attr attr = 6;
    • addAttr

      public ApiDef.Builder addAttr(int index, ApiDef.Attr.Builder builderForValue)
      repeated .tensorflow.ApiDef.Attr attr = 6;
    • addAllAttr

      public ApiDef.Builder addAllAttr(Iterable<? extends ApiDef.Attr> values)
      repeated .tensorflow.ApiDef.Attr attr = 6;
    • clearAttr

      public ApiDef.Builder clearAttr()
      repeated .tensorflow.ApiDef.Attr attr = 6;
    • removeAttr

      public ApiDef.Builder removeAttr(int index)
      repeated .tensorflow.ApiDef.Attr attr = 6;
    • getAttrBuilder

      public ApiDef.Attr.Builder getAttrBuilder(int index)
      repeated .tensorflow.ApiDef.Attr attr = 6;
    • getAttrOrBuilder

      public ApiDef.AttrOrBuilder getAttrOrBuilder(int index)
      repeated .tensorflow.ApiDef.Attr attr = 6;
      Specified by:
      getAttrOrBuilder in interface ApiDefOrBuilder
    • getAttrOrBuilderList

      public List<? extends ApiDef.AttrOrBuilder> getAttrOrBuilderList()
      repeated .tensorflow.ApiDef.Attr attr = 6;
      Specified by:
      getAttrOrBuilderList in interface ApiDefOrBuilder
    • addAttrBuilder

      public ApiDef.Attr.Builder addAttrBuilder()
      repeated .tensorflow.ApiDef.Attr attr = 6;
    • addAttrBuilder

      public ApiDef.Attr.Builder addAttrBuilder(int index)
      repeated .tensorflow.ApiDef.Attr attr = 6;
    • getAttrBuilderList

      public List<ApiDef.Attr.Builder> getAttrBuilderList()
      repeated .tensorflow.ApiDef.Attr attr = 6;
    • getSummary

      public String getSummary()
      One-line human-readable description of what the Op does.
      
      string summary = 7;
      Specified by:
      getSummary in interface ApiDefOrBuilder
      Returns:
      The summary.
    • getSummaryBytes

      public ByteString getSummaryBytes()
      One-line human-readable description of what the Op does.
      
      string summary = 7;
      Specified by:
      getSummaryBytes in interface ApiDefOrBuilder
      Returns:
      The bytes for summary.
    • setSummary

      public ApiDef.Builder setSummary(String value)
      One-line human-readable description of what the Op does.
      
      string summary = 7;
      Parameters:
      value - The summary to set.
      Returns:
      This builder for chaining.
    • clearSummary

      public ApiDef.Builder clearSummary()
      One-line human-readable description of what the Op does.
      
      string summary = 7;
      Returns:
      This builder for chaining.
    • setSummaryBytes

      public ApiDef.Builder setSummaryBytes(ByteString value)
      One-line human-readable description of what the Op does.
      
      string summary = 7;
      Parameters:
      value - The bytes for summary to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
      Additional, longer human-readable description of what the Op does.
      
      string description = 8;
      Specified by:
      getDescription in interface ApiDefOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public ByteString getDescriptionBytes()
      Additional, longer human-readable description of what the Op does.
      
      string description = 8;
      Specified by:
      getDescriptionBytes in interface ApiDefOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public ApiDef.Builder setDescription(String value)
      Additional, longer human-readable description of what the Op does.
      
      string description = 8;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public ApiDef.Builder clearDescription()
      Additional, longer human-readable description of what the Op does.
      
      string description = 8;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public ApiDef.Builder setDescriptionBytes(ByteString value)
      Additional, longer human-readable description of what the Op does.
      
      string description = 8;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getDescriptionPrefix

      public String getDescriptionPrefix()
      Modify an existing/inherited description by adding text to the beginning
      or end.
      
      string description_prefix = 9;
      Specified by:
      getDescriptionPrefix in interface ApiDefOrBuilder
      Returns:
      The descriptionPrefix.
    • getDescriptionPrefixBytes

      public ByteString getDescriptionPrefixBytes()
      Modify an existing/inherited description by adding text to the beginning
      or end.
      
      string description_prefix = 9;
      Specified by:
      getDescriptionPrefixBytes in interface ApiDefOrBuilder
      Returns:
      The bytes for descriptionPrefix.
    • setDescriptionPrefix

      public ApiDef.Builder setDescriptionPrefix(String value)
      Modify an existing/inherited description by adding text to the beginning
      or end.
      
      string description_prefix = 9;
      Parameters:
      value - The descriptionPrefix to set.
      Returns:
      This builder for chaining.
    • clearDescriptionPrefix

      public ApiDef.Builder clearDescriptionPrefix()
      Modify an existing/inherited description by adding text to the beginning
      or end.
      
      string description_prefix = 9;
      Returns:
      This builder for chaining.
    • setDescriptionPrefixBytes

      public ApiDef.Builder setDescriptionPrefixBytes(ByteString value)
      Modify an existing/inherited description by adding text to the beginning
      or end.
      
      string description_prefix = 9;
      Parameters:
      value - The bytes for descriptionPrefix to set.
      Returns:
      This builder for chaining.
    • getDescriptionSuffix

      public String getDescriptionSuffix()
      string description_suffix = 10;
      Specified by:
      getDescriptionSuffix in interface ApiDefOrBuilder
      Returns:
      The descriptionSuffix.
    • getDescriptionSuffixBytes

      public ByteString getDescriptionSuffixBytes()
      string description_suffix = 10;
      Specified by:
      getDescriptionSuffixBytes in interface ApiDefOrBuilder
      Returns:
      The bytes for descriptionSuffix.
    • setDescriptionSuffix

      public ApiDef.Builder setDescriptionSuffix(String value)
      string description_suffix = 10;
      Parameters:
      value - The descriptionSuffix to set.
      Returns:
      This builder for chaining.
    • clearDescriptionSuffix

      public ApiDef.Builder clearDescriptionSuffix()
      string description_suffix = 10;
      Returns:
      This builder for chaining.
    • setDescriptionSuffixBytes

      public ApiDef.Builder setDescriptionSuffixBytes(ByteString value)
      string description_suffix = 10;
      Parameters:
      value - The bytes for descriptionSuffix to set.
      Returns:
      This builder for chaining.