Class FeedItemValidationError.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
com.google.ads.googleads.v18.resources.FeedItemValidationError.Builder
- All Implemented Interfaces:
FeedItemValidationErrorOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- FeedItemValidationError
public static final class FeedItemValidationError.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
implements FeedItemValidationErrorOrBuilder
Stores a validation error and the set of offending feed attributes which together are responsible for causing a feed item validation error.Protobuf type
google.ads.googleads.v18.resources.FeedItemValidationError-
Method Summary
Modifier and TypeMethodDescriptionaddAllFeedAttributeIds(Iterable<? extends Long> values) Output only.addFeedAttributeIds(long value) Output only.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Output only.Output only.Output only.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Output only.clone()Output only.com.google.protobuf.ByteStringOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.longgetFeedAttributeIds(int index) Output only.intOutput only.Output only.Output only.intOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(FeedItemValidationError other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setDescription(String value) Output only.setDescriptionBytes(com.google.protobuf.ByteString value) Output only.setExtraInfo(String value) Output only.setExtraInfoBytes(com.google.protobuf.ByteString value) Output only.setFeedAttributeIds(int index, long value) Output only.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Output only.setValidationErrorValue(int value) Output only.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<FeedItemValidationError.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<FeedItemValidationError.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<FeedItemValidationError.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<FeedItemValidationError.Builder>
-
setField
public FeedItemValidationError.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<FeedItemValidationError.Builder>
-
clearField
public FeedItemValidationError.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
-
clearOneof
public FeedItemValidationError.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
-
setRepeatedField
public FeedItemValidationError.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<FeedItemValidationError.Builder>
-
addRepeatedField
public FeedItemValidationError.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<FeedItemValidationError.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FeedItemValidationError.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
-
mergeFrom
public FeedItemValidationError.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<FeedItemValidationError.Builder>- Throws:
IOException
-
getValidationErrorValue
public int getValidationErrorValue()Output only. Error code indicating what validation error was triggered. The description of the error can be found in the 'description' field.
.google.ads.googleads.v18.errors.FeedItemValidationErrorEnum.FeedItemValidationError validation_error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getValidationErrorValuein interfaceFeedItemValidationErrorOrBuilder- Returns:
- The enum numeric value on the wire for validationError.
-
setValidationErrorValue
Output only. Error code indicating what validation error was triggered. The description of the error can be found in the 'description' field.
.google.ads.googleads.v18.errors.FeedItemValidationErrorEnum.FeedItemValidationError validation_error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for validationError to set.- Returns:
- This builder for chaining.
-
getValidationError
Output only. Error code indicating what validation error was triggered. The description of the error can be found in the 'description' field.
.google.ads.googleads.v18.errors.FeedItemValidationErrorEnum.FeedItemValidationError validation_error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getValidationErrorin interfaceFeedItemValidationErrorOrBuilder- Returns:
- The validationError.
-
setValidationError
public FeedItemValidationError.Builder setValidationError(FeedItemValidationErrorEnum.FeedItemValidationError value) Output only. Error code indicating what validation error was triggered. The description of the error can be found in the 'description' field.
.google.ads.googleads.v18.errors.FeedItemValidationErrorEnum.FeedItemValidationError validation_error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The validationError to set.- Returns:
- This builder for chaining.
-
clearValidationError
Output only. Error code indicating what validation error was triggered. The description of the error can be found in the 'description' field.
.google.ads.googleads.v18.errors.FeedItemValidationErrorEnum.FeedItemValidationError validation_error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasDescription
public boolean hasDescription()Output only. The description of the validation error.
optional string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasDescriptionin interfaceFeedItemValidationErrorOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
Output only. The description of the validation error.
optional string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDescriptionin interfaceFeedItemValidationErrorOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Output only. The description of the validation error.
optional string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDescriptionBytesin interfaceFeedItemValidationErrorOrBuilder- Returns:
- The bytes for description.
-
setDescription
Output only. The description of the validation error.
optional string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Output only. The description of the validation error.
optional string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setDescriptionBytes
Output only. The description of the validation error.
optional string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getFeedAttributeIdsList
Output only. Set of feed attributes in the feed item flagged during validation. If empty, no specific feed attributes can be associated with the error (for example, error across the entire feed item).
repeated int64 feed_attribute_ids = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getFeedAttributeIdsListin interfaceFeedItemValidationErrorOrBuilder- Returns:
- A list containing the feedAttributeIds.
-
getFeedAttributeIdsCount
public int getFeedAttributeIdsCount()Output only. Set of feed attributes in the feed item flagged during validation. If empty, no specific feed attributes can be associated with the error (for example, error across the entire feed item).
repeated int64 feed_attribute_ids = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getFeedAttributeIdsCountin interfaceFeedItemValidationErrorOrBuilder- Returns:
- The count of feedAttributeIds.
-
getFeedAttributeIds
public long getFeedAttributeIds(int index) Output only. Set of feed attributes in the feed item flagged during validation. If empty, no specific feed attributes can be associated with the error (for example, error across the entire feed item).
repeated int64 feed_attribute_ids = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getFeedAttributeIdsin interfaceFeedItemValidationErrorOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The feedAttributeIds at the given index.
-
setFeedAttributeIds
Output only. Set of feed attributes in the feed item flagged during validation. If empty, no specific feed attributes can be associated with the error (for example, error across the entire feed item).
repeated int64 feed_attribute_ids = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index to set the value at.value- The feedAttributeIds to set.- Returns:
- This builder for chaining.
-
addFeedAttributeIds
Output only. Set of feed attributes in the feed item flagged during validation. If empty, no specific feed attributes can be associated with the error (for example, error across the entire feed item).
repeated int64 feed_attribute_ids = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The feedAttributeIds to add.- Returns:
- This builder for chaining.
-
addAllFeedAttributeIds
Output only. Set of feed attributes in the feed item flagged during validation. If empty, no specific feed attributes can be associated with the error (for example, error across the entire feed item).
repeated int64 feed_attribute_ids = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
values- The feedAttributeIds to add.- Returns:
- This builder for chaining.
-
clearFeedAttributeIds
Output only. Set of feed attributes in the feed item flagged during validation. If empty, no specific feed attributes can be associated with the error (for example, error across the entire feed item).
repeated int64 feed_attribute_ids = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasExtraInfo
public boolean hasExtraInfo()Output only. Any extra information related to this error which is not captured by validation_error and feed_attribute_id (for example, placeholder field IDs when feed_attribute_id is not mapped). Note that extra_info is not localized.
optional string extra_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasExtraInfoin interfaceFeedItemValidationErrorOrBuilder- Returns:
- Whether the extraInfo field is set.
-
getExtraInfo
Output only. Any extra information related to this error which is not captured by validation_error and feed_attribute_id (for example, placeholder field IDs when feed_attribute_id is not mapped). Note that extra_info is not localized.
optional string extra_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getExtraInfoin interfaceFeedItemValidationErrorOrBuilder- Returns:
- The extraInfo.
-
getExtraInfoBytes
public com.google.protobuf.ByteString getExtraInfoBytes()Output only. Any extra information related to this error which is not captured by validation_error and feed_attribute_id (for example, placeholder field IDs when feed_attribute_id is not mapped). Note that extra_info is not localized.
optional string extra_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getExtraInfoBytesin interfaceFeedItemValidationErrorOrBuilder- Returns:
- The bytes for extraInfo.
-
setExtraInfo
Output only. Any extra information related to this error which is not captured by validation_error and feed_attribute_id (for example, placeholder field IDs when feed_attribute_id is not mapped). Note that extra_info is not localized.
optional string extra_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The extraInfo to set.- Returns:
- This builder for chaining.
-
clearExtraInfo
Output only. Any extra information related to this error which is not captured by validation_error and feed_attribute_id (for example, placeholder field IDs when feed_attribute_id is not mapped). Note that extra_info is not localized.
optional string extra_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setExtraInfoBytes
Output only. Any extra information related to this error which is not captured by validation_error and feed_attribute_id (for example, placeholder field IDs when feed_attribute_id is not mapped). Note that extra_info is not localized.
optional string extra_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for extraInfo to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final FeedItemValidationError.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
-
mergeUnknownFields
public final FeedItemValidationError.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
-