Class QuotaFailure.Violation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<QuotaFailure.Violation,QuotaFailure.Violation.Builder>
com.google.rpc.QuotaFailure.Violation.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, QuotaFailure.ViolationOrBuilder, Cloneable
Enclosing class:
QuotaFailure.Violation

public static final class QuotaFailure.Violation.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<QuotaFailure.Violation,QuotaFailure.Violation.Builder> implements QuotaFailure.ViolationOrBuilder
 A message type used to describe a single quota violation.  For example, a
 daily quota or a custom quota that was exceeded.
 
Protobuf type google.rpc.QuotaFailure.Violation
  • Method Details

    • getSubject

      public String getSubject()
       The subject on which the quota check failed.
       For example, "clientip:<ip address of client>" or "project:<Google
       developer project id>".
       
      string subject = 1 [json_name = "subject"];
      Specified by:
      getSubject in interface QuotaFailure.ViolationOrBuilder
      Returns:
      The subject.
    • getSubjectBytes

      public com.google.protobuf.ByteString getSubjectBytes()
       The subject on which the quota check failed.
       For example, "clientip:<ip address of client>" or "project:<Google
       developer project id>".
       
      string subject = 1 [json_name = "subject"];
      Specified by:
      getSubjectBytes in interface QuotaFailure.ViolationOrBuilder
      Returns:
      The bytes for subject.
    • setSubject

      public QuotaFailure.Violation.Builder setSubject(String value)
       The subject on which the quota check failed.
       For example, "clientip:<ip address of client>" or "project:<Google
       developer project id>".
       
      string subject = 1 [json_name = "subject"];
      Parameters:
      value - The subject to set.
      Returns:
      This builder for chaining.
    • clearSubject

      public QuotaFailure.Violation.Builder clearSubject()
       The subject on which the quota check failed.
       For example, "clientip:<ip address of client>" or "project:<Google
       developer project id>".
       
      string subject = 1 [json_name = "subject"];
      Returns:
      This builder for chaining.
    • setSubjectBytes

      public QuotaFailure.Violation.Builder setSubjectBytes(com.google.protobuf.ByteString value)
       The subject on which the quota check failed.
       For example, "clientip:<ip address of client>" or "project:<Google
       developer project id>".
       
      string subject = 1 [json_name = "subject"];
      Parameters:
      value - The bytes for subject to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       A description of how the quota check failed. Clients can use this
       description to find more about the quota configuration in the service's
       public documentation, or find the relevant quota limit to adjust through
       developer console.
      
       For example: "Service disabled" or "Daily Limit for read operations
       exceeded".
       
      string description = 2 [json_name = "description"];
      Specified by:
      getDescription in interface QuotaFailure.ViolationOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       A description of how the quota check failed. Clients can use this
       description to find more about the quota configuration in the service's
       public documentation, or find the relevant quota limit to adjust through
       developer console.
      
       For example: "Service disabled" or "Daily Limit for read operations
       exceeded".
       
      string description = 2 [json_name = "description"];
      Specified by:
      getDescriptionBytes in interface QuotaFailure.ViolationOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public QuotaFailure.Violation.Builder setDescription(String value)
       A description of how the quota check failed. Clients can use this
       description to find more about the quota configuration in the service's
       public documentation, or find the relevant quota limit to adjust through
       developer console.
      
       For example: "Service disabled" or "Daily Limit for read operations
       exceeded".
       
      string description = 2 [json_name = "description"];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public QuotaFailure.Violation.Builder clearDescription()
       A description of how the quota check failed. Clients can use this
       description to find more about the quota configuration in the service's
       public documentation, or find the relevant quota limit to adjust through
       developer console.
      
       For example: "Service disabled" or "Daily Limit for read operations
       exceeded".
       
      string description = 2 [json_name = "description"];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public QuotaFailure.Violation.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       A description of how the quota check failed. Clients can use this
       description to find more about the quota configuration in the service's
       public documentation, or find the relevant quota limit to adjust through
       developer console.
      
       For example: "Service disabled" or "Daily Limit for read operations
       exceeded".
       
      string description = 2 [json_name = "description"];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.