Class ErrorMessage.Builder

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

    public static final class ErrorMessage.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<ErrorMessage.Builder>
    implements ErrorMessageOrBuilder
     Message containing details of an error 
     
    Protobuf type io.axoniq.axonserver.grpc.ErrorMessage
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ErrorMessage.Builder addAllDetails​(Iterable<String> values)
      A collection of messages providing more details about root causes of the error
      ErrorMessage.Builder addDetails​(String value)
      A collection of messages providing more details about root causes of the error
      ErrorMessage.Builder addDetailsBytes​(com.google.protobuf.ByteString value)
      A collection of messages providing more details about root causes of the error
      ErrorMessage build()  
      ErrorMessage buildPartial()  
      ErrorMessage.Builder clear()  
      ErrorMessage.Builder clearDetails()
      A collection of messages providing more details about root causes of the error
      ErrorMessage.Builder clearErrorCode()
      An Error Code identifying the type of error
      ErrorMessage.Builder clearLocation()
      A description of the location (client component, server) where the error occurred
      ErrorMessage.Builder clearMessage()
      A human readable message explaining the error
      ErrorMessage getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      String getDetails​(int index)
      A collection of messages providing more details about root causes of the error
      com.google.protobuf.ByteString getDetailsBytes​(int index)
      A collection of messages providing more details about root causes of the error
      int getDetailsCount()
      A collection of messages providing more details about root causes of the error
      com.google.protobuf.ProtocolStringList getDetailsList()
      A collection of messages providing more details about root causes of the error
      String getErrorCode()
      An Error Code identifying the type of error
      com.google.protobuf.ByteString getErrorCodeBytes()
      An Error Code identifying the type of error
      String getLocation()
      A description of the location (client component, server) where the error occurred
      com.google.protobuf.ByteString getLocationBytes()
      A description of the location (client component, server) where the error occurred
      String getMessage()
      A human readable message explaining the error
      com.google.protobuf.ByteString getMessageBytes()
      A human readable message explaining the error
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      ErrorMessage.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      ErrorMessage.Builder mergeFrom​(com.google.protobuf.Message other)  
      ErrorMessage.Builder mergeFrom​(ErrorMessage other)  
      ErrorMessage.Builder setDetails​(int index, String value)
      A collection of messages providing more details about root causes of the error
      ErrorMessage.Builder setErrorCode​(String value)
      An Error Code identifying the type of error
      ErrorMessage.Builder setErrorCodeBytes​(com.google.protobuf.ByteString value)
      An Error Code identifying the type of error
      ErrorMessage.Builder setLocation​(String value)
      A description of the location (client component, server) where the error occurred
      ErrorMessage.Builder setLocationBytes​(com.google.protobuf.ByteString value)
      A description of the location (client component, server) where the error occurred
      ErrorMessage.Builder setMessage​(String value)
      A human readable message explaining the error
      ErrorMessage.Builder setMessageBytes​(com.google.protobuf.ByteString value)
      A human readable message explaining the error
      • 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 interface com.google.protobuf.Message.Builder

        mergeDelimitedFrom, mergeDelimitedFrom
      • Methods inherited from interface com.google.protobuf.MessageLite.Builder

        mergeFrom
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • 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<ErrorMessage.Builder>
      • clear

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

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

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

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

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

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

        public ErrorMessage.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<ErrorMessage.Builder>
        Throws:
        IOException
      • getMessage

        public String getMessage()
         A human readable message explaining the error 
         
        string message = 1;
        Specified by:
        getMessage in interface ErrorMessageOrBuilder
        Returns:
        The message.
      • getMessageBytes

        public com.google.protobuf.ByteString getMessageBytes()
         A human readable message explaining the error 
         
        string message = 1;
        Specified by:
        getMessageBytes in interface ErrorMessageOrBuilder
        Returns:
        The bytes for message.
      • setMessage

        public ErrorMessage.Builder setMessage​(String value)
         A human readable message explaining the error 
         
        string message = 1;
        Parameters:
        value - The message to set.
        Returns:
        This builder for chaining.
      • clearMessage

        public ErrorMessage.Builder clearMessage()
         A human readable message explaining the error 
         
        string message = 1;
        Returns:
        This builder for chaining.
      • setMessageBytes

        public ErrorMessage.Builder setMessageBytes​(com.google.protobuf.ByteString value)
         A human readable message explaining the error 
         
        string message = 1;
        Parameters:
        value - The bytes for message to set.
        Returns:
        This builder for chaining.
      • getLocation

        public String getLocation()
         A description of the location (client component, server) where the error occurred 
         
        string location = 2;
        Specified by:
        getLocation in interface ErrorMessageOrBuilder
        Returns:
        The location.
      • getLocationBytes

        public com.google.protobuf.ByteString getLocationBytes()
         A description of the location (client component, server) where the error occurred 
         
        string location = 2;
        Specified by:
        getLocationBytes in interface ErrorMessageOrBuilder
        Returns:
        The bytes for location.
      • setLocation

        public ErrorMessage.Builder setLocation​(String value)
         A description of the location (client component, server) where the error occurred 
         
        string location = 2;
        Parameters:
        value - The location to set.
        Returns:
        This builder for chaining.
      • clearLocation

        public ErrorMessage.Builder clearLocation()
         A description of the location (client component, server) where the error occurred 
         
        string location = 2;
        Returns:
        This builder for chaining.
      • setLocationBytes

        public ErrorMessage.Builder setLocationBytes​(com.google.protobuf.ByteString value)
         A description of the location (client component, server) where the error occurred 
         
        string location = 2;
        Parameters:
        value - The bytes for location to set.
        Returns:
        This builder for chaining.
      • getDetailsList

        public com.google.protobuf.ProtocolStringList getDetailsList()
         A collection of messages providing more details about root causes of the error 
         
        repeated string details = 3;
        Specified by:
        getDetailsList in interface ErrorMessageOrBuilder
        Returns:
        A list containing the details.
      • getDetailsCount

        public int getDetailsCount()
         A collection of messages providing more details about root causes of the error 
         
        repeated string details = 3;
        Specified by:
        getDetailsCount in interface ErrorMessageOrBuilder
        Returns:
        The count of details.
      • getDetails

        public String getDetails​(int index)
         A collection of messages providing more details about root causes of the error 
         
        repeated string details = 3;
        Specified by:
        getDetails in interface ErrorMessageOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The details at the given index.
      • getDetailsBytes

        public com.google.protobuf.ByteString getDetailsBytes​(int index)
         A collection of messages providing more details about root causes of the error 
         
        repeated string details = 3;
        Specified by:
        getDetailsBytes in interface ErrorMessageOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the details at the given index.
      • setDetails

        public ErrorMessage.Builder setDetails​(int index,
                                               String value)
         A collection of messages providing more details about root causes of the error 
         
        repeated string details = 3;
        Parameters:
        index - The index to set the value at.
        value - The details to set.
        Returns:
        This builder for chaining.
      • addDetails

        public ErrorMessage.Builder addDetails​(String value)
         A collection of messages providing more details about root causes of the error 
         
        repeated string details = 3;
        Parameters:
        value - The details to add.
        Returns:
        This builder for chaining.
      • addAllDetails

        public ErrorMessage.Builder addAllDetails​(Iterable<String> values)
         A collection of messages providing more details about root causes of the error 
         
        repeated string details = 3;
        Parameters:
        values - The details to add.
        Returns:
        This builder for chaining.
      • clearDetails

        public ErrorMessage.Builder clearDetails()
         A collection of messages providing more details about root causes of the error 
         
        repeated string details = 3;
        Returns:
        This builder for chaining.
      • addDetailsBytes

        public ErrorMessage.Builder addDetailsBytes​(com.google.protobuf.ByteString value)
         A collection of messages providing more details about root causes of the error 
         
        repeated string details = 3;
        Parameters:
        value - The bytes of the details to add.
        Returns:
        This builder for chaining.
      • getErrorCode

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

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

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

        public ErrorMessage.Builder clearErrorCode()
         An Error Code identifying the type of error 
         
        string error_code = 4;
        Returns:
        This builder for chaining.
      • setErrorCodeBytes

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