Class 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.GeneratedMessageV3.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 Detail

      • 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<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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

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

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

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

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • 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 com.google.rpc.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​(com.google.rpc.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​(com.google.rpc.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​(com.google.rpc.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 com.google.rpc.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 com.google.rpc.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
      • setUnknownFields

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

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