Class QueryUpdate.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, QueryUpdateOrBuilder, Cloneable
    Enclosing class:
    QueryUpdate

    public static final class QueryUpdate.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<QueryUpdate.Builder>
    implements QueryUpdateOrBuilder
     A message containing an Update of a Query Subscription Response 
     
    Protobuf type io.axoniq.axonserver.grpc.query.QueryUpdate
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)
        Overrides:
        internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<QueryUpdate.Builder>
      • internalGetMutableMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection​(int number)
        Overrides:
        internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<QueryUpdate.Builder>
      • internalGetFieldAccessorTable

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

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

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

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

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

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

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

        public QueryUpdate.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<QueryUpdate.Builder>
        Throws:
        IOException
      • getMessageIdentifier

        public String getMessageIdentifier()
         The unique identifier of this Update 
         
        string message_identifier = 2;
        Specified by:
        getMessageIdentifier in interface QueryUpdateOrBuilder
        Returns:
        The messageIdentifier.
      • getMessageIdentifierBytes

        public com.google.protobuf.ByteString getMessageIdentifierBytes()
         The unique identifier of this Update 
         
        string message_identifier = 2;
        Specified by:
        getMessageIdentifierBytes in interface QueryUpdateOrBuilder
        Returns:
        The bytes for messageIdentifier.
      • setMessageIdentifier

        public QueryUpdate.Builder setMessageIdentifier​(String value)
         The unique identifier of this Update 
         
        string message_identifier = 2;
        Parameters:
        value - The messageIdentifier to set.
        Returns:
        This builder for chaining.
      • clearMessageIdentifier

        public QueryUpdate.Builder clearMessageIdentifier()
         The unique identifier of this Update 
         
        string message_identifier = 2;
        Returns:
        This builder for chaining.
      • setMessageIdentifierBytes

        public QueryUpdate.Builder setMessageIdentifierBytes​(com.google.protobuf.ByteString value)
         The unique identifier of this Update 
         
        string message_identifier = 2;
        Parameters:
        value - The bytes for messageIdentifier to set.
        Returns:
        This builder for chaining.
      • hasPayload

        public boolean hasPayload()
         The object representing the Update 
         
        .io.axoniq.axonserver.grpc.SerializedObject payload = 3;
        Specified by:
        hasPayload in interface QueryUpdateOrBuilder
        Returns:
        Whether the payload field is set.
      • mergePayload

        public QueryUpdate.Builder mergePayload​(SerializedObject value)
         The object representing the Update 
         
        .io.axoniq.axonserver.grpc.SerializedObject payload = 3;
      • clearPayload

        public QueryUpdate.Builder clearPayload()
         The object representing the Update 
         
        .io.axoniq.axonserver.grpc.SerializedObject payload = 3;
      • getPayloadBuilder

        public SerializedObject.Builder getPayloadBuilder()
         The object representing the Update 
         
        .io.axoniq.axonserver.grpc.SerializedObject payload = 3;
      • getMetaDataCount

        public int getMetaDataCount()
        Description copied from interface: QueryUpdateOrBuilder
         Meta Data providing contextual information of the Update 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 4;
        Specified by:
        getMetaDataCount in interface QueryUpdateOrBuilder
      • containsMetaData

        public boolean containsMetaData​(String key)
         Meta Data providing contextual information of the Update 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 4;
        Specified by:
        containsMetaData in interface QueryUpdateOrBuilder
      • removeMetaData

        public QueryUpdate.Builder removeMetaData​(String key)
         Meta Data providing contextual information of the Update 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 4;
      • putMetaData

        public QueryUpdate.Builder putMetaData​(String key,
                                               MetaDataValue value)
         Meta Data providing contextual information of the Update 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 4;
      • putAllMetaData

        public QueryUpdate.Builder putAllMetaData​(Map<String,​MetaDataValue> values)
         Meta Data providing contextual information of the Update 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 4;
      • putMetaDataBuilderIfAbsent

        public MetaDataValue.Builder putMetaDataBuilderIfAbsent​(String key)
         Meta Data providing contextual information of the Update 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 4;
      • getClientId

        public String getClientId()
         The identifier of the Client instance providing the Update 
         
        string client_id = 5;
        Specified by:
        getClientId in interface QueryUpdateOrBuilder
        Returns:
        The clientId.
      • getClientIdBytes

        public com.google.protobuf.ByteString getClientIdBytes()
         The identifier of the Client instance providing the Update 
         
        string client_id = 5;
        Specified by:
        getClientIdBytes in interface QueryUpdateOrBuilder
        Returns:
        The bytes for clientId.
      • setClientId

        public QueryUpdate.Builder setClientId​(String value)
         The identifier of the Client instance providing the Update 
         
        string client_id = 5;
        Parameters:
        value - The clientId to set.
        Returns:
        This builder for chaining.
      • clearClientId

        public QueryUpdate.Builder clearClientId()
         The identifier of the Client instance providing the Update 
         
        string client_id = 5;
        Returns:
        This builder for chaining.
      • setClientIdBytes

        public QueryUpdate.Builder setClientIdBytes​(com.google.protobuf.ByteString value)
         The identifier of the Client instance providing the Update 
         
        string client_id = 5;
        Parameters:
        value - The bytes for clientId to set.
        Returns:
        This builder for chaining.
      • getComponentName

        public String getComponentName()
         The Component Name of the Client providing the Update 
         
        string component_name = 6;
        Specified by:
        getComponentName in interface QueryUpdateOrBuilder
        Returns:
        The componentName.
      • getComponentNameBytes

        public com.google.protobuf.ByteString getComponentNameBytes()
         The Component Name of the Client providing the Update 
         
        string component_name = 6;
        Specified by:
        getComponentNameBytes in interface QueryUpdateOrBuilder
        Returns:
        The bytes for componentName.
      • setComponentName

        public QueryUpdate.Builder setComponentName​(String value)
         The Component Name of the Client providing the Update 
         
        string component_name = 6;
        Parameters:
        value - The componentName to set.
        Returns:
        This builder for chaining.
      • clearComponentName

        public QueryUpdate.Builder clearComponentName()
         The Component Name of the Client providing the Update 
         
        string component_name = 6;
        Returns:
        This builder for chaining.
      • setComponentNameBytes

        public QueryUpdate.Builder setComponentNameBytes​(com.google.protobuf.ByteString value)
         The Component Name of the Client providing the Update 
         
        string component_name = 6;
        Parameters:
        value - The bytes for componentName to set.
        Returns:
        This builder for chaining.
      • getErrorCode

        public String getErrorCode()
         An Error Code identifying the type of error, if any 
         
        string error_code = 7;
        Specified by:
        getErrorCode in interface QueryUpdateOrBuilder
        Returns:
        The errorCode.
      • getErrorCodeBytes

        public com.google.protobuf.ByteString getErrorCodeBytes()
         An Error Code identifying the type of error, if any 
         
        string error_code = 7;
        Specified by:
        getErrorCodeBytes in interface QueryUpdateOrBuilder
        Returns:
        The bytes for errorCode.
      • setErrorCode

        public QueryUpdate.Builder setErrorCode​(String value)
         An Error Code identifying the type of error, if any 
         
        string error_code = 7;
        Parameters:
        value - The errorCode to set.
        Returns:
        This builder for chaining.
      • clearErrorCode

        public QueryUpdate.Builder clearErrorCode()
         An Error Code identifying the type of error, if any 
         
        string error_code = 7;
        Returns:
        This builder for chaining.
      • setErrorCodeBytes

        public QueryUpdate.Builder setErrorCodeBytes​(com.google.protobuf.ByteString value)
         An Error Code identifying the type of error, if any 
         
        string error_code = 7;
        Parameters:
        value - The bytes for errorCode to set.
        Returns:
        This builder for chaining.
      • hasErrorMessage

        public boolean hasErrorMessage()
         A detailed description of the error, if any 
         
        .io.axoniq.axonserver.grpc.ErrorMessage error_message = 8;
        Specified by:
        hasErrorMessage in interface QueryUpdateOrBuilder
        Returns:
        Whether the errorMessage field is set.
      • getErrorMessage

        public ErrorMessage getErrorMessage()
         A detailed description of the error, if any 
         
        .io.axoniq.axonserver.grpc.ErrorMessage error_message = 8;
        Specified by:
        getErrorMessage in interface QueryUpdateOrBuilder
        Returns:
        The errorMessage.
      • setErrorMessage

        public QueryUpdate.Builder setErrorMessage​(ErrorMessage value)
         A detailed description of the error, if any 
         
        .io.axoniq.axonserver.grpc.ErrorMessage error_message = 8;
      • setErrorMessage

        public QueryUpdate.Builder setErrorMessage​(ErrorMessage.Builder builderForValue)
         A detailed description of the error, if any 
         
        .io.axoniq.axonserver.grpc.ErrorMessage error_message = 8;
      • mergeErrorMessage

        public QueryUpdate.Builder mergeErrorMessage​(ErrorMessage value)
         A detailed description of the error, if any 
         
        .io.axoniq.axonserver.grpc.ErrorMessage error_message = 8;
      • clearErrorMessage

        public QueryUpdate.Builder clearErrorMessage()
         A detailed description of the error, if any 
         
        .io.axoniq.axonserver.grpc.ErrorMessage error_message = 8;
      • getErrorMessageBuilder

        public ErrorMessage.Builder getErrorMessageBuilder()
         A detailed description of the error, if any 
         
        .io.axoniq.axonserver.grpc.ErrorMessage error_message = 8;