Class 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 type io.axoniq.axonserver.grpc.command.CommandSubscription
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CommandSubscription.Builder>
      • clear

        public CommandSubscription.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.GeneratedMessage.Builder<CommandSubscription.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.GeneratedMessage.Builder<CommandSubscription.Builder>
      • getDefaultInstanceForType

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

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

        public CommandSubscription buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • mergeFrom

        public CommandSubscription.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<CommandSubscription.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        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<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:
        getMessageId in interface CommandSubscriptionOrBuilder
        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:
        getMessageIdBytes in interface CommandSubscriptionOrBuilder
        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.
      • getCommandBytes

        public com.google.protobuf.ByteString getCommandBytes()
         The name of the command the component can handle 
         
        string command = 2;
        Specified by:
        getCommandBytes in interface CommandSubscriptionOrBuilder
        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.
      • getComponentNameBytes

        public com.google.protobuf.ByteString getComponentNameBytes()
         The name/type of the component handling the command 
         
        string component_name = 3;
        Specified by:
        getComponentNameBytes in interface CommandSubscriptionOrBuilder
        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.
      • getClientIdBytes

        public com.google.protobuf.ByteString getClientIdBytes()
         The unique identifier of the component instance subscribing 
         
        string client_id = 4;
        Specified by:
        getClientIdBytes in interface CommandSubscriptionOrBuilder
        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:
        getLoadFactor in interface CommandSubscriptionOrBuilder
        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.