Package com.google.rpc
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
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionA description of how the quota check failed.The subject on which the quota check failed.A description of how the quota check failed.com.google.protobuf.ByteString
A description of how the quota check failed.The subject on which the quota check failed.com.google.protobuf.ByteString
The subject on which the quota check failed.setDescription
(String value) A description of how the quota check failed.setDescriptionBytes
(com.google.protobuf.ByteString value) A description of how the quota check failed.setSubject
(String value) The subject on which the quota check failed.setSubjectBytes
(com.google.protobuf.ByteString value) The subject on which the quota check failed.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
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 interfaceQuotaFailure.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 interfaceQuotaFailure.ViolationOrBuilder
- Returns:
- The bytes for subject.
-
setSubject
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
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
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
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 interfaceQuotaFailure.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 interfaceQuotaFailure.ViolationOrBuilder
- Returns:
- The bytes for description.
-
setDescription
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
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
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.
-