Class CommandSubscription.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<CommandSubscription.Builder>
-
- io.axoniq.axonserver.grpc.command.CommandSubscription.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CommandSubscriptionOrBuilder,Cloneable
- Enclosing class:
- CommandSubscription
public static final class CommandSubscription.Builder extends com.google.protobuf.GeneratedMessage.Builder<CommandSubscription.Builder> implements CommandSubscriptionOrBuilder
Message describing a component's capability of handling a command type
Protobuf typeio.axoniq.axonserver.grpc.command.CommandSubscription
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandSubscriptionbuild()CommandSubscriptionbuildPartial()CommandSubscription.Builderclear()CommandSubscription.BuilderclearClientId()The unique identifier of the component instance subscribingCommandSubscription.BuilderclearCommand()The name of the command the component can handleCommandSubscription.BuilderclearComponentName()The name/type of the component handling the commandCommandSubscription.BuilderclearLoadFactor()A number that represents the client's relative load capacity compared to other clients.CommandSubscription.BuilderclearMessageId()A unique identifier for this subscription.StringgetClientId()The unique identifier of the component instance subscribingcom.google.protobuf.ByteStringgetClientIdBytes()The unique identifier of the component instance subscribingStringgetCommand()The name of the command the component can handlecom.google.protobuf.ByteStringgetCommandBytes()The name of the command the component can handleStringgetComponentName()The name/type of the component handling the commandcom.google.protobuf.ByteStringgetComponentNameBytes()The name/type of the component handling the commandCommandSubscriptiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetLoadFactor()A number that represents the client's relative load capacity compared to other clients.StringgetMessageId()A unique identifier for this subscription.com.google.protobuf.ByteStringgetMessageIdBytes()A unique identifier for this subscription.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CommandSubscription.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CommandSubscription.BuildermergeFrom(com.google.protobuf.Message other)CommandSubscription.BuildermergeFrom(CommandSubscription other)CommandSubscription.BuildersetClientId(String value)The unique identifier of the component instance subscribingCommandSubscription.BuildersetClientIdBytes(com.google.protobuf.ByteString value)The unique identifier of the component instance subscribingCommandSubscription.BuildersetCommand(String value)The name of the command the component can handleCommandSubscription.BuildersetCommandBytes(com.google.protobuf.ByteString value)The name of the command the component can handleCommandSubscription.BuildersetComponentName(String value)The name/type of the component handling the commandCommandSubscription.BuildersetComponentNameBytes(com.google.protobuf.ByteString value)The name/type of the component handling the commandCommandSubscription.BuildersetLoadFactor(int value)A number that represents the client's relative load capacity compared to other clients.CommandSubscription.BuildersetMessageId(String value)A unique identifier for this subscription.CommandSubscription.BuildersetMessageIdBytes(com.google.protobuf.ByteString value)A unique identifier for this subscription.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CommandSubscription.Builder>
-
clear
public CommandSubscription.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CommandSubscription.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.GeneratedMessage.Builder<CommandSubscription.Builder>
-
getDefaultInstanceForType
public CommandSubscription getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CommandSubscription build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CommandSubscription buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public CommandSubscription.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommandSubscription.Builder>
-
mergeFrom
public CommandSubscription.Builder mergeFrom(CommandSubscription other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CommandSubscription.Builder>
-
mergeFrom
public CommandSubscription.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommandSubscription.Builder>- Throws:
IOException
-
getMessageId
public String getMessageId()
A unique identifier for this subscription. This identifier is returned in Acknowledgements to allow pipelining of subscription messages
string message_id = 1;- Specified by:
getMessageIdin interfaceCommandSubscriptionOrBuilder- Returns:
- The messageId.
-
getMessageIdBytes
public com.google.protobuf.ByteString getMessageIdBytes()
A unique identifier for this subscription. This identifier is returned in Acknowledgements to allow pipelining of subscription messages
string message_id = 1;- Specified by:
getMessageIdBytesin interfaceCommandSubscriptionOrBuilder- Returns:
- The bytes for messageId.
-
setMessageId
public CommandSubscription.Builder setMessageId(String value)
A unique identifier for this subscription. This identifier is returned in Acknowledgements to allow pipelining of subscription messages
string message_id = 1;- Parameters:
value- The messageId to set.- Returns:
- This builder for chaining.
-
clearMessageId
public CommandSubscription.Builder clearMessageId()
A unique identifier for this subscription. This identifier is returned in Acknowledgements to allow pipelining of subscription messages
string message_id = 1;- Returns:
- This builder for chaining.
-
setMessageIdBytes
public CommandSubscription.Builder setMessageIdBytes(com.google.protobuf.ByteString value)
A unique identifier for this subscription. This identifier is returned in Acknowledgements to allow pipelining of subscription messages
string message_id = 1;- Parameters:
value- The bytes for messageId to set.- Returns:
- This builder for chaining.
-
getCommand
public String getCommand()
The name of the command the component can handle
string command = 2;- Specified by:
getCommandin interfaceCommandSubscriptionOrBuilder- Returns:
- The command.
-
getCommandBytes
public com.google.protobuf.ByteString getCommandBytes()
The name of the command the component can handle
string command = 2;- Specified by:
getCommandBytesin interfaceCommandSubscriptionOrBuilder- Returns:
- The bytes for command.
-
setCommand
public CommandSubscription.Builder setCommand(String value)
The name of the command the component can handle
string command = 2;- Parameters:
value- The command to set.- Returns:
- This builder for chaining.
-
clearCommand
public CommandSubscription.Builder clearCommand()
The name of the command the component can handle
string command = 2;- Returns:
- This builder for chaining.
-
setCommandBytes
public CommandSubscription.Builder setCommandBytes(com.google.protobuf.ByteString value)
The name of the command the component can handle
string command = 2;- Parameters:
value- The bytes for command to set.- Returns:
- This builder for chaining.
-
getComponentName
public String getComponentName()
The name/type of the component handling the command
string component_name = 3;- Specified by:
getComponentNamein interfaceCommandSubscriptionOrBuilder- Returns:
- The componentName.
-
getComponentNameBytes
public com.google.protobuf.ByteString getComponentNameBytes()
The name/type of the component handling the command
string component_name = 3;- Specified by:
getComponentNameBytesin interfaceCommandSubscriptionOrBuilder- Returns:
- The bytes for componentName.
-
setComponentName
public CommandSubscription.Builder setComponentName(String value)
The name/type of the component handling the command
string component_name = 3;- Parameters:
value- The componentName to set.- Returns:
- This builder for chaining.
-
clearComponentName
public CommandSubscription.Builder clearComponentName()
The name/type of the component handling the command
string component_name = 3;- Returns:
- This builder for chaining.
-
setComponentNameBytes
public CommandSubscription.Builder setComponentNameBytes(com.google.protobuf.ByteString value)
The name/type of the component handling the command
string component_name = 3;- Parameters:
value- The bytes for componentName to set.- Returns:
- This builder for chaining.
-
getClientId
public String getClientId()
The unique identifier of the component instance subscribing
string client_id = 4;- Specified by:
getClientIdin interfaceCommandSubscriptionOrBuilder- Returns:
- The clientId.
-
getClientIdBytes
public com.google.protobuf.ByteString getClientIdBytes()
The unique identifier of the component instance subscribing
string client_id = 4;- Specified by:
getClientIdBytesin interfaceCommandSubscriptionOrBuilder- Returns:
- The bytes for clientId.
-
setClientId
public CommandSubscription.Builder setClientId(String value)
The unique identifier of the component instance subscribing
string client_id = 4;- Parameters:
value- The clientId to set.- Returns:
- This builder for chaining.
-
clearClientId
public CommandSubscription.Builder clearClientId()
The unique identifier of the component instance subscribing
string client_id = 4;- Returns:
- This builder for chaining.
-
setClientIdBytes
public CommandSubscription.Builder setClientIdBytes(com.google.protobuf.ByteString value)
The unique identifier of the component instance subscribing
string client_id = 4;- Parameters:
value- The bytes for clientId to set.- Returns:
- This builder for chaining.
-
getLoadFactor
public int getLoadFactor()
A number that represents the client's relative load capacity compared to other clients. This information is interpreted by Axon Server in relation to the other connected nodes' values. Used to balance the dispatching of commands. If set to 0, Axon Server consider 100 as default value.
int32 load_factor = 5;- Specified by:
getLoadFactorin interfaceCommandSubscriptionOrBuilder- Returns:
- The loadFactor.
-
setLoadFactor
public CommandSubscription.Builder setLoadFactor(int value)
A number that represents the client's relative load capacity compared to other clients. This information is interpreted by Axon Server in relation to the other connected nodes' values. Used to balance the dispatching of commands. If set to 0, Axon Server consider 100 as default value.
int32 load_factor = 5;- Parameters:
value- The loadFactor to set.- Returns:
- This builder for chaining.
-
clearLoadFactor
public CommandSubscription.Builder clearLoadFactor()
A number that represents the client's relative load capacity compared to other clients. This information is interpreted by Axon Server in relation to the other connected nodes' values. Used to balance the dispatching of commands. If set to 0, Axon Server consider 100 as default value.
int32 load_factor = 5;- Returns:
- This builder for chaining.
-
-