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 Details

    • getDescriptor

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

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

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

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

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

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

      public ChalkError.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ChalkError.Builder>
    • setField

      public ChalkError.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ChalkError.Builder>
    • clearField

      public ChalkError.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ChalkError.Builder>
    • clearOneof

      public ChalkError.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ChalkError.Builder>
    • setRepeatedField

      public ChalkError.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ChalkError.Builder>
    • addRepeatedField

      public ChalkError.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ChalkError.Builder>
    • mergeFrom

      public ChalkError.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<ChalkError.Builder>
    • mergeFrom

      public ChalkError.Builder mergeFrom(ChalkError other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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<ChalkError.Builder>
      Throws:
      IOException
    • getCodeValue

      public int getCodeValue()
      .chalk.common.v1.ErrorCode code = 1 [json_name = "code"];
      Specified by:
      getCodeValue in interface ChalkErrorOrBuilder
      Returns:
      The enum numeric value on the wire for code.
    • setCodeValue

      public ChalkError.Builder setCodeValue(int value)
      .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

      public ErrorCode getCode()
      .chalk.common.v1.ErrorCode code = 1 [json_name = "code"];
      Specified by:
      getCode in interface ChalkErrorOrBuilder
      Returns:
      The code.
    • setCode

      public ChalkError.Builder setCode(ErrorCode value)
      .chalk.common.v1.ErrorCode code = 1 [json_name = "code"];
      Parameters:
      value - The code to set.
      Returns:
      This builder for chaining.
    • clearCode

      public ChalkError.Builder 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:
      getCategoryValue in interface ChalkErrorOrBuilder
      Returns:
      The enum numeric value on the wire for category.
    • setCategoryValue

      public ChalkError.Builder setCategoryValue(int value)
      .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

      public ErrorCodeCategory getCategory()
      .chalk.common.v1.ErrorCodeCategory category = 2 [json_name = "category"];
      Specified by:
      getCategory in interface ChalkErrorOrBuilder
      Returns:
      The category.
    • setCategory

      public ChalkError.Builder setCategory(ErrorCodeCategory value)
      .chalk.common.v1.ErrorCodeCategory category = 2 [json_name = "category"];
      Parameters:
      value - The category to set.
      Returns:
      This builder for chaining.
    • clearCategory

      public ChalkError.Builder clearCategory()
      .chalk.common.v1.ErrorCodeCategory category = 2 [json_name = "category"];
      Returns:
      This builder for chaining.
    • getMessage

      public String getMessage()
       A readable description of the error message.
       
      string message = 3 [json_name = "message"];
      Specified by:
      getMessage in interface ChalkErrorOrBuilder
      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:
      getMessageBytes in interface ChalkErrorOrBuilder
      Returns:
      The bytes for message.
    • setMessage

      public ChalkError.Builder setMessage(String value)
       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

      public ChalkError.Builder clearMessage()
       A readable description of the error message.
       
      string message = 3 [json_name = "message"];
      Returns:
      This builder for chaining.
    • setMessageBytes

      public ChalkError.Builder setMessageBytes(com.google.protobuf.ByteString value)
       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:
      hasDisplayPrimaryKey in interface ChalkErrorOrBuilder
      Returns:
      Whether the displayPrimaryKey field is set.
    • getDisplayPrimaryKey

      public String 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:
      getDisplayPrimaryKey in interface ChalkErrorOrBuilder
      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:
      getDisplayPrimaryKeyBytes in interface ChalkErrorOrBuilder
      Returns:
      The bytes for displayPrimaryKey.
    • setDisplayPrimaryKey

      public ChalkError.Builder setDisplayPrimaryKey(String value)
       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

      public ChalkError.Builder 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

      public ChalkError.Builder setDisplayPrimaryKeyBytes(com.google.protobuf.ByteString value)
       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:
      hasDisplayPrimaryKeyFqn in interface ChalkErrorOrBuilder
      Returns:
      Whether the displayPrimaryKeyFqn field is set.
    • getDisplayPrimaryKeyFqn

      public String 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:
      getDisplayPrimaryKeyFqn in interface ChalkErrorOrBuilder
      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:
      getDisplayPrimaryKeyFqnBytes in interface ChalkErrorOrBuilder
      Returns:
      The bytes for displayPrimaryKeyFqn.
    • setDisplayPrimaryKeyFqn

      public ChalkError.Builder setDisplayPrimaryKeyFqn(String value)
       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

      public ChalkError.Builder 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

      public ChalkError.Builder setDisplayPrimaryKeyFqnBytes(com.google.protobuf.ByteString value)
       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:
      hasException in interface ChalkErrorOrBuilder
      Returns:
      Whether the exception field is set.
    • getException

      public ChalkException getException()
       The exception that caused the failure, if applicable.
       
      optional .chalk.common.v1.ChalkException exception = 103 [json_name = "exception"];
      Specified by:
      getException in interface ChalkErrorOrBuilder
      Returns:
      The exception.
    • setException

      public ChalkError.Builder setException(ChalkException value)
       The exception that caused the failure, if applicable.
       
      optional .chalk.common.v1.ChalkException exception = 103 [json_name = "exception"];
    • setException

      public ChalkError.Builder setException(ChalkException.Builder builderForValue)
       The exception that caused the failure, if applicable.
       
      optional .chalk.common.v1.ChalkException exception = 103 [json_name = "exception"];
    • mergeException

      public ChalkError.Builder mergeException(ChalkException value)
       The exception that caused the failure, if applicable.
       
      optional .chalk.common.v1.ChalkException exception = 103 [json_name = "exception"];
    • clearException

      public ChalkError.Builder clearException()
       The exception that caused the failure, if applicable.
       
      optional .chalk.common.v1.ChalkException exception = 103 [json_name = "exception"];
    • getExceptionBuilder

      public ChalkException.Builder getExceptionBuilder()
       The exception that caused the failure, if applicable.
       
      optional .chalk.common.v1.ChalkException exception = 103 [json_name = "exception"];
    • getExceptionOrBuilder

      public ChalkExceptionOrBuilder getExceptionOrBuilder()
       The exception that caused the failure, if applicable.
       
      optional .chalk.common.v1.ChalkException exception = 103 [json_name = "exception"];
      Specified by:
      getExceptionOrBuilder in interface ChalkErrorOrBuilder
    • 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:
      hasFeature in interface ChalkErrorOrBuilder
      Returns:
      Whether the feature field is set.
    • getFeature

      public String 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:
      getFeature in interface ChalkErrorOrBuilder
      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:
      getFeatureBytes in interface ChalkErrorOrBuilder
      Returns:
      The bytes for feature.
    • setFeature

      public ChalkError.Builder setFeature(String value)
       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

      public ChalkError.Builder 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

      public ChalkError.Builder setFeatureBytes(com.google.protobuf.ByteString value)
       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:
      hasResolver in interface ChalkErrorOrBuilder
      Returns:
      Whether the resolver field is set.
    • getResolver

      public String 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:
      getResolver in interface ChalkErrorOrBuilder
      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:
      getResolverBytes in interface ChalkErrorOrBuilder
      Returns:
      The bytes for resolver.
    • setResolver

      public ChalkError.Builder setResolver(String value)
       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

      public ChalkError.Builder 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

      public ChalkError.Builder setResolverBytes(com.google.protobuf.ByteString value)
       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

      public final ChalkError.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ChalkError.Builder>
    • mergeUnknownFields

      public final ChalkError.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ChalkError.Builder>