- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<ErrorMessage.Builder>
-
- io.axoniq.axonserver.grpc.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 typeio.axoniq.axonserver.grpc.ErrorMessage
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorMessage.BuilderaddAllDetails(Iterable<String> values)A collection of messages providing more details about root causes of the errorErrorMessage.BuilderaddDetails(String value)A collection of messages providing more details about root causes of the errorErrorMessage.BuilderaddDetailsBytes(com.google.protobuf.ByteString value)A collection of messages providing more details about root causes of the errorErrorMessagebuild()ErrorMessagebuildPartial()ErrorMessage.Builderclear()ErrorMessage.BuilderclearDetails()A collection of messages providing more details about root causes of the errorErrorMessage.BuilderclearErrorCode()An Error Code identifying the type of errorErrorMessage.BuilderclearLocation()A description of the location (client component, server) where the error occurredErrorMessage.BuilderclearMessage()A human readable message explaining the errorErrorMessagegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDetails(int index)A collection of messages providing more details about root causes of the errorcom.google.protobuf.ByteStringgetDetailsBytes(int index)A collection of messages providing more details about root causes of the errorintgetDetailsCount()A collection of messages providing more details about root causes of the errorcom.google.protobuf.ProtocolStringListgetDetailsList()A collection of messages providing more details about root causes of the errorStringgetErrorCode()An Error Code identifying the type of errorcom.google.protobuf.ByteStringgetErrorCodeBytes()An Error Code identifying the type of errorStringgetLocation()A description of the location (client component, server) where the error occurredcom.google.protobuf.ByteStringgetLocationBytes()A description of the location (client component, server) where the error occurredStringgetMessage()A human readable message explaining the errorcom.google.protobuf.ByteStringgetMessageBytes()A human readable message explaining the errorprotected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ErrorMessage.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ErrorMessage.BuildermergeFrom(com.google.protobuf.Message other)ErrorMessage.BuildermergeFrom(ErrorMessage other)ErrorMessage.BuildersetDetails(int index, String value)A collection of messages providing more details about root causes of the errorErrorMessage.BuildersetErrorCode(String value)An Error Code identifying the type of errorErrorMessage.BuildersetErrorCodeBytes(com.google.protobuf.ByteString value)An Error Code identifying the type of errorErrorMessage.BuildersetLocation(String value)A description of the location (client component, server) where the error occurredErrorMessage.BuildersetLocationBytes(com.google.protobuf.ByteString value)A description of the location (client component, server) where the error occurredErrorMessage.BuildersetMessage(String value)A human readable message explaining the errorErrorMessage.BuildersetMessageBytes(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 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<ErrorMessage.Builder>
-
clear
public ErrorMessage.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<ErrorMessage.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<ErrorMessage.Builder>
-
getDefaultInstanceForType
public ErrorMessage getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ErrorMessage build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ErrorMessage buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public ErrorMessage.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ErrorMessage.Builder>
-
mergeFrom
public ErrorMessage.Builder mergeFrom(ErrorMessage other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ErrorMessage.Builder>- Throws:
IOException
-
getMessage
public String getMessage()
A human readable message explaining the error
string message = 1;- Specified by:
getMessagein interfaceErrorMessageOrBuilder- Returns:
- The message.
-
getMessageBytes
public com.google.protobuf.ByteString getMessageBytes()
A human readable message explaining the error
string message = 1;- Specified by:
getMessageBytesin interfaceErrorMessageOrBuilder- 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:
getLocationin interfaceErrorMessageOrBuilder- 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:
getLocationBytesin interfaceErrorMessageOrBuilder- 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:
getDetailsListin interfaceErrorMessageOrBuilder- 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:
getDetailsCountin interfaceErrorMessageOrBuilder- 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:
getDetailsin interfaceErrorMessageOrBuilder- 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:
getDetailsBytesin interfaceErrorMessageOrBuilder- 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:
getErrorCodein interfaceErrorMessageOrBuilder- Returns:
- The errorCode.
-
getErrorCodeBytes
public com.google.protobuf.ByteString getErrorCodeBytes()
An Error Code identifying the type of error
string error_code = 4;- Specified by:
getErrorCodeBytesin interfaceErrorMessageOrBuilder- 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.
-
-