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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<QuotaError.Builder> implements QuotaErrorOrBuilder
Represents error information for [QuotaOperation][google.api.servicecontrol.v1.QuotaOperation].
Protobuf typegoogle.api.servicecontrol.v1.QuotaError
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description QuotaError.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)QuotaErrorbuild()QuotaErrorbuildPartial()QuotaError.Builderclear()QuotaError.BuilderclearCode()Error code.QuotaError.BuilderclearDescription()Free-form text that provides details on the cause of the error.QuotaError.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)QuotaError.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)QuotaError.BuilderclearStatus()Contains additional information about the quota error.QuotaError.BuilderclearSubject()Subject to whom this error applies.QuotaError.Builderclone()QuotaError.CodegetCode()Error code.intgetCodeValue()Error code.QuotaErrorgetDefaultInstanceForType()StringgetDescription()Free-form text that provides details on the cause of the error.com.google.protobuf.ByteStringgetDescriptionBytes()Free-form text that provides details on the cause of the error.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.rpc.StatusgetStatus()Contains additional information about the quota error.com.google.rpc.Status.BuildergetStatusBuilder()Contains additional information about the quota error.com.google.rpc.StatusOrBuildergetStatusOrBuilder()Contains additional information about the quota error.StringgetSubject()Subject to whom this error applies.com.google.protobuf.ByteStringgetSubjectBytes()Subject to whom this error applies.booleanhasStatus()Contains additional information about the quota error.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()QuotaError.BuildermergeFrom(QuotaError other)QuotaError.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)QuotaError.BuildermergeFrom(com.google.protobuf.Message other)QuotaError.BuildermergeStatus(com.google.rpc.Status value)Contains additional information about the quota error.QuotaError.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)QuotaError.BuildersetCode(QuotaError.Code value)Error code.QuotaError.BuildersetCodeValue(int value)Error code.QuotaError.BuildersetDescription(String value)Free-form text that provides details on the cause of the error.QuotaError.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)Free-form text that provides details on the cause of the error.QuotaError.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)QuotaError.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)QuotaError.BuildersetStatus(com.google.rpc.Status value)Contains additional information about the quota error.QuotaError.BuildersetStatus(com.google.rpc.Status.Builder builderForValue)Contains additional information about the quota error.QuotaError.BuildersetSubject(String value)Subject to whom this error applies.QuotaError.BuildersetSubjectBytes(com.google.protobuf.ByteString value)Subject to whom this error applies.QuotaError.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaError.Builder>
-
clear
public QuotaError.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<QuotaError.Builder>
-
getDefaultInstanceForType
public QuotaError getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public QuotaError build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public QuotaError buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public QuotaError.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaError.Builder>
-
setField
public QuotaError.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaError.Builder>
-
clearField
public QuotaError.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaError.Builder>
-
clearOneof
public QuotaError.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaError.Builder>
-
setRepeatedField
public QuotaError.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaError.Builder>
-
addRepeatedField
public QuotaError.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaError.Builder>
-
mergeFrom
public QuotaError.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QuotaError.Builder>
-
mergeFrom
public QuotaError.Builder mergeFrom(QuotaError other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
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:
getCodein interfaceQuotaErrorOrBuilder- 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:
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
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:
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
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:
hasStatusin interfaceQuotaErrorOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
public com.google.rpc.Status 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
public QuotaError.Builder setStatus(com.google.rpc.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(com.google.rpc.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(com.google.rpc.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 com.google.rpc.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 com.google.rpc.StatusOrBuilder 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
-
setUnknownFields
public final QuotaError.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaError.Builder>
-
mergeUnknownFields
public final QuotaError.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaError.Builder>
-
-