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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
    • getDefaultInstanceForType

      public FeedItemValidationError getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public FeedItemValidationError build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public FeedItemValidationError buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
    • setField

      public FeedItemValidationError.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
    • clearField

      public FeedItemValidationError.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
    • clearOneof

      public FeedItemValidationError.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
    • setRepeatedField

      public FeedItemValidationError.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
    • addRepeatedField

      public FeedItemValidationError.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
    • mergeFrom

      public FeedItemValidationError.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FeedItemValidationError.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getValidationErrorValue in interface FeedItemValidationErrorOrBuilder
      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.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:
      getValidationError in interface FeedItemValidationErrorOrBuilder
      Returns:
      The validationError.
    • setValidationError

       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

      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.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:
      hasDescription in interface FeedItemValidationErrorOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
       Output only. The description of the validation error.
       
      optional string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDescription in interface FeedItemValidationErrorOrBuilder
      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 interface FeedItemValidationErrorOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public FeedItemValidationError.Builder setDescription(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 List<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 interface FeedItemValidationErrorOrBuilder
      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 interface FeedItemValidationErrorOrBuilder
      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 interface FeedItemValidationErrorOrBuilder
      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(Iterable<? extends 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 interface FeedItemValidationErrorOrBuilder
      Returns:
      Whether the extraInfo field is set.
    • getExtraInfo

      public 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 interface FeedItemValidationErrorOrBuilder
      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 interface FeedItemValidationErrorOrBuilder
      Returns:
      The bytes for extraInfo.
    • setExtraInfo

      public FeedItemValidationError.Builder setExtraInfo(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 interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>
    • mergeUnknownFields

      public final FeedItemValidationError.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FeedItemValidationError.Builder>