Package ai.chalk.protos.chalk.common.v1
Class ChalkError.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ChalkError.Builder>
ai.chalk.protos.chalk.common.v1.ChalkError.Builder
- All Implemented Interfaces:
ChalkErrorOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ChalkError
public static final class ChalkError.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ChalkError.Builder>
implements ChalkErrorOrBuilder
Protobuf type
chalk.common.v1.ChalkError-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear().chalk.common.v1.ErrorCodeCategory category = 2 [json_name = "category"];.chalk.common.v1.ErrorCode code = 1 [json_name = "code"];A human-readable hint that can be used to identify the entity that this error is associated with.If provided, can be used to add additional context to 'display_primary_key'.The exception that caused the failure, if applicable.The fully qualified name of the failing feature, e.g.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) A readable description of the error message.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The fully qualified name of the failing resolver, e.g.clone().chalk.common.v1.ErrorCodeCategory category = 2 [json_name = "category"];int.chalk.common.v1.ErrorCodeCategory category = 2 [json_name = "category"];getCode().chalk.common.v1.ErrorCode code = 1 [json_name = "code"];int.chalk.common.v1.ErrorCode code = 1 [json_name = "code"];static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorA human-readable hint that can be used to identify the entity that this error is associated with.com.google.protobuf.ByteStringA human-readable hint that can be used to identify the entity that this error is associated with.If provided, can be used to add additional context to 'display_primary_key'.com.google.protobuf.ByteStringIf provided, can be used to add additional context to 'display_primary_key'.The exception that caused the failure, if applicable.The exception that caused the failure, if applicable.The exception that caused the failure, if applicable.The fully qualified name of the failing feature, e.g.com.google.protobuf.ByteStringThe fully qualified name of the failing feature, e.g.A readable description of the error message.com.google.protobuf.ByteStringA readable description of the error message.The fully qualified name of the failing resolver, e.g.com.google.protobuf.ByteStringThe fully qualified name of the failing resolver, e.g.booleanA human-readable hint that can be used to identify the entity that this error is associated with.booleanIf provided, can be used to add additional context to 'display_primary_key'.booleanThe exception that caused the failure, if applicable.booleanThe fully qualified name of the failing feature, e.g.booleanThe fully qualified name of the failing resolver, e.g.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeException(ChalkException value) The exception that caused the failure, if applicable.mergeFrom(ChalkError other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final ChalkError.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCategory(ErrorCodeCategory value) .chalk.common.v1.ErrorCodeCategory category = 2 [json_name = "category"];setCategoryValue(int value) .chalk.common.v1.ErrorCodeCategory category = 2 [json_name = "category"];.chalk.common.v1.ErrorCode code = 1 [json_name = "code"];setCodeValue(int value) .chalk.common.v1.ErrorCode code = 1 [json_name = "code"];setDisplayPrimaryKey(String value) A human-readable hint that can be used to identify the entity that this error is associated with.setDisplayPrimaryKeyBytes(com.google.protobuf.ByteString value) A human-readable hint that can be used to identify the entity that this error is associated with.setDisplayPrimaryKeyFqn(String value) If provided, can be used to add additional context to 'display_primary_key'.setDisplayPrimaryKeyFqnBytes(com.google.protobuf.ByteString value) If provided, can be used to add additional context to 'display_primary_key'.setException(ChalkException value) The exception that caused the failure, if applicable.setException(ChalkException.Builder builderForValue) The exception that caused the failure, if applicable.setFeature(String value) The fully qualified name of the failing feature, e.g.setFeatureBytes(com.google.protobuf.ByteString value) The fully qualified name of the failing feature, e.g.setMessage(String value) A readable description of the error message.setMessageBytes(com.google.protobuf.ByteString value) A readable description of the error message.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setResolver(String value) The fully qualified name of the failing resolver, e.g.setResolverBytes(com.google.protobuf.ByteString value) The fully qualified name of the failing resolver, e.g.final ChalkError.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ChalkError.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ChalkError.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.GeneratedMessageV3.Builder<ChalkError.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ChalkError.Builder>
-
setField
public ChalkError.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ChalkError.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ChalkError.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ChalkError.Builder>
-
setRepeatedField
public ChalkError.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ChalkError.Builder>
-
addRepeatedField
public ChalkError.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ChalkError.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ChalkError.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ChalkError.Builder>
-
mergeFrom
public ChalkError.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<ChalkError.Builder>- Throws:
IOException
-
getCodeValue
public int getCodeValue().chalk.common.v1.ErrorCode code = 1 [json_name = "code"];- Specified by:
getCodeValuein interfaceChalkErrorOrBuilder- Returns:
- The enum numeric value on the wire for code.
-
setCodeValue
.chalk.common.v1.ErrorCode code = 1 [json_name = "code"];- Parameters:
value- The enum numeric value on the wire for code to set.- Returns:
- This builder for chaining.
-
getCode
.chalk.common.v1.ErrorCode code = 1 [json_name = "code"];- Specified by:
getCodein interfaceChalkErrorOrBuilder- Returns:
- The code.
-
setCode
.chalk.common.v1.ErrorCode code = 1 [json_name = "code"];- Parameters:
value- The code to set.- Returns:
- This builder for chaining.
-
clearCode
.chalk.common.v1.ErrorCode code = 1 [json_name = "code"];- Returns:
- This builder for chaining.
-
getCategoryValue
public int getCategoryValue().chalk.common.v1.ErrorCodeCategory category = 2 [json_name = "category"];- Specified by:
getCategoryValuein interfaceChalkErrorOrBuilder- Returns:
- The enum numeric value on the wire for category.
-
setCategoryValue
.chalk.common.v1.ErrorCodeCategory category = 2 [json_name = "category"];- Parameters:
value- The enum numeric value on the wire for category to set.- Returns:
- This builder for chaining.
-
getCategory
.chalk.common.v1.ErrorCodeCategory category = 2 [json_name = "category"];- Specified by:
getCategoryin interfaceChalkErrorOrBuilder- Returns:
- The category.
-
setCategory
.chalk.common.v1.ErrorCodeCategory category = 2 [json_name = "category"];- Parameters:
value- The category to set.- Returns:
- This builder for chaining.
-
clearCategory
.chalk.common.v1.ErrorCodeCategory category = 2 [json_name = "category"];- Returns:
- This builder for chaining.
-
getMessage
A readable description of the error message.
string message = 3 [json_name = "message"];- Specified by:
getMessagein interfaceChalkErrorOrBuilder- Returns:
- The message.
-
getMessageBytes
public com.google.protobuf.ByteString getMessageBytes()A readable description of the error message.
string message = 3 [json_name = "message"];- Specified by:
getMessageBytesin interfaceChalkErrorOrBuilder- Returns:
- The bytes for message.
-
setMessage
A readable description of the error message.
string message = 3 [json_name = "message"];- Parameters:
value- The message to set.- Returns:
- This builder for chaining.
-
clearMessage
A readable description of the error message.
string message = 3 [json_name = "message"];- Returns:
- This builder for chaining.
-
setMessageBytes
A readable description of the error message.
string message = 3 [json_name = "message"];- Parameters:
value- The bytes for message to set.- Returns:
- This builder for chaining.
-
hasDisplayPrimaryKey
public boolean hasDisplayPrimaryKey()A human-readable hint that can be used to identify the entity that this error is associated with.
optional string display_primary_key = 101 [json_name = "displayPrimaryKey"];- Specified by:
hasDisplayPrimaryKeyin interfaceChalkErrorOrBuilder- Returns:
- Whether the displayPrimaryKey field is set.
-
getDisplayPrimaryKey
A human-readable hint that can be used to identify the entity that this error is associated with.
optional string display_primary_key = 101 [json_name = "displayPrimaryKey"];- Specified by:
getDisplayPrimaryKeyin interfaceChalkErrorOrBuilder- Returns:
- The displayPrimaryKey.
-
getDisplayPrimaryKeyBytes
public com.google.protobuf.ByteString getDisplayPrimaryKeyBytes()A human-readable hint that can be used to identify the entity that this error is associated with.
optional string display_primary_key = 101 [json_name = "displayPrimaryKey"];- Specified by:
getDisplayPrimaryKeyBytesin interfaceChalkErrorOrBuilder- Returns:
- The bytes for displayPrimaryKey.
-
setDisplayPrimaryKey
A human-readable hint that can be used to identify the entity that this error is associated with.
optional string display_primary_key = 101 [json_name = "displayPrimaryKey"];- Parameters:
value- The displayPrimaryKey to set.- Returns:
- This builder for chaining.
-
clearDisplayPrimaryKey
A human-readable hint that can be used to identify the entity that this error is associated with.
optional string display_primary_key = 101 [json_name = "displayPrimaryKey"];- Returns:
- This builder for chaining.
-
setDisplayPrimaryKeyBytes
A human-readable hint that can be used to identify the entity that this error is associated with.
optional string display_primary_key = 101 [json_name = "displayPrimaryKey"];- Parameters:
value- The bytes for displayPrimaryKey to set.- Returns:
- This builder for chaining.
-
hasDisplayPrimaryKeyFqn
public boolean hasDisplayPrimaryKeyFqn()If provided, can be used to add additional context to 'display_primary_key'.
optional string display_primary_key_fqn = 102 [json_name = "displayPrimaryKeyFqn"];- Specified by:
hasDisplayPrimaryKeyFqnin interfaceChalkErrorOrBuilder- Returns:
- Whether the displayPrimaryKeyFqn field is set.
-
getDisplayPrimaryKeyFqn
If provided, can be used to add additional context to 'display_primary_key'.
optional string display_primary_key_fqn = 102 [json_name = "displayPrimaryKeyFqn"];- Specified by:
getDisplayPrimaryKeyFqnin interfaceChalkErrorOrBuilder- Returns:
- The displayPrimaryKeyFqn.
-
getDisplayPrimaryKeyFqnBytes
public com.google.protobuf.ByteString getDisplayPrimaryKeyFqnBytes()If provided, can be used to add additional context to 'display_primary_key'.
optional string display_primary_key_fqn = 102 [json_name = "displayPrimaryKeyFqn"];- Specified by:
getDisplayPrimaryKeyFqnBytesin interfaceChalkErrorOrBuilder- Returns:
- The bytes for displayPrimaryKeyFqn.
-
setDisplayPrimaryKeyFqn
If provided, can be used to add additional context to 'display_primary_key'.
optional string display_primary_key_fqn = 102 [json_name = "displayPrimaryKeyFqn"];- Parameters:
value- The displayPrimaryKeyFqn to set.- Returns:
- This builder for chaining.
-
clearDisplayPrimaryKeyFqn
If provided, can be used to add additional context to 'display_primary_key'.
optional string display_primary_key_fqn = 102 [json_name = "displayPrimaryKeyFqn"];- Returns:
- This builder for chaining.
-
setDisplayPrimaryKeyFqnBytes
If provided, can be used to add additional context to 'display_primary_key'.
optional string display_primary_key_fqn = 102 [json_name = "displayPrimaryKeyFqn"];- Parameters:
value- The bytes for displayPrimaryKeyFqn to set.- Returns:
- This builder for chaining.
-
hasException
public boolean hasException()The exception that caused the failure, if applicable.
optional .chalk.common.v1.ChalkException exception = 103 [json_name = "exception"];- Specified by:
hasExceptionin interfaceChalkErrorOrBuilder- Returns:
- Whether the exception field is set.
-
getException
The exception that caused the failure, if applicable.
optional .chalk.common.v1.ChalkException exception = 103 [json_name = "exception"];- Specified by:
getExceptionin interfaceChalkErrorOrBuilder- Returns:
- The exception.
-
setException
The exception that caused the failure, if applicable.
optional .chalk.common.v1.ChalkException exception = 103 [json_name = "exception"]; -
setException
The exception that caused the failure, if applicable.
optional .chalk.common.v1.ChalkException exception = 103 [json_name = "exception"]; -
mergeException
The exception that caused the failure, if applicable.
optional .chalk.common.v1.ChalkException exception = 103 [json_name = "exception"]; -
clearException
The exception that caused the failure, if applicable.
optional .chalk.common.v1.ChalkException exception = 103 [json_name = "exception"]; -
getExceptionBuilder
The exception that caused the failure, if applicable.
optional .chalk.common.v1.ChalkException exception = 103 [json_name = "exception"]; -
getExceptionOrBuilder
The exception that caused the failure, if applicable.
optional .chalk.common.v1.ChalkException exception = 103 [json_name = "exception"];- Specified by:
getExceptionOrBuilderin interfaceChalkErrorOrBuilder
-
hasFeature
public boolean hasFeature()The fully qualified name of the failing feature, e.g. `user.identity.has_voip_phone`.
optional string feature = 104 [json_name = "feature"];- Specified by:
hasFeaturein interfaceChalkErrorOrBuilder- Returns:
- Whether the feature field is set.
-
getFeature
The fully qualified name of the failing feature, e.g. `user.identity.has_voip_phone`.
optional string feature = 104 [json_name = "feature"];- Specified by:
getFeaturein interfaceChalkErrorOrBuilder- Returns:
- The feature.
-
getFeatureBytes
public com.google.protobuf.ByteString getFeatureBytes()The fully qualified name of the failing feature, e.g. `user.identity.has_voip_phone`.
optional string feature = 104 [json_name = "feature"];- Specified by:
getFeatureBytesin interfaceChalkErrorOrBuilder- Returns:
- The bytes for feature.
-
setFeature
The fully qualified name of the failing feature, e.g. `user.identity.has_voip_phone`.
optional string feature = 104 [json_name = "feature"];- Parameters:
value- The feature to set.- Returns:
- This builder for chaining.
-
clearFeature
The fully qualified name of the failing feature, e.g. `user.identity.has_voip_phone`.
optional string feature = 104 [json_name = "feature"];- Returns:
- This builder for chaining.
-
setFeatureBytes
The fully qualified name of the failing feature, e.g. `user.identity.has_voip_phone`.
optional string feature = 104 [json_name = "feature"];- Parameters:
value- The bytes for feature to set.- Returns:
- This builder for chaining.
-
hasResolver
public boolean hasResolver()The fully qualified name of the failing resolver, e.g. `my.project.get_fraud_score`.
optional string resolver = 105 [json_name = "resolver"];- Specified by:
hasResolverin interfaceChalkErrorOrBuilder- Returns:
- Whether the resolver field is set.
-
getResolver
The fully qualified name of the failing resolver, e.g. `my.project.get_fraud_score`.
optional string resolver = 105 [json_name = "resolver"];- Specified by:
getResolverin interfaceChalkErrorOrBuilder- Returns:
- The resolver.
-
getResolverBytes
public com.google.protobuf.ByteString getResolverBytes()The fully qualified name of the failing resolver, e.g. `my.project.get_fraud_score`.
optional string resolver = 105 [json_name = "resolver"];- Specified by:
getResolverBytesin interfaceChalkErrorOrBuilder- Returns:
- The bytes for resolver.
-
setResolver
The fully qualified name of the failing resolver, e.g. `my.project.get_fraud_score`.
optional string resolver = 105 [json_name = "resolver"];- Parameters:
value- The resolver to set.- Returns:
- This builder for chaining.
-
clearResolver
The fully qualified name of the failing resolver, e.g. `my.project.get_fraud_score`.
optional string resolver = 105 [json_name = "resolver"];- Returns:
- This builder for chaining.
-
setResolverBytes
The fully qualified name of the failing resolver, e.g. `my.project.get_fraud_score`.
optional string resolver = 105 [json_name = "resolver"];- Parameters:
value- The bytes for resolver to set.- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ChalkError.Builder>
-
mergeUnknownFields
public final ChalkError.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ChalkError.Builder>
-