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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Base.InstanceSpecbuild()Base.InstanceSpecbuildPartial()Base.InstanceSpec.Builderclear()Base.InstanceSpec.BuilderclearArtifact()Identifier of the corresponding artifact.Base.InstanceSpec.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Base.InstanceSpec.BuilderclearId()Unique numeric ID of the service instance.Base.InstanceSpec.BuilderclearName()Unique name of the service instance.Base.InstanceSpec.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Base.InstanceSpec.Builderclone()Base.ArtifactIdgetArtifact()Identifier of the corresponding artifact.Base.ArtifactId.BuildergetArtifactBuilder()Identifier of the corresponding artifact.Base.ArtifactIdOrBuildergetArtifactOrBuilder()Identifier of the corresponding artifact.Base.InstanceSpecgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetId()Unique numeric ID of the service instance.java.lang.StringgetName()Unique name of the service instance.com.google.protobuf.ByteStringgetNameBytes()Unique name of the service instance.booleanhasArtifact()Identifier of the corresponding artifact.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Base.InstanceSpec.BuildermergeArtifact(Base.ArtifactId value)Identifier of the corresponding artifact.Base.InstanceSpec.BuildermergeFrom(Base.InstanceSpec other)Base.InstanceSpec.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Base.InstanceSpec.BuildermergeFrom(com.google.protobuf.Message other)Base.InstanceSpec.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Base.InstanceSpec.BuildersetArtifact(Base.ArtifactId value)Identifier of the corresponding artifact.Base.InstanceSpec.BuildersetArtifact(Base.ArtifactId.Builder builderForValue)Identifier of the corresponding artifact.Base.InstanceSpec.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Base.InstanceSpec.BuildersetId(int value)Unique numeric ID of the service instance.Base.InstanceSpec.BuildersetName(java.lang.String value)Unique name of the service instance.Base.InstanceSpec.BuildersetNameBytes(com.google.protobuf.ByteString value)Unique name of the service instance.Base.InstanceSpec.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Base.InstanceSpec.BuildersetUnknownFields(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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Base.InstanceSpec.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Base.InstanceSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Base.InstanceSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein 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:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Base.InstanceSpec.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Base.InstanceSpec.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin 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:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Base.InstanceSpec.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Base.InstanceSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getIdin 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:
getNamein 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:
getNameBytesin 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:
hasArtifactin interfaceBase.InstanceSpecOrBuilder- Returns:
- Whether the artifact field is set.
-
getArtifact
Identifier of the corresponding artifact.
.exonum.runtime.ArtifactId artifact = 3;- Specified by:
getArtifactin 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:
getArtifactOrBuilderin interfaceBase.InstanceSpecOrBuilder
-
setUnknownFields
public final Base.InstanceSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Base.InstanceSpec.Builder>
-
mergeUnknownFields
public final Base.InstanceSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Base.InstanceSpec.Builder>
-