Package com.google.api.servicecontrol.v1
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Error code.Free-form text that provides details on the cause of the error.Contains additional information about the quota error.Subject to whom this error applies.getCode()Error code.intError code.Free-form text that provides details on the cause of the error.com.google.protobuf.ByteStringFree-form text that provides details on the cause of the error.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorContains additional information about the quota error.Contains additional information about the quota error.Contains additional information about the quota error.Subject to whom this error applies.com.google.protobuf.ByteStringSubject to whom this error applies.booleanContains additional information about the quota error.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(QuotaError other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStatus(Status value) Contains additional information about the quota error.setCode(QuotaError.Code value) Error code.setCodeValue(int value) Error code.setDescription(String value) Free-form text that provides details on the cause of the error.setDescriptionBytes(com.google.protobuf.ByteString value) Free-form text that provides details on the cause of the error.Contains additional information about the quota error.setStatus(Status.Builder builderForValue) Contains additional information about the quota error.setSubject(String value) Subject to whom this error applies.setSubjectBytes(com.google.protobuf.ByteString value) Subject to whom this error applies.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<QuotaError.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<QuotaError.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<QuotaError.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QuotaError.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QuotaError.Builder>- Throws:
IOException
-
getCodeValue
public int getCodeValue()Error code.
.google.api.servicecontrol.v1.QuotaError.Code code = 1;- Specified by:
getCodeValuein interfaceQuotaErrorOrBuilder- Returns:
- The enum numeric value on the wire for code.
-
setCodeValue
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
Error code.
.google.api.servicecontrol.v1.QuotaError.Code code = 1;- Specified by:
getCodein interfaceQuotaErrorOrBuilder- Returns:
- The code.
-
setCode
Error code.
.google.api.servicecontrol.v1.QuotaError.Code code = 1;- Parameters:
value- The code to set.- Returns:
- This builder for chaining.
-
clearCode
Error code.
.google.api.servicecontrol.v1.QuotaError.Code code = 1;- Returns:
- This builder for chaining.
-
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:
getSubjectin interfaceQuotaErrorOrBuilder- 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:
getSubjectBytesin interfaceQuotaErrorOrBuilder- Returns:
- The bytes for subject.
-
setSubject
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
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
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
Free-form text that provides details on the cause of the error.
string description = 3;- Specified by:
getDescriptionin interfaceQuotaErrorOrBuilder- 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:
getDescriptionBytesin interfaceQuotaErrorOrBuilder- Returns:
- The bytes for description.
-
setDescription
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
Free-form text that provides details on the cause of the error.
string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
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:
hasStatusin interfaceQuotaErrorOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
Contains additional information about the quota error. If available, `status.code` will be non zero.
.google.rpc.Status status = 4;- Specified by:
getStatusin interfaceQuotaErrorOrBuilder- Returns:
- The status.
-
setStatus
Contains additional information about the quota error. If available, `status.code` will be non zero.
.google.rpc.Status status = 4; -
setStatus
Contains additional information about the quota error. If available, `status.code` will be non zero.
.google.rpc.Status status = 4; -
mergeStatus
Contains additional information about the quota error. If available, `status.code` will be non zero.
.google.rpc.Status status = 4; -
clearStatus
Contains additional information about the quota error. If available, `status.code` will be non zero.
.google.rpc.Status status = 4; -
getStatusBuilder
Contains additional information about the quota error. If available, `status.code` will be non zero.
.google.rpc.Status status = 4; -
getStatusOrBuilder
Contains additional information about the quota error. If available, `status.code` will be non zero.
.google.rpc.Status status = 4;- Specified by:
getStatusOrBuilderin interfaceQuotaErrorOrBuilder
-