Class ApiDef.Attr.Builder

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

public static final class ApiDef.Attr.Builder extends GeneratedMessage.Builder<ApiDef.Attr.Builder> implements ApiDef.AttrOrBuilder
Description of the graph-construction-time configuration of this
Op.  That is to say, this describes the attr fields that will
be specified in the NodeDef.
Protobuf type tensorflow.ApiDef.Attr
  • Method Details

    • getDescriptor

      public static final Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

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

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

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

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

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

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

      public ApiDef.Attr.Builder mergeFrom(ApiDef.Attr other)
    • isInitialized

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

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

      public String getName()
      string name = 1;
      Specified by:
      getName in interface ApiDef.AttrOrBuilder
      Returns:
      The name.
    • getNameBytes

      public ByteString getNameBytes()
      string name = 1;
      Specified by:
      getNameBytes in interface ApiDef.AttrOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ApiDef.Attr.Builder setName(String value)
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ApiDef.Attr.Builder clearName()
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public ApiDef.Attr.Builder setNameBytes(ByteString value)
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getRenameTo

      public String getRenameTo()
      Change the name used to access this attr in the API from what
      is used in the GraphDef.  Note that these names in `backticks`
      will also be replaced in the summary & description fields.
      
      string rename_to = 2;
      Specified by:
      getRenameTo in interface ApiDef.AttrOrBuilder
      Returns:
      The renameTo.
    • getRenameToBytes

      public ByteString getRenameToBytes()
      Change the name used to access this attr in the API from what
      is used in the GraphDef.  Note that these names in `backticks`
      will also be replaced in the summary & description fields.
      
      string rename_to = 2;
      Specified by:
      getRenameToBytes in interface ApiDef.AttrOrBuilder
      Returns:
      The bytes for renameTo.
    • setRenameTo

      public ApiDef.Attr.Builder setRenameTo(String value)
      Change the name used to access this attr in the API from what
      is used in the GraphDef.  Note that these names in `backticks`
      will also be replaced in the summary & description fields.
      
      string rename_to = 2;
      Parameters:
      value - The renameTo to set.
      Returns:
      This builder for chaining.
    • clearRenameTo

      public ApiDef.Attr.Builder clearRenameTo()
      Change the name used to access this attr in the API from what
      is used in the GraphDef.  Note that these names in `backticks`
      will also be replaced in the summary & description fields.
      
      string rename_to = 2;
      Returns:
      This builder for chaining.
    • setRenameToBytes

      public ApiDef.Attr.Builder setRenameToBytes(ByteString value)
      Change the name used to access this attr in the API from what
      is used in the GraphDef.  Note that these names in `backticks`
      will also be replaced in the summary & description fields.
      
      string rename_to = 2;
      Parameters:
      value - The bytes for renameTo to set.
      Returns:
      This builder for chaining.
    • hasDefaultValue

      public boolean hasDefaultValue()
      Specify a new default value to use for this attr.  This default
      will be used when creating new graphs, as opposed to the
      default in the OpDef, which will be used when interpreting old
      GraphDefs.
      
      .tensorflow.AttrValue default_value = 3;
      Specified by:
      hasDefaultValue in interface ApiDef.AttrOrBuilder
      Returns:
      Whether the defaultValue field is set.
    • getDefaultValue

      public AttrValue getDefaultValue()
      Specify a new default value to use for this attr.  This default
      will be used when creating new graphs, as opposed to the
      default in the OpDef, which will be used when interpreting old
      GraphDefs.
      
      .tensorflow.AttrValue default_value = 3;
      Specified by:
      getDefaultValue in interface ApiDef.AttrOrBuilder
      Returns:
      The defaultValue.
    • setDefaultValue

      public ApiDef.Attr.Builder setDefaultValue(AttrValue value)
      Specify a new default value to use for this attr.  This default
      will be used when creating new graphs, as opposed to the
      default in the OpDef, which will be used when interpreting old
      GraphDefs.
      
      .tensorflow.AttrValue default_value = 3;
    • setDefaultValue

      public ApiDef.Attr.Builder setDefaultValue(AttrValue.Builder builderForValue)
      Specify a new default value to use for this attr.  This default
      will be used when creating new graphs, as opposed to the
      default in the OpDef, which will be used when interpreting old
      GraphDefs.
      
      .tensorflow.AttrValue default_value = 3;
    • mergeDefaultValue

      public ApiDef.Attr.Builder mergeDefaultValue(AttrValue value)
      Specify a new default value to use for this attr.  This default
      will be used when creating new graphs, as opposed to the
      default in the OpDef, which will be used when interpreting old
      GraphDefs.
      
      .tensorflow.AttrValue default_value = 3;
    • clearDefaultValue

      public ApiDef.Attr.Builder clearDefaultValue()
      Specify a new default value to use for this attr.  This default
      will be used when creating new graphs, as opposed to the
      default in the OpDef, which will be used when interpreting old
      GraphDefs.
      
      .tensorflow.AttrValue default_value = 3;
    • getDefaultValueBuilder

      public AttrValue.Builder getDefaultValueBuilder()
      Specify a new default value to use for this attr.  This default
      will be used when creating new graphs, as opposed to the
      default in the OpDef, which will be used when interpreting old
      GraphDefs.
      
      .tensorflow.AttrValue default_value = 3;
    • getDefaultValueOrBuilder

      public AttrValueOrBuilder getDefaultValueOrBuilder()
      Specify a new default value to use for this attr.  This default
      will be used when creating new graphs, as opposed to the
      default in the OpDef, which will be used when interpreting old
      GraphDefs.
      
      .tensorflow.AttrValue default_value = 3;
      Specified by:
      getDefaultValueOrBuilder in interface ApiDef.AttrOrBuilder
    • getDescription

      public String getDescription()
      Note: this will replace any inherited attr doc, there is no current
      way of modifying attr descriptions as can be done with op descriptions.
      
      string description = 4;
      Specified by:
      getDescription in interface ApiDef.AttrOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public ByteString getDescriptionBytes()
      Note: this will replace any inherited attr doc, there is no current
      way of modifying attr descriptions as can be done with op descriptions.
      
      string description = 4;
      Specified by:
      getDescriptionBytes in interface ApiDef.AttrOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public ApiDef.Attr.Builder setDescription(String value)
      Note: this will replace any inherited attr doc, there is no current
      way of modifying attr descriptions as can be done with op descriptions.
      
      string description = 4;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public ApiDef.Attr.Builder clearDescription()
      Note: this will replace any inherited attr doc, there is no current
      way of modifying attr descriptions as can be done with op descriptions.
      
      string description = 4;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public ApiDef.Attr.Builder setDescriptionBytes(ByteString value)
      Note: this will replace any inherited attr doc, there is no current
      way of modifying attr descriptions as can be done with op descriptions.
      
      string description = 4;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.