Package com.exonum.messages.core.runtime
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 Summary
Modifier and Type Method Description Base.InstanceSpec.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Base.InstanceSpec
build()
Base.InstanceSpec
buildPartial()
Base.InstanceSpec.Builder
clear()
Base.InstanceSpec.Builder
clearArtifact()
Identifier of the corresponding artifact.Base.InstanceSpec.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Base.InstanceSpec.Builder
clearId()
Unique numeric ID of the service instance.Base.InstanceSpec.Builder
clearName()
Unique name of the service instance.Base.InstanceSpec.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Base.InstanceSpec.Builder
clone()
Base.ArtifactId
getArtifact()
Identifier of the corresponding artifact.Base.ArtifactId.Builder
getArtifactBuilder()
Identifier of the corresponding artifact.Base.ArtifactIdOrBuilder
getArtifactOrBuilder()
Identifier of the corresponding artifact.Base.InstanceSpec
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getId()
Unique numeric ID of the service instance.java.lang.String
getName()
Unique name of the service instance.com.google.protobuf.ByteString
getNameBytes()
Unique name of the service instance.boolean
hasArtifact()
Identifier of the corresponding artifact.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Base.InstanceSpec.Builder
mergeArtifact(Base.ArtifactId value)
Identifier of the corresponding artifact.Base.InstanceSpec.Builder
mergeFrom(Base.InstanceSpec other)
Base.InstanceSpec.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Base.InstanceSpec.Builder
mergeFrom(com.google.protobuf.Message other)
Base.InstanceSpec.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Base.InstanceSpec.Builder
setArtifact(Base.ArtifactId value)
Identifier of the corresponding artifact.Base.InstanceSpec.Builder
setArtifact(Base.ArtifactId.Builder builderForValue)
Identifier of the corresponding artifact.Base.InstanceSpec.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Base.InstanceSpec.Builder
setId(int value)
Unique numeric ID of the service instance.Base.InstanceSpec.Builder
setName(java.lang.String value)
Unique name of the service instance.Base.InstanceSpec.Builder
setNameBytes(com.google.protobuf.ByteString value)
Unique name of the service instance.Base.InstanceSpec.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Base.InstanceSpec.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Base.InstanceSpec.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Base.InstanceSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Base.InstanceSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Base.InstanceSpec.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Base.InstanceSpec.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Base.InstanceSpec.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Base.InstanceSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceBase.InstanceSpecOrBuilder
- Returns:
- The id.
-
setId
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
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 interfaceBase.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 interfaceBase.InstanceSpecOrBuilder
- Returns:
- The bytes for name.
-
setName
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
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
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 interfaceBase.InstanceSpecOrBuilder
- Returns:
- Whether the artifact field is set.
-
getArtifact
Identifier of the corresponding artifact.
.exonum.runtime.ArtifactId artifact = 3;
- Specified by:
getArtifact
in interfaceBase.InstanceSpecOrBuilder
- Returns:
- The artifact.
-
setArtifact
Identifier of the corresponding artifact.
.exonum.runtime.ArtifactId artifact = 3;
-
setArtifact
Identifier of the corresponding artifact.
.exonum.runtime.ArtifactId artifact = 3;
-
mergeArtifact
Identifier of the corresponding artifact.
.exonum.runtime.ArtifactId artifact = 3;
-
clearArtifact
Identifier of the corresponding artifact.
.exonum.runtime.ArtifactId artifact = 3;
-
getArtifactBuilder
Identifier of the corresponding artifact.
.exonum.runtime.ArtifactId artifact = 3;
-
getArtifactOrBuilder
Identifier of the corresponding artifact.
.exonum.runtime.ArtifactId artifact = 3;
- Specified by:
getArtifactOrBuilder
in interfaceBase.InstanceSpecOrBuilder
-
setUnknownFields
public final Base.InstanceSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Base.InstanceSpec.Builder>
-
mergeUnknownFields
public final Base.InstanceSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Base.InstanceSpec.Builder>
-