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.v13.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
,java.lang.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 typegoogle.ads.googleads.v13.resources.FeedItemValidationError
-
-
Method Summary
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
-
clear
public FeedItemValidationError.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
-
getDefaultInstanceForType
public FeedItemValidationError getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public FeedItemValidationError build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public FeedItemValidationError buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public FeedItemValidationError.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
-
setField
public FeedItemValidationError.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
-
clearField
public FeedItemValidationError.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
-
clearOneof
public FeedItemValidationError.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
-
setRepeatedField
public FeedItemValidationError.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
-
addRepeatedField
public FeedItemValidationError.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
-
mergeFrom
public FeedItemValidationError.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<FeedItemValidationError.Builder>
-
mergeFrom
public FeedItemValidationError.Builder mergeFrom(FeedItemValidationError other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
-
mergeFrom
public FeedItemValidationError.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<FeedItemValidationError.Builder>
- Throws:
java.io.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.v13.errors.FeedItemValidationErrorEnum.FeedItemValidationError validation_error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getValidationErrorValue
in interfaceFeedItemValidationErrorOrBuilder
- Returns:
- The enum numeric value on the wire for validationError.
-
setValidationErrorValue
public FeedItemValidationError.Builder setValidationErrorValue(int 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.v13.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
public FeedItemValidationErrorEnum.FeedItemValidationError 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.v13.errors.FeedItemValidationErrorEnum.FeedItemValidationError validation_error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getValidationError
in 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.v13.errors.FeedItemValidationErrorEnum.FeedItemValidationError validation_error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The validationError to set.- Returns:
- This builder for chaining.
-
clearValidationError
public FeedItemValidationError.Builder 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.v13.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:
hasDescription
in interfaceFeedItemValidationErrorOrBuilder
- Returns:
- Whether the description field is set.
-
getDescription
public java.lang.String getDescription()
Output only. The description of the validation error.
optional string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDescription
in 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:
getDescriptionBytes
in interfaceFeedItemValidationErrorOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public FeedItemValidationError.Builder setDescription(java.lang.String value)
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
public FeedItemValidationError.Builder 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
public FeedItemValidationError.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
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
public java.util.List<java.lang.Long> 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:
getFeedAttributeIdsList
in 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:
getFeedAttributeIdsCount
in 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:
getFeedAttributeIds
in interfaceFeedItemValidationErrorOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The feedAttributeIds at the given index.
-
setFeedAttributeIds
public FeedItemValidationError.Builder setFeedAttributeIds(int index, long value)
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
public FeedItemValidationError.Builder addFeedAttributeIds(long value)
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
public FeedItemValidationError.Builder addAllFeedAttributeIds(java.lang.Iterable<? extends java.lang.Long> values)
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
public FeedItemValidationError.Builder 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:
hasExtraInfo
in interfaceFeedItemValidationErrorOrBuilder
- Returns:
- Whether the extraInfo field is set.
-
getExtraInfo
public java.lang.String 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:
getExtraInfo
in 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:
getExtraInfoBytes
in interfaceFeedItemValidationErrorOrBuilder
- Returns:
- The bytes for extraInfo.
-
setExtraInfo
public FeedItemValidationError.Builder setExtraInfo(java.lang.String value)
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
public FeedItemValidationError.Builder 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
public FeedItemValidationError.Builder setExtraInfoBytes(com.google.protobuf.ByteString value)
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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
-
mergeUnknownFields
public final FeedItemValidationError.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
-
-