Class QuotaError.Builder

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

public static final class QuotaError.Builder extends com.google.protobuf.GeneratedMessage.Builder<QuotaError.Builder> implements QuotaErrorOrBuilder
 Represents error information for [QuotaOperation][google.api.servicecontrol.v1.QuotaOperation].
 
Protobuf type google.api.servicecontrol.v1.QuotaError
  • 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<QuotaError.Builder>
    • clear

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

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

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

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

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

      public QuotaError.Builder mergeFrom(QuotaError other)
    • isInitialized

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

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

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

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

      public QuotaError.Code getCode()
       Error code.
       
      .google.api.servicecontrol.v1.QuotaError.Code code = 1;
      Specified by:
      getCode in interface QuotaErrorOrBuilder
      Returns:
      The code.
    • setCode

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

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

      public String getSubject()
       Subject to whom this error applies. See the specific enum for more details
       on this field. For example, "clientip:<ip address of client>" or
       "project:<Google developer project id>".
       
      string subject = 2;
      Specified by:
      getSubject in interface QuotaErrorOrBuilder
      Returns:
      The subject.
    • getSubjectBytes

      public com.google.protobuf.ByteString getSubjectBytes()
       Subject to whom this error applies. See the specific enum for more details
       on this field. For example, "clientip:<ip address of client>" or
       "project:<Google developer project id>".
       
      string subject = 2;
      Specified by:
      getSubjectBytes in interface QuotaErrorOrBuilder
      Returns:
      The bytes for subject.
    • setSubject

      public QuotaError.Builder setSubject(String value)
       Subject to whom this error applies. See the specific enum for more details
       on this field. For example, "clientip:<ip address of client>" or
       "project:<Google developer project id>".
       
      string subject = 2;
      Parameters:
      value - The subject to set.
      Returns:
      This builder for chaining.
    • clearSubject

      public QuotaError.Builder clearSubject()
       Subject to whom this error applies. See the specific enum for more details
       on this field. For example, "clientip:<ip address of client>" or
       "project:<Google developer project id>".
       
      string subject = 2;
      Returns:
      This builder for chaining.
    • setSubjectBytes

      public QuotaError.Builder setSubjectBytes(com.google.protobuf.ByteString value)
       Subject to whom this error applies. See the specific enum for more details
       on this field. For example, "clientip:<ip address of client>" or
       "project:<Google developer project id>".
       
      string subject = 2;
      Parameters:
      value - The bytes for subject to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Free-form text that provides details on the cause of the error.
       
      string description = 3;
      Specified by:
      getDescription in interface QuotaErrorOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Free-form text that provides details on the cause of the error.
       
      string description = 3;
      Specified by:
      getDescriptionBytes in interface QuotaErrorOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public QuotaError.Builder setDescription(String value)
       Free-form text that provides details on the cause of the error.
       
      string description = 3;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public QuotaError.Builder clearDescription()
       Free-form text that provides details on the cause of the error.
       
      string description = 3;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public QuotaError.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Free-form text that provides details on the cause of the error.
       
      string description = 3;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasStatus

      public boolean hasStatus()
       Contains additional information about the quota error.
       If available, `status.code` will be non zero.
       
      .google.rpc.Status status = 4;
      Specified by:
      hasStatus in interface QuotaErrorOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public Status getStatus()
       Contains additional information about the quota error.
       If available, `status.code` will be non zero.
       
      .google.rpc.Status status = 4;
      Specified by:
      getStatus in interface QuotaErrorOrBuilder
      Returns:
      The status.
    • setStatus

      public QuotaError.Builder setStatus(Status value)
       Contains additional information about the quota error.
       If available, `status.code` will be non zero.
       
      .google.rpc.Status status = 4;
    • setStatus

      public QuotaError.Builder setStatus(Status.Builder builderForValue)
       Contains additional information about the quota error.
       If available, `status.code` will be non zero.
       
      .google.rpc.Status status = 4;
    • mergeStatus

      public QuotaError.Builder mergeStatus(Status value)
       Contains additional information about the quota error.
       If available, `status.code` will be non zero.
       
      .google.rpc.Status status = 4;
    • clearStatus

      public QuotaError.Builder clearStatus()
       Contains additional information about the quota error.
       If available, `status.code` will be non zero.
       
      .google.rpc.Status status = 4;
    • getStatusBuilder

      public Status.Builder getStatusBuilder()
       Contains additional information about the quota error.
       If available, `status.code` will be non zero.
       
      .google.rpc.Status status = 4;
    • getStatusOrBuilder

      public StatusOrBuilder getStatusOrBuilder()
       Contains additional information about the quota error.
       If available, `status.code` will be non zero.
       
      .google.rpc.Status status = 4;
      Specified by:
      getStatusOrBuilder in interface QuotaErrorOrBuilder