Class GoogleAdsError.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<GoogleAdsError.Builder>
com.google.ads.googleads.v18.errors.GoogleAdsError.Builder
- All Implemented Interfaces:
GoogleAdsErrorOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GoogleAdsError
public static final class GoogleAdsError.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<GoogleAdsError.Builder>
implements GoogleAdsErrorOrBuilder
GoogleAds-specific error.Protobuf type
google.ads.googleads.v18.errors.GoogleAdsError-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Additional error details, which are returned by certain error codes.An enum value that indicates which error occurred.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Describes the part of the request proto that caused the error.A human-readable description of the error.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The value that triggered the error.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorAdditional error details, which are returned by certain error codes.Additional error details, which are returned by certain error codes.Additional error details, which are returned by certain error codes.An enum value that indicates which error occurred.An enum value that indicates which error occurred.An enum value that indicates which error occurred.Describes the part of the request proto that caused the error.Describes the part of the request proto that caused the error.Describes the part of the request proto that caused the error.A human-readable description of the error.com.google.protobuf.ByteStringA human-readable description of the error.The value that triggered the error.The value that triggered the error.The value that triggered the error.booleanAdditional error details, which are returned by certain error codes.booleanAn enum value that indicates which error occurred.booleanDescribes the part of the request proto that caused the error.booleanThe value that triggered the error.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeDetails(ErrorDetails value) Additional error details, which are returned by certain error codes.mergeErrorCode(ErrorCode value) An enum value that indicates which error occurred.mergeFrom(GoogleAdsError other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLocation(ErrorLocation value) Describes the part of the request proto that caused the error.mergeTrigger(Value value) The value that triggered the error.final GoogleAdsError.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setDetails(ErrorDetails value) Additional error details, which are returned by certain error codes.setDetails(ErrorDetails.Builder builderForValue) Additional error details, which are returned by certain error codes.setErrorCode(ErrorCode value) An enum value that indicates which error occurred.setErrorCode(ErrorCode.Builder builderForValue) An enum value that indicates which error occurred.setLocation(ErrorLocation value) Describes the part of the request proto that caused the error.setLocation(ErrorLocation.Builder builderForValue) Describes the part of the request proto that caused the error.setMessage(String value) A human-readable description of the error.setMessageBytes(com.google.protobuf.ByteString value) A human-readable description of the error.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTrigger(Value value) The value that triggered the error.setTrigger(Value.Builder builderForValue) The value that triggered the error.final GoogleAdsError.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GoogleAdsError.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<GoogleAdsError.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<GoogleAdsError.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<GoogleAdsError.Builder>
-
setField
public GoogleAdsError.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<GoogleAdsError.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GoogleAdsError.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GoogleAdsError.Builder>
-
setRepeatedField
public GoogleAdsError.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<GoogleAdsError.Builder>
-
addRepeatedField
public GoogleAdsError.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<GoogleAdsError.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GoogleAdsError.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GoogleAdsError.Builder>
-
mergeFrom
public GoogleAdsError.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<GoogleAdsError.Builder>- Throws:
IOException
-
hasErrorCode
public boolean hasErrorCode()An enum value that indicates which error occurred.
.google.ads.googleads.v18.errors.ErrorCode error_code = 1;- Specified by:
hasErrorCodein interfaceGoogleAdsErrorOrBuilder- Returns:
- Whether the errorCode field is set.
-
getErrorCode
An enum value that indicates which error occurred.
.google.ads.googleads.v18.errors.ErrorCode error_code = 1;- Specified by:
getErrorCodein interfaceGoogleAdsErrorOrBuilder- Returns:
- The errorCode.
-
setErrorCode
An enum value that indicates which error occurred.
.google.ads.googleads.v18.errors.ErrorCode error_code = 1; -
setErrorCode
An enum value that indicates which error occurred.
.google.ads.googleads.v18.errors.ErrorCode error_code = 1; -
mergeErrorCode
An enum value that indicates which error occurred.
.google.ads.googleads.v18.errors.ErrorCode error_code = 1; -
clearErrorCode
An enum value that indicates which error occurred.
.google.ads.googleads.v18.errors.ErrorCode error_code = 1; -
getErrorCodeBuilder
An enum value that indicates which error occurred.
.google.ads.googleads.v18.errors.ErrorCode error_code = 1; -
getErrorCodeOrBuilder
An enum value that indicates which error occurred.
.google.ads.googleads.v18.errors.ErrorCode error_code = 1;- Specified by:
getErrorCodeOrBuilderin interfaceGoogleAdsErrorOrBuilder
-
getMessage
A human-readable description of the error.
string message = 2;- Specified by:
getMessagein interfaceGoogleAdsErrorOrBuilder- Returns:
- The message.
-
getMessageBytes
public com.google.protobuf.ByteString getMessageBytes()A human-readable description of the error.
string message = 2;- Specified by:
getMessageBytesin interfaceGoogleAdsErrorOrBuilder- Returns:
- The bytes for message.
-
setMessage
A human-readable description of the error.
string message = 2;- Parameters:
value- The message to set.- Returns:
- This builder for chaining.
-
clearMessage
A human-readable description of the error.
string message = 2;- Returns:
- This builder for chaining.
-
setMessageBytes
A human-readable description of the error.
string message = 2;- Parameters:
value- The bytes for message to set.- Returns:
- This builder for chaining.
-
hasTrigger
public boolean hasTrigger()The value that triggered the error.
.google.ads.googleads.v18.common.Value trigger = 3;- Specified by:
hasTriggerin interfaceGoogleAdsErrorOrBuilder- Returns:
- Whether the trigger field is set.
-
getTrigger
The value that triggered the error.
.google.ads.googleads.v18.common.Value trigger = 3;- Specified by:
getTriggerin interfaceGoogleAdsErrorOrBuilder- Returns:
- The trigger.
-
setTrigger
The value that triggered the error.
.google.ads.googleads.v18.common.Value trigger = 3; -
setTrigger
The value that triggered the error.
.google.ads.googleads.v18.common.Value trigger = 3; -
mergeTrigger
The value that triggered the error.
.google.ads.googleads.v18.common.Value trigger = 3; -
clearTrigger
The value that triggered the error.
.google.ads.googleads.v18.common.Value trigger = 3; -
getTriggerBuilder
The value that triggered the error.
.google.ads.googleads.v18.common.Value trigger = 3; -
getTriggerOrBuilder
The value that triggered the error.
.google.ads.googleads.v18.common.Value trigger = 3;- Specified by:
getTriggerOrBuilderin interfaceGoogleAdsErrorOrBuilder
-
hasLocation
public boolean hasLocation()Describes the part of the request proto that caused the error.
.google.ads.googleads.v18.errors.ErrorLocation location = 4;- Specified by:
hasLocationin interfaceGoogleAdsErrorOrBuilder- Returns:
- Whether the location field is set.
-
getLocation
Describes the part of the request proto that caused the error.
.google.ads.googleads.v18.errors.ErrorLocation location = 4;- Specified by:
getLocationin interfaceGoogleAdsErrorOrBuilder- Returns:
- The location.
-
setLocation
Describes the part of the request proto that caused the error.
.google.ads.googleads.v18.errors.ErrorLocation location = 4; -
setLocation
Describes the part of the request proto that caused the error.
.google.ads.googleads.v18.errors.ErrorLocation location = 4; -
mergeLocation
Describes the part of the request proto that caused the error.
.google.ads.googleads.v18.errors.ErrorLocation location = 4; -
clearLocation
Describes the part of the request proto that caused the error.
.google.ads.googleads.v18.errors.ErrorLocation location = 4; -
getLocationBuilder
Describes the part of the request proto that caused the error.
.google.ads.googleads.v18.errors.ErrorLocation location = 4; -
getLocationOrBuilder
Describes the part of the request proto that caused the error.
.google.ads.googleads.v18.errors.ErrorLocation location = 4;- Specified by:
getLocationOrBuilderin interfaceGoogleAdsErrorOrBuilder
-
hasDetails
public boolean hasDetails()Additional error details, which are returned by certain error codes. Most error codes do not include details.
.google.ads.googleads.v18.errors.ErrorDetails details = 5;- Specified by:
hasDetailsin interfaceGoogleAdsErrorOrBuilder- Returns:
- Whether the details field is set.
-
getDetails
Additional error details, which are returned by certain error codes. Most error codes do not include details.
.google.ads.googleads.v18.errors.ErrorDetails details = 5;- Specified by:
getDetailsin interfaceGoogleAdsErrorOrBuilder- Returns:
- The details.
-
setDetails
Additional error details, which are returned by certain error codes. Most error codes do not include details.
.google.ads.googleads.v18.errors.ErrorDetails details = 5; -
setDetails
Additional error details, which are returned by certain error codes. Most error codes do not include details.
.google.ads.googleads.v18.errors.ErrorDetails details = 5; -
mergeDetails
Additional error details, which are returned by certain error codes. Most error codes do not include details.
.google.ads.googleads.v18.errors.ErrorDetails details = 5; -
clearDetails
Additional error details, which are returned by certain error codes. Most error codes do not include details.
.google.ads.googleads.v18.errors.ErrorDetails details = 5; -
getDetailsBuilder
Additional error details, which are returned by certain error codes. Most error codes do not include details.
.google.ads.googleads.v18.errors.ErrorDetails details = 5; -
getDetailsOrBuilder
Additional error details, which are returned by certain error codes. Most error codes do not include details.
.google.ads.googleads.v18.errors.ErrorDetails details = 5;- Specified by:
getDetailsOrBuilderin interfaceGoogleAdsErrorOrBuilder
-
setUnknownFields
public final GoogleAdsError.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GoogleAdsError.Builder>
-
mergeUnknownFields
public final GoogleAdsError.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GoogleAdsError.Builder>
-