Class CheckError.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CheckError.Builder>
com.google.api.servicecontrol.v1.CheckError.Builder
All Implemented Interfaces:
CheckErrorOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CheckError

public static final class CheckError.Builder extends com.google.protobuf.GeneratedMessage.Builder<CheckError.Builder> implements CheckErrorOrBuilder
 Defines the errors to be returned in
 [google.api.servicecontrol.v1.CheckResponse.check_errors][google.api.servicecontrol.v1.CheckResponse.check_errors].
 
Protobuf type google.api.servicecontrol.v1.CheckError
  • Method Details

    • 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<CheckError.Builder>
    • clear

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

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

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

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

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

      public CheckError.Builder mergeFrom(CheckError other)
    • isInitialized

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

      public CheckError.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<CheckError.Builder>
      Throws:
      IOException
    • getCodeValue

      public int getCodeValue()
       The error code.
       
      .google.api.servicecontrol.v1.CheckError.Code code = 1;
      Specified by:
      getCodeValue in interface CheckErrorOrBuilder
      Returns:
      The enum numeric value on the wire for code.
    • setCodeValue

      public CheckError.Builder setCodeValue(int value)
       The error code.
       
      .google.api.servicecontrol.v1.CheckError.Code code = 1;
      Parameters:
      value - The enum numeric value on the wire for code to set.
      Returns:
      This builder for chaining.
    • getCode

      public CheckError.Code getCode()
       The error code.
       
      .google.api.servicecontrol.v1.CheckError.Code code = 1;
      Specified by:
      getCode in interface CheckErrorOrBuilder
      Returns:
      The code.
    • setCode

      public CheckError.Builder setCode(CheckError.Code value)
       The error code.
       
      .google.api.servicecontrol.v1.CheckError.Code code = 1;
      Parameters:
      value - The code to set.
      Returns:
      This builder for chaining.
    • clearCode

      public CheckError.Builder clearCode()
       The error code.
       
      .google.api.servicecontrol.v1.CheckError.Code code = 1;
      Returns:
      This builder for chaining.
    • getSubject

      public String getSubject()
       Subject to whom this error applies. See the specific code enum for more
       details on this field. For example:
      
       - "project:<project-id or project-number>"
       - "folder:<folder-id>"
       - "organization:<organization-id>"
       
      string subject = 4;
      Specified by:
      getSubject in interface CheckErrorOrBuilder
      Returns:
      The subject.
    • getSubjectBytes

      public com.google.protobuf.ByteString getSubjectBytes()
       Subject to whom this error applies. See the specific code enum for more
       details on this field. For example:
      
       - "project:<project-id or project-number>"
       - "folder:<folder-id>"
       - "organization:<organization-id>"
       
      string subject = 4;
      Specified by:
      getSubjectBytes in interface CheckErrorOrBuilder
      Returns:
      The bytes for subject.
    • setSubject

      public CheckError.Builder setSubject(String value)
       Subject to whom this error applies. See the specific code enum for more
       details on this field. For example:
      
       - "project:<project-id or project-number>"
       - "folder:<folder-id>"
       - "organization:<organization-id>"
       
      string subject = 4;
      Parameters:
      value - The subject to set.
      Returns:
      This builder for chaining.
    • clearSubject

      public CheckError.Builder clearSubject()
       Subject to whom this error applies. See the specific code enum for more
       details on this field. For example:
      
       - "project:<project-id or project-number>"
       - "folder:<folder-id>"
       - "organization:<organization-id>"
       
      string subject = 4;
      Returns:
      This builder for chaining.
    • setSubjectBytes

      public CheckError.Builder setSubjectBytes(com.google.protobuf.ByteString value)
       Subject to whom this error applies. See the specific code enum for more
       details on this field. For example:
      
       - "project:<project-id or project-number>"
       - "folder:<folder-id>"
       - "organization:<organization-id>"
       
      string subject = 4;
      Parameters:
      value - The bytes for subject to set.
      Returns:
      This builder for chaining.
    • getDetail

      public String getDetail()
       Free-form text providing details on the error cause of the error.
       
      string detail = 2;
      Specified by:
      getDetail in interface CheckErrorOrBuilder
      Returns:
      The detail.
    • getDetailBytes

      public com.google.protobuf.ByteString getDetailBytes()
       Free-form text providing details on the error cause of the error.
       
      string detail = 2;
      Specified by:
      getDetailBytes in interface CheckErrorOrBuilder
      Returns:
      The bytes for detail.
    • setDetail

      public CheckError.Builder setDetail(String value)
       Free-form text providing details on the error cause of the error.
       
      string detail = 2;
      Parameters:
      value - The detail to set.
      Returns:
      This builder for chaining.
    • clearDetail

      public CheckError.Builder clearDetail()
       Free-form text providing details on the error cause of the error.
       
      string detail = 2;
      Returns:
      This builder for chaining.
    • setDetailBytes

      public CheckError.Builder setDetailBytes(com.google.protobuf.ByteString value)
       Free-form text providing details on the error cause of the error.
       
      string detail = 2;
      Parameters:
      value - The bytes for detail to set.
      Returns:
      This builder for chaining.
    • hasStatus

      public boolean hasStatus()
       Contains public information about the check error. If available,
       `status.code` will be non zero and client can propagate it out as public
       error.
       
      .google.rpc.Status status = 3;
      Specified by:
      hasStatus in interface CheckErrorOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public Status getStatus()
       Contains public information about the check error. If available,
       `status.code` will be non zero and client can propagate it out as public
       error.
       
      .google.rpc.Status status = 3;
      Specified by:
      getStatus in interface CheckErrorOrBuilder
      Returns:
      The status.
    • setStatus

      public CheckError.Builder setStatus(Status value)
       Contains public information about the check error. If available,
       `status.code` will be non zero and client can propagate it out as public
       error.
       
      .google.rpc.Status status = 3;
    • setStatus

      public CheckError.Builder setStatus(Status.Builder builderForValue)
       Contains public information about the check error. If available,
       `status.code` will be non zero and client can propagate it out as public
       error.
       
      .google.rpc.Status status = 3;
    • mergeStatus

      public CheckError.Builder mergeStatus(Status value)
       Contains public information about the check error. If available,
       `status.code` will be non zero and client can propagate it out as public
       error.
       
      .google.rpc.Status status = 3;
    • clearStatus

      public CheckError.Builder clearStatus()
       Contains public information about the check error. If available,
       `status.code` will be non zero and client can propagate it out as public
       error.
       
      .google.rpc.Status status = 3;
    • getStatusBuilder

      public Status.Builder getStatusBuilder()
       Contains public information about the check error. If available,
       `status.code` will be non zero and client can propagate it out as public
       error.
       
      .google.rpc.Status status = 3;
    • getStatusOrBuilder

      public StatusOrBuilder getStatusOrBuilder()
       Contains public information about the check error. If available,
       `status.code` will be non zero and client can propagate it out as public
       error.
       
      .google.rpc.Status status = 3;
      Specified by:
      getStatusOrBuilder in interface CheckErrorOrBuilder