Class Base.InstanceSpec.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Base.InstanceSpec.Builder>
com.exonum.messages.core.runtime.Base.InstanceSpec.Builder
All Implemented Interfaces:
Base.InstanceSpecOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
Enclosing class:
Base.InstanceSpec

public static final class Base.InstanceSpec.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Base.InstanceSpec.Builder>
implements Base.InstanceSpecOrBuilder
 Exhaustive service instance specification.
 
Protobuf type exonum.runtime.InstanceSpec
  • Method Details

    • getDescriptor

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

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

      public Base.InstanceSpec.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<Base.InstanceSpec.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<Base.InstanceSpec.Builder>
    • getDefaultInstanceForType

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

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

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

      public Base.InstanceSpec.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<Base.InstanceSpec.Builder>
    • setField

      public Base.InstanceSpec.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<Base.InstanceSpec.Builder>
    • clearField

      public Base.InstanceSpec.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<Base.InstanceSpec.Builder>
    • clearOneof

      public Base.InstanceSpec.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<Base.InstanceSpec.Builder>
    • setRepeatedField

      public Base.InstanceSpec.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<Base.InstanceSpec.Builder>
    • addRepeatedField

      public Base.InstanceSpec.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<Base.InstanceSpec.Builder>
    • mergeFrom

      public Base.InstanceSpec.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<Base.InstanceSpec.Builder>
    • mergeFrom

      public Base.InstanceSpec.Builder mergeFrom​(Base.InstanceSpec other)
    • isInitialized

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

      public Base.InstanceSpec.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<Base.InstanceSpec.Builder>
      Throws:
      java.io.IOException
    • getId

      public int getId()
       Unique numeric ID of the service instance.
       Exonum assigns an ID to the service on instantiation. It is mainly used
       to route transaction messages belonging to this instance.
       
      uint32 id = 1;
      Specified by:
      getId in interface Base.InstanceSpecOrBuilder
      Returns:
      The id.
    • setId

      public Base.InstanceSpec.Builder setId​(int value)
       Unique numeric ID of the service instance.
       Exonum assigns an ID to the service on instantiation. It is mainly used
       to route transaction messages belonging to this instance.
       
      uint32 id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Base.InstanceSpec.Builder clearId()
       Unique numeric ID of the service instance.
       Exonum assigns an ID to the service on instantiation. It is mainly used
       to route transaction messages belonging to this instance.
       
      uint32 id = 1;
      Returns:
      This builder for chaining.
    • getName

      public java.lang.String getName()
       Unique name of the service instance.
       The name serves as a primary identifier of this service in most operations.
       It is assigned by the network administrators.
       The name must correspond to the following regular expression: `[a-zA-Z0-9/\:-_]+`.
       
      string name = 2;
      Specified by:
      getName in interface Base.InstanceSpecOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Unique name of the service instance.
       The name serves as a primary identifier of this service in most operations.
       It is assigned by the network administrators.
       The name must correspond to the following regular expression: `[a-zA-Z0-9/\:-_]+`.
       
      string name = 2;
      Specified by:
      getNameBytes in interface Base.InstanceSpecOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Base.InstanceSpec.Builder setName​(java.lang.String value)
       Unique name of the service instance.
       The name serves as a primary identifier of this service in most operations.
       It is assigned by the network administrators.
       The name must correspond to the following regular expression: `[a-zA-Z0-9/\:-_]+`.
       
      string name = 2;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Base.InstanceSpec.Builder clearName()
       Unique name of the service instance.
       The name serves as a primary identifier of this service in most operations.
       It is assigned by the network administrators.
       The name must correspond to the following regular expression: `[a-zA-Z0-9/\:-_]+`.
       
      string name = 2;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Base.InstanceSpec.Builder setNameBytes​(com.google.protobuf.ByteString value)
       Unique name of the service instance.
       The name serves as a primary identifier of this service in most operations.
       It is assigned by the network administrators.
       The name must correspond to the following regular expression: `[a-zA-Z0-9/\:-_]+`.
       
      string name = 2;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasArtifact

      public boolean hasArtifact()
       Identifier of the corresponding artifact.
       
      .exonum.runtime.ArtifactId artifact = 3;
      Specified by:
      hasArtifact in interface Base.InstanceSpecOrBuilder
      Returns:
      Whether the artifact field is set.
    • getArtifact

      public Base.ArtifactId getArtifact()
       Identifier of the corresponding artifact.
       
      .exonum.runtime.ArtifactId artifact = 3;
      Specified by:
      getArtifact in interface Base.InstanceSpecOrBuilder
      Returns:
      The artifact.
    • setArtifact

      public Base.InstanceSpec.Builder setArtifact​(Base.ArtifactId value)
       Identifier of the corresponding artifact.
       
      .exonum.runtime.ArtifactId artifact = 3;
    • setArtifact

      public Base.InstanceSpec.Builder setArtifact​(Base.ArtifactId.Builder builderForValue)
       Identifier of the corresponding artifact.
       
      .exonum.runtime.ArtifactId artifact = 3;
    • mergeArtifact

      public Base.InstanceSpec.Builder mergeArtifact​(Base.ArtifactId value)
       Identifier of the corresponding artifact.
       
      .exonum.runtime.ArtifactId artifact = 3;
    • clearArtifact

      public Base.InstanceSpec.Builder clearArtifact()
       Identifier of the corresponding artifact.
       
      .exonum.runtime.ArtifactId artifact = 3;
    • getArtifactBuilder

      public Base.ArtifactId.Builder getArtifactBuilder()
       Identifier of the corresponding artifact.
       
      .exonum.runtime.ArtifactId artifact = 3;
    • getArtifactOrBuilder

      public Base.ArtifactIdOrBuilder getArtifactOrBuilder()
       Identifier of the corresponding artifact.
       
      .exonum.runtime.ArtifactId artifact = 3;
      Specified by:
      getArtifactOrBuilder in interface Base.InstanceSpecOrBuilder
    • setUnknownFields

      public final Base.InstanceSpec.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<Base.InstanceSpec.Builder>
    • mergeUnknownFields

      public final Base.InstanceSpec.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<Base.InstanceSpec.Builder>