Package com.google.api.servicecontrol.v1
Class CheckError.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CheckError.Builder>
com.google.api.servicecontrol.v1.CheckError.Builder
- All Implemented Interfaces:
CheckErrorOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CheckError
public static final class CheckError.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CheckError.Builder>
implements CheckErrorOrBuilder
Defines the errors to be returned in [google.api.servicecontrol.v1.CheckResponse.check_errors][google.api.servicecontrol.v1.CheckResponse.check_errors].Protobuf type
google.api.servicecontrol.v1.CheckError-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The error code.Free-form text providing details on the error cause of the error.Contains public information about the check error.Subject to whom this error applies.getCode()The error code.intThe error code.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorFree-form text providing details on the error cause of the error.com.google.protobuf.ByteStringFree-form text providing details on the error cause of the error.Contains public information about the check error.Contains public information about the check error.Contains public information about the check error.Subject to whom this error applies.com.google.protobuf.ByteStringSubject to whom this error applies.booleanContains public information about the check error.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CheckError other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStatus(Status value) Contains public information about the check error.setCode(CheckError.Code value) The error code.setCodeValue(int value) The error code.Free-form text providing details on the error cause of the error.setDetailBytes(com.google.protobuf.ByteString value) Free-form text providing details on the error cause of the error.Contains public information about the check error.setStatus(Status.Builder builderForValue) Contains public information about the check 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<CheckError.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<CheckError.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<CheckError.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<CheckError.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CheckError.Builder>
-
mergeFrom
public CheckError.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<CheckError.Builder>- Throws:
IOException
-
getCodeValue
public int getCodeValue()The error code.
.google.api.servicecontrol.v1.CheckError.Code code = 1;- Specified by:
getCodeValuein interfaceCheckErrorOrBuilder- Returns:
- The enum numeric value on the wire for code.
-
setCodeValue
The error code.
.google.api.servicecontrol.v1.CheckError.Code code = 1;- Parameters:
value- The enum numeric value on the wire for code to set.- Returns:
- This builder for chaining.
-
getCode
The error code.
.google.api.servicecontrol.v1.CheckError.Code code = 1;- Specified by:
getCodein interfaceCheckErrorOrBuilder- Returns:
- The code.
-
setCode
The error code.
.google.api.servicecontrol.v1.CheckError.Code code = 1;- Parameters:
value- The code to set.- Returns:
- This builder for chaining.
-
clearCode
The error code.
.google.api.servicecontrol.v1.CheckError.Code code = 1;- Returns:
- This builder for chaining.
-
getSubject
Subject to whom this error applies. See the specific code enum for more details on this field. For example: - "project:<project-id or project-number>" - "folder:<folder-id>" - "organization:<organization-id>"
string subject = 4;- Specified by:
getSubjectin interfaceCheckErrorOrBuilder- Returns:
- The subject.
-
getSubjectBytes
public com.google.protobuf.ByteString getSubjectBytes()Subject to whom this error applies. See the specific code enum for more details on this field. For example: - "project:<project-id or project-number>" - "folder:<folder-id>" - "organization:<organization-id>"
string subject = 4;- Specified by:
getSubjectBytesin interfaceCheckErrorOrBuilder- Returns:
- The bytes for subject.
-
setSubject
Subject to whom this error applies. See the specific code enum for more details on this field. For example: - "project:<project-id or project-number>" - "folder:<folder-id>" - "organization:<organization-id>"
string subject = 4;- Parameters:
value- The subject to set.- Returns:
- This builder for chaining.
-
clearSubject
Subject to whom this error applies. See the specific code enum for more details on this field. For example: - "project:<project-id or project-number>" - "folder:<folder-id>" - "organization:<organization-id>"
string subject = 4;- Returns:
- This builder for chaining.
-
setSubjectBytes
Subject to whom this error applies. See the specific code enum for more details on this field. For example: - "project:<project-id or project-number>" - "folder:<folder-id>" - "organization:<organization-id>"
string subject = 4;- Parameters:
value- The bytes for subject to set.- Returns:
- This builder for chaining.
-
getDetail
Free-form text providing details on the error cause of the error.
string detail = 2;- Specified by:
getDetailin interfaceCheckErrorOrBuilder- Returns:
- The detail.
-
getDetailBytes
public com.google.protobuf.ByteString getDetailBytes()Free-form text providing details on the error cause of the error.
string detail = 2;- Specified by:
getDetailBytesin interfaceCheckErrorOrBuilder- Returns:
- The bytes for detail.
-
setDetail
Free-form text providing details on the error cause of the error.
string detail = 2;- Parameters:
value- The detail to set.- Returns:
- This builder for chaining.
-
clearDetail
Free-form text providing details on the error cause of the error.
string detail = 2;- Returns:
- This builder for chaining.
-
setDetailBytes
Free-form text providing details on the error cause of the error.
string detail = 2;- Parameters:
value- The bytes for detail to set.- Returns:
- This builder for chaining.
-
hasStatus
public boolean hasStatus()Contains public information about the check error. If available, `status.code` will be non zero and client can propagate it out as public error.
.google.rpc.Status status = 3;- Specified by:
hasStatusin interfaceCheckErrorOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
Contains public information about the check error. If available, `status.code` will be non zero and client can propagate it out as public error.
.google.rpc.Status status = 3;- Specified by:
getStatusin interfaceCheckErrorOrBuilder- Returns:
- The status.
-
setStatus
Contains public information about the check error. If available, `status.code` will be non zero and client can propagate it out as public error.
.google.rpc.Status status = 3; -
setStatus
Contains public information about the check error. If available, `status.code` will be non zero and client can propagate it out as public error.
.google.rpc.Status status = 3; -
mergeStatus
Contains public information about the check error. If available, `status.code` will be non zero and client can propagate it out as public error.
.google.rpc.Status status = 3; -
clearStatus
Contains public information about the check error. If available, `status.code` will be non zero and client can propagate it out as public error.
.google.rpc.Status status = 3; -
getStatusBuilder
Contains public information about the check error. If available, `status.code` will be non zero and client can propagate it out as public error.
.google.rpc.Status status = 3; -
getStatusOrBuilder
Contains public information about the check error. If available, `status.code` will be non zero and client can propagate it out as public error.
.google.rpc.Status status = 3;- Specified by:
getStatusOrBuilderin interfaceCheckErrorOrBuilder
-