All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v17/resources/feed_item.proto

// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.resources;

/**
 * 
 * Policy, validation, and quality approval info for a feed item for the
 * specified placeholder type.
 * 
* * Protobuf type {@code google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo} */ public final class FeedItemPlaceholderPolicyInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo) FeedItemPlaceholderPolicyInfoOrBuilder { private static final long serialVersionUID = 0L; // Use FeedItemPlaceholderPolicyInfo.newBuilder() to construct. private FeedItemPlaceholderPolicyInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FeedItemPlaceholderPolicyInfo() { placeholderTypeEnum_ = 0; feedMappingResourceName_ = ""; reviewStatus_ = 0; approvalStatus_ = 0; policyTopicEntries_ = java.util.Collections.emptyList(); validationStatus_ = 0; validationErrors_ = java.util.Collections.emptyList(); qualityApprovalStatus_ = 0; qualityDisapprovalReasons_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FeedItemPlaceholderPolicyInfo(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.resources.FeedItemProto.internal_static_google_ads_googleads_v17_resources_FeedItemPlaceholderPolicyInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.resources.FeedItemProto.internal_static_google_ads_googleads_v17_resources_FeedItemPlaceholderPolicyInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo.class, com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo.Builder.class); } private int bitField0_; public static final int PLACEHOLDER_TYPE_ENUM_FIELD_NUMBER = 10; private int placeholderTypeEnum_ = 0; /** *
   * Output only. The placeholder type.
   * 
* * .google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type_enum = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for placeholderTypeEnum. */ @java.lang.Override public int getPlaceholderTypeEnumValue() { return placeholderTypeEnum_; } /** *
   * Output only. The placeholder type.
   * 
* * .google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type_enum = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The placeholderTypeEnum. */ @java.lang.Override public com.google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType getPlaceholderTypeEnum() { com.google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType result = com.google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType.forNumber(placeholderTypeEnum_); return result == null ? com.google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType.UNRECOGNIZED : result; } public static final int FEED_MAPPING_RESOURCE_NAME_FIELD_NUMBER = 11; @SuppressWarnings("serial") private volatile java.lang.Object feedMappingResourceName_ = ""; /** *
   * Output only. The FeedMapping that contains the placeholder type.
   * 
* * optional string feed_mapping_resource_name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the feedMappingResourceName field is set. */ @java.lang.Override public boolean hasFeedMappingResourceName() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Output only. The FeedMapping that contains the placeholder type.
   * 
* * optional string feed_mapping_resource_name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The feedMappingResourceName. */ @java.lang.Override public java.lang.String getFeedMappingResourceName() { java.lang.Object ref = feedMappingResourceName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); feedMappingResourceName_ = s; return s; } } /** *
   * Output only. The FeedMapping that contains the placeholder type.
   * 
* * optional string feed_mapping_resource_name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for feedMappingResourceName. */ @java.lang.Override public com.google.protobuf.ByteString getFeedMappingResourceNameBytes() { java.lang.Object ref = feedMappingResourceName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); feedMappingResourceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REVIEW_STATUS_FIELD_NUMBER = 3; private int reviewStatus_ = 0; /** *
   * Output only. Where the placeholder type is in the review process.
   * 
* * .google.ads.googleads.v17.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for reviewStatus. */ @java.lang.Override public int getReviewStatusValue() { return reviewStatus_; } /** *
   * Output only. Where the placeholder type is in the review process.
   * 
* * .google.ads.googleads.v17.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The reviewStatus. */ @java.lang.Override public com.google.ads.googleads.v17.enums.PolicyReviewStatusEnum.PolicyReviewStatus getReviewStatus() { com.google.ads.googleads.v17.enums.PolicyReviewStatusEnum.PolicyReviewStatus result = com.google.ads.googleads.v17.enums.PolicyReviewStatusEnum.PolicyReviewStatus.forNumber(reviewStatus_); return result == null ? com.google.ads.googleads.v17.enums.PolicyReviewStatusEnum.PolicyReviewStatus.UNRECOGNIZED : result; } public static final int APPROVAL_STATUS_FIELD_NUMBER = 4; private int approvalStatus_ = 0; /** *
   * Output only. The overall approval status of the placeholder type,
   * calculated based on the status of its individual policy topic entries.
   * 
* * .google.ads.googleads.v17.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for approvalStatus. */ @java.lang.Override public int getApprovalStatusValue() { return approvalStatus_; } /** *
   * Output only. The overall approval status of the placeholder type,
   * calculated based on the status of its individual policy topic entries.
   * 
* * .google.ads.googleads.v17.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The approvalStatus. */ @java.lang.Override public com.google.ads.googleads.v17.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus getApprovalStatus() { com.google.ads.googleads.v17.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus result = com.google.ads.googleads.v17.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus.forNumber(approvalStatus_); return result == null ? com.google.ads.googleads.v17.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus.UNRECOGNIZED : result; } public static final int POLICY_TOPIC_ENTRIES_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List policyTopicEntries_; /** *
   * Output only. The list of policy findings for the placeholder type.
   * 
* * repeated .google.ads.googleads.v17.common.PolicyTopicEntry policy_topic_entries = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getPolicyTopicEntriesList() { return policyTopicEntries_; } /** *
   * Output only. The list of policy findings for the placeholder type.
   * 
* * repeated .google.ads.googleads.v17.common.PolicyTopicEntry policy_topic_entries = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getPolicyTopicEntriesOrBuilderList() { return policyTopicEntries_; } /** *
   * Output only. The list of policy findings for the placeholder type.
   * 
* * repeated .google.ads.googleads.v17.common.PolicyTopicEntry policy_topic_entries = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getPolicyTopicEntriesCount() { return policyTopicEntries_.size(); } /** *
   * Output only. The list of policy findings for the placeholder type.
   * 
* * repeated .google.ads.googleads.v17.common.PolicyTopicEntry policy_topic_entries = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v17.common.PolicyTopicEntry getPolicyTopicEntries(int index) { return policyTopicEntries_.get(index); } /** *
   * Output only. The list of policy findings for the placeholder type.
   * 
* * repeated .google.ads.googleads.v17.common.PolicyTopicEntry policy_topic_entries = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v17.common.PolicyTopicEntryOrBuilder getPolicyTopicEntriesOrBuilder( int index) { return policyTopicEntries_.get(index); } public static final int VALIDATION_STATUS_FIELD_NUMBER = 6; private int validationStatus_ = 0; /** *
   * Output only. The validation status of the placeholder type.
   * 
* * .google.ads.googleads.v17.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus validation_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for validationStatus. */ @java.lang.Override public int getValidationStatusValue() { return validationStatus_; } /** *
   * Output only. The validation status of the placeholder type.
   * 
* * .google.ads.googleads.v17.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus validation_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The validationStatus. */ @java.lang.Override public com.google.ads.googleads.v17.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus getValidationStatus() { com.google.ads.googleads.v17.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus result = com.google.ads.googleads.v17.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus.forNumber(validationStatus_); return result == null ? com.google.ads.googleads.v17.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus.UNRECOGNIZED : result; } public static final int VALIDATION_ERRORS_FIELD_NUMBER = 7; @SuppressWarnings("serial") private java.util.List validationErrors_; /** *
   * Output only. List of placeholder type validation errors.
   * 
* * repeated .google.ads.googleads.v17.resources.FeedItemValidationError validation_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getValidationErrorsList() { return validationErrors_; } /** *
   * Output only. List of placeholder type validation errors.
   * 
* * repeated .google.ads.googleads.v17.resources.FeedItemValidationError validation_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getValidationErrorsOrBuilderList() { return validationErrors_; } /** *
   * Output only. List of placeholder type validation errors.
   * 
* * repeated .google.ads.googleads.v17.resources.FeedItemValidationError validation_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getValidationErrorsCount() { return validationErrors_.size(); } /** *
   * Output only. List of placeholder type validation errors.
   * 
* * repeated .google.ads.googleads.v17.resources.FeedItemValidationError validation_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v17.resources.FeedItemValidationError getValidationErrors(int index) { return validationErrors_.get(index); } /** *
   * Output only. List of placeholder type validation errors.
   * 
* * repeated .google.ads.googleads.v17.resources.FeedItemValidationError validation_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v17.resources.FeedItemValidationErrorOrBuilder getValidationErrorsOrBuilder( int index) { return validationErrors_.get(index); } public static final int QUALITY_APPROVAL_STATUS_FIELD_NUMBER = 8; private int qualityApprovalStatus_ = 0; /** *
   * Output only. Placeholder type quality evaluation approval status.
   * 
* * .google.ads.googleads.v17.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus quality_approval_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for qualityApprovalStatus. */ @java.lang.Override public int getQualityApprovalStatusValue() { return qualityApprovalStatus_; } /** *
   * Output only. Placeholder type quality evaluation approval status.
   * 
* * .google.ads.googleads.v17.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus quality_approval_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The qualityApprovalStatus. */ @java.lang.Override public com.google.ads.googleads.v17.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus getQualityApprovalStatus() { com.google.ads.googleads.v17.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus result = com.google.ads.googleads.v17.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus.forNumber(qualityApprovalStatus_); return result == null ? com.google.ads.googleads.v17.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus.UNRECOGNIZED : result; } public static final int QUALITY_DISAPPROVAL_REASONS_FIELD_NUMBER = 9; @SuppressWarnings("serial") private java.util.List qualityDisapprovalReasons_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason> qualityDisapprovalReasons_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason>() { public com.google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason convert(java.lang.Integer from) { com.google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason result = com.google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason.forNumber(from); return result == null ? com.google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason.UNRECOGNIZED : result; } }; /** *
   * Output only. List of placeholder type quality evaluation disapproval
   * reasons.
   * 
* * repeated .google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the qualityDisapprovalReasons. */ @java.lang.Override public java.util.List getQualityDisapprovalReasonsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason>(qualityDisapprovalReasons_, qualityDisapprovalReasons_converter_); } /** *
   * Output only. List of placeholder type quality evaluation disapproval
   * reasons.
   * 
* * repeated .google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of qualityDisapprovalReasons. */ @java.lang.Override public int getQualityDisapprovalReasonsCount() { return qualityDisapprovalReasons_.size(); } /** *
   * Output only. List of placeholder type quality evaluation disapproval
   * reasons.
   * 
* * repeated .google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The qualityDisapprovalReasons at the given index. */ @java.lang.Override public com.google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason getQualityDisapprovalReasons(int index) { return qualityDisapprovalReasons_converter_.convert(qualityDisapprovalReasons_.get(index)); } /** *
   * Output only. List of placeholder type quality evaluation disapproval
   * reasons.
   * 
* * repeated .google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the enum numeric values on the wire for qualityDisapprovalReasons. */ @java.lang.Override public java.util.List getQualityDisapprovalReasonsValueList() { return qualityDisapprovalReasons_; } /** *
   * Output only. List of placeholder type quality evaluation disapproval
   * reasons.
   * 
* * repeated .google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The enum numeric value on the wire of qualityDisapprovalReasons at the given index. */ @java.lang.Override public int getQualityDisapprovalReasonsValue(int index) { return qualityDisapprovalReasons_.get(index); } private int qualityDisapprovalReasonsMemoizedSerializedSize; private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (reviewStatus_ != com.google.ads.googleads.v17.enums.PolicyReviewStatusEnum.PolicyReviewStatus.UNSPECIFIED.getNumber()) { output.writeEnum(3, reviewStatus_); } if (approvalStatus_ != com.google.ads.googleads.v17.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus.UNSPECIFIED.getNumber()) { output.writeEnum(4, approvalStatus_); } for (int i = 0; i < policyTopicEntries_.size(); i++) { output.writeMessage(5, policyTopicEntries_.get(i)); } if (validationStatus_ != com.google.ads.googleads.v17.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus.UNSPECIFIED.getNumber()) { output.writeEnum(6, validationStatus_); } for (int i = 0; i < validationErrors_.size(); i++) { output.writeMessage(7, validationErrors_.get(i)); } if (qualityApprovalStatus_ != com.google.ads.googleads.v17.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus.UNSPECIFIED.getNumber()) { output.writeEnum(8, qualityApprovalStatus_); } if (getQualityDisapprovalReasonsList().size() > 0) { output.writeUInt32NoTag(74); output.writeUInt32NoTag(qualityDisapprovalReasonsMemoizedSerializedSize); } for (int i = 0; i < qualityDisapprovalReasons_.size(); i++) { output.writeEnumNoTag(qualityDisapprovalReasons_.get(i)); } if (placeholderTypeEnum_ != com.google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType.UNSPECIFIED.getNumber()) { output.writeEnum(10, placeholderTypeEnum_); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, feedMappingResourceName_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (reviewStatus_ != com.google.ads.googleads.v17.enums.PolicyReviewStatusEnum.PolicyReviewStatus.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, reviewStatus_); } if (approvalStatus_ != com.google.ads.googleads.v17.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, approvalStatus_); } for (int i = 0; i < policyTopicEntries_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, policyTopicEntries_.get(i)); } if (validationStatus_ != com.google.ads.googleads.v17.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, validationStatus_); } for (int i = 0; i < validationErrors_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, validationErrors_.get(i)); } if (qualityApprovalStatus_ != com.google.ads.googleads.v17.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, qualityApprovalStatus_); } { int dataSize = 0; for (int i = 0; i < qualityDisapprovalReasons_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(qualityDisapprovalReasons_.get(i)); } size += dataSize; if (!getQualityDisapprovalReasonsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }qualityDisapprovalReasonsMemoizedSerializedSize = dataSize; } if (placeholderTypeEnum_ != com.google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(10, placeholderTypeEnum_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, feedMappingResourceName_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo)) { return super.equals(obj); } com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo other = (com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo) obj; if (placeholderTypeEnum_ != other.placeholderTypeEnum_) return false; if (hasFeedMappingResourceName() != other.hasFeedMappingResourceName()) return false; if (hasFeedMappingResourceName()) { if (!getFeedMappingResourceName() .equals(other.getFeedMappingResourceName())) return false; } if (reviewStatus_ != other.reviewStatus_) return false; if (approvalStatus_ != other.approvalStatus_) return false; if (!getPolicyTopicEntriesList() .equals(other.getPolicyTopicEntriesList())) return false; if (validationStatus_ != other.validationStatus_) return false; if (!getValidationErrorsList() .equals(other.getValidationErrorsList())) return false; if (qualityApprovalStatus_ != other.qualityApprovalStatus_) return false; if (!qualityDisapprovalReasons_.equals(other.qualityDisapprovalReasons_)) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PLACEHOLDER_TYPE_ENUM_FIELD_NUMBER; hash = (53 * hash) + placeholderTypeEnum_; if (hasFeedMappingResourceName()) { hash = (37 * hash) + FEED_MAPPING_RESOURCE_NAME_FIELD_NUMBER; hash = (53 * hash) + getFeedMappingResourceName().hashCode(); } hash = (37 * hash) + REVIEW_STATUS_FIELD_NUMBER; hash = (53 * hash) + reviewStatus_; hash = (37 * hash) + APPROVAL_STATUS_FIELD_NUMBER; hash = (53 * hash) + approvalStatus_; if (getPolicyTopicEntriesCount() > 0) { hash = (37 * hash) + POLICY_TOPIC_ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getPolicyTopicEntriesList().hashCode(); } hash = (37 * hash) + VALIDATION_STATUS_FIELD_NUMBER; hash = (53 * hash) + validationStatus_; if (getValidationErrorsCount() > 0) { hash = (37 * hash) + VALIDATION_ERRORS_FIELD_NUMBER; hash = (53 * hash) + getValidationErrorsList().hashCode(); } hash = (37 * hash) + QUALITY_APPROVAL_STATUS_FIELD_NUMBER; hash = (53 * hash) + qualityApprovalStatus_; if (getQualityDisapprovalReasonsCount() > 0) { hash = (37 * hash) + QUALITY_DISAPPROVAL_REASONS_FIELD_NUMBER; hash = (53 * hash) + qualityDisapprovalReasons_.hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Policy, validation, and quality approval info for a feed item for the
   * specified placeholder type.
   * 
* * Protobuf type {@code google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo) com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.resources.FeedItemProto.internal_static_google_ads_googleads_v17_resources_FeedItemPlaceholderPolicyInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.resources.FeedItemProto.internal_static_google_ads_googleads_v17_resources_FeedItemPlaceholderPolicyInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo.class, com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo.Builder.class); } // Construct using com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; placeholderTypeEnum_ = 0; feedMappingResourceName_ = ""; reviewStatus_ = 0; approvalStatus_ = 0; if (policyTopicEntriesBuilder_ == null) { policyTopicEntries_ = java.util.Collections.emptyList(); } else { policyTopicEntries_ = null; policyTopicEntriesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); validationStatus_ = 0; if (validationErrorsBuilder_ == null) { validationErrors_ = java.util.Collections.emptyList(); } else { validationErrors_ = null; validationErrorsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); qualityApprovalStatus_ = 0; qualityDisapprovalReasons_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.resources.FeedItemProto.internal_static_google_ads_googleads_v17_resources_FeedItemPlaceholderPolicyInfo_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo getDefaultInstanceForType() { return com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo build() { com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo buildPartial() { com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo result = new com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo result) { if (policyTopicEntriesBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { policyTopicEntries_ = java.util.Collections.unmodifiableList(policyTopicEntries_); bitField0_ = (bitField0_ & ~0x00000010); } result.policyTopicEntries_ = policyTopicEntries_; } else { result.policyTopicEntries_ = policyTopicEntriesBuilder_.build(); } if (validationErrorsBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { validationErrors_ = java.util.Collections.unmodifiableList(validationErrors_); bitField0_ = (bitField0_ & ~0x00000040); } result.validationErrors_ = validationErrors_; } else { result.validationErrors_ = validationErrorsBuilder_.build(); } if (((bitField0_ & 0x00000100) != 0)) { qualityDisapprovalReasons_ = java.util.Collections.unmodifiableList(qualityDisapprovalReasons_); bitField0_ = (bitField0_ & ~0x00000100); } result.qualityDisapprovalReasons_ = qualityDisapprovalReasons_; } private void buildPartial0(com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.placeholderTypeEnum_ = placeholderTypeEnum_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.feedMappingResourceName_ = feedMappingResourceName_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.reviewStatus_ = reviewStatus_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.approvalStatus_ = approvalStatus_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.validationStatus_ = validationStatus_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.qualityApprovalStatus_ = qualityApprovalStatus_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo) { return mergeFrom((com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo other) { if (other == com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo.getDefaultInstance()) return this; if (other.placeholderTypeEnum_ != 0) { setPlaceholderTypeEnumValue(other.getPlaceholderTypeEnumValue()); } if (other.hasFeedMappingResourceName()) { feedMappingResourceName_ = other.feedMappingResourceName_; bitField0_ |= 0x00000002; onChanged(); } if (other.reviewStatus_ != 0) { setReviewStatusValue(other.getReviewStatusValue()); } if (other.approvalStatus_ != 0) { setApprovalStatusValue(other.getApprovalStatusValue()); } if (policyTopicEntriesBuilder_ == null) { if (!other.policyTopicEntries_.isEmpty()) { if (policyTopicEntries_.isEmpty()) { policyTopicEntries_ = other.policyTopicEntries_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensurePolicyTopicEntriesIsMutable(); policyTopicEntries_.addAll(other.policyTopicEntries_); } onChanged(); } } else { if (!other.policyTopicEntries_.isEmpty()) { if (policyTopicEntriesBuilder_.isEmpty()) { policyTopicEntriesBuilder_.dispose(); policyTopicEntriesBuilder_ = null; policyTopicEntries_ = other.policyTopicEntries_; bitField0_ = (bitField0_ & ~0x00000010); policyTopicEntriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPolicyTopicEntriesFieldBuilder() : null; } else { policyTopicEntriesBuilder_.addAllMessages(other.policyTopicEntries_); } } } if (other.validationStatus_ != 0) { setValidationStatusValue(other.getValidationStatusValue()); } if (validationErrorsBuilder_ == null) { if (!other.validationErrors_.isEmpty()) { if (validationErrors_.isEmpty()) { validationErrors_ = other.validationErrors_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureValidationErrorsIsMutable(); validationErrors_.addAll(other.validationErrors_); } onChanged(); } } else { if (!other.validationErrors_.isEmpty()) { if (validationErrorsBuilder_.isEmpty()) { validationErrorsBuilder_.dispose(); validationErrorsBuilder_ = null; validationErrors_ = other.validationErrors_; bitField0_ = (bitField0_ & ~0x00000040); validationErrorsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getValidationErrorsFieldBuilder() : null; } else { validationErrorsBuilder_.addAllMessages(other.validationErrors_); } } } if (other.qualityApprovalStatus_ != 0) { setQualityApprovalStatusValue(other.getQualityApprovalStatusValue()); } if (!other.qualityDisapprovalReasons_.isEmpty()) { if (qualityDisapprovalReasons_.isEmpty()) { qualityDisapprovalReasons_ = other.qualityDisapprovalReasons_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureQualityDisapprovalReasonsIsMutable(); qualityDisapprovalReasons_.addAll(other.qualityDisapprovalReasons_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 24: { reviewStatus_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { approvalStatus_ = input.readEnum(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { com.google.ads.googleads.v17.common.PolicyTopicEntry m = input.readMessage( com.google.ads.googleads.v17.common.PolicyTopicEntry.parser(), extensionRegistry); if (policyTopicEntriesBuilder_ == null) { ensurePolicyTopicEntriesIsMutable(); policyTopicEntries_.add(m); } else { policyTopicEntriesBuilder_.addMessage(m); } break; } // case 42 case 48: { validationStatus_ = input.readEnum(); bitField0_ |= 0x00000020; break; } // case 48 case 58: { com.google.ads.googleads.v17.resources.FeedItemValidationError m = input.readMessage( com.google.ads.googleads.v17.resources.FeedItemValidationError.parser(), extensionRegistry); if (validationErrorsBuilder_ == null) { ensureValidationErrorsIsMutable(); validationErrors_.add(m); } else { validationErrorsBuilder_.addMessage(m); } break; } // case 58 case 64: { qualityApprovalStatus_ = input.readEnum(); bitField0_ |= 0x00000080; break; } // case 64 case 72: { int tmpRaw = input.readEnum(); ensureQualityDisapprovalReasonsIsMutable(); qualityDisapprovalReasons_.add(tmpRaw); break; } // case 72 case 74: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureQualityDisapprovalReasonsIsMutable(); qualityDisapprovalReasons_.add(tmpRaw); } input.popLimit(oldLimit); break; } // case 74 case 80: { placeholderTypeEnum_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 80 case 90: { feedMappingResourceName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int placeholderTypeEnum_ = 0; /** *
     * Output only. The placeholder type.
     * 
* * .google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type_enum = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for placeholderTypeEnum. */ @java.lang.Override public int getPlaceholderTypeEnumValue() { return placeholderTypeEnum_; } /** *
     * Output only. The placeholder type.
     * 
* * .google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type_enum = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for placeholderTypeEnum to set. * @return This builder for chaining. */ public Builder setPlaceholderTypeEnumValue(int value) { placeholderTypeEnum_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Output only. The placeholder type.
     * 
* * .google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type_enum = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The placeholderTypeEnum. */ @java.lang.Override public com.google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType getPlaceholderTypeEnum() { com.google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType result = com.google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType.forNumber(placeholderTypeEnum_); return result == null ? com.google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType.UNRECOGNIZED : result; } /** *
     * Output only. The placeholder type.
     * 
* * .google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type_enum = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The placeholderTypeEnum to set. * @return This builder for chaining. */ public Builder setPlaceholderTypeEnum(com.google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; placeholderTypeEnum_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. The placeholder type.
     * 
* * .google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type_enum = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPlaceholderTypeEnum() { bitField0_ = (bitField0_ & ~0x00000001); placeholderTypeEnum_ = 0; onChanged(); return this; } private java.lang.Object feedMappingResourceName_ = ""; /** *
     * Output only. The FeedMapping that contains the placeholder type.
     * 
* * optional string feed_mapping_resource_name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the feedMappingResourceName field is set. */ public boolean hasFeedMappingResourceName() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Output only. The FeedMapping that contains the placeholder type.
     * 
* * optional string feed_mapping_resource_name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The feedMappingResourceName. */ public java.lang.String getFeedMappingResourceName() { java.lang.Object ref = feedMappingResourceName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); feedMappingResourceName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Output only. The FeedMapping that contains the placeholder type.
     * 
* * optional string feed_mapping_resource_name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for feedMappingResourceName. */ public com.google.protobuf.ByteString getFeedMappingResourceNameBytes() { java.lang.Object ref = feedMappingResourceName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); feedMappingResourceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Output only. The FeedMapping that contains the placeholder type.
     * 
* * optional string feed_mapping_resource_name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The feedMappingResourceName to set. * @return This builder for chaining. */ public Builder setFeedMappingResourceName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } feedMappingResourceName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Output only. The FeedMapping that contains the placeholder type.
     * 
* * optional string feed_mapping_resource_name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearFeedMappingResourceName() { feedMappingResourceName_ = getDefaultInstance().getFeedMappingResourceName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * Output only. The FeedMapping that contains the placeholder type.
     * 
* * optional string feed_mapping_resource_name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for feedMappingResourceName to set. * @return This builder for chaining. */ public Builder setFeedMappingResourceNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); feedMappingResourceName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private int reviewStatus_ = 0; /** *
     * Output only. Where the placeholder type is in the review process.
     * 
* * .google.ads.googleads.v17.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for reviewStatus. */ @java.lang.Override public int getReviewStatusValue() { return reviewStatus_; } /** *
     * Output only. Where the placeholder type is in the review process.
     * 
* * .google.ads.googleads.v17.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for reviewStatus to set. * @return This builder for chaining. */ public Builder setReviewStatusValue(int value) { reviewStatus_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Output only. Where the placeholder type is in the review process.
     * 
* * .google.ads.googleads.v17.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The reviewStatus. */ @java.lang.Override public com.google.ads.googleads.v17.enums.PolicyReviewStatusEnum.PolicyReviewStatus getReviewStatus() { com.google.ads.googleads.v17.enums.PolicyReviewStatusEnum.PolicyReviewStatus result = com.google.ads.googleads.v17.enums.PolicyReviewStatusEnum.PolicyReviewStatus.forNumber(reviewStatus_); return result == null ? com.google.ads.googleads.v17.enums.PolicyReviewStatusEnum.PolicyReviewStatus.UNRECOGNIZED : result; } /** *
     * Output only. Where the placeholder type is in the review process.
     * 
* * .google.ads.googleads.v17.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The reviewStatus to set. * @return This builder for chaining. */ public Builder setReviewStatus(com.google.ads.googleads.v17.enums.PolicyReviewStatusEnum.PolicyReviewStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; reviewStatus_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. Where the placeholder type is in the review process.
     * 
* * .google.ads.googleads.v17.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearReviewStatus() { bitField0_ = (bitField0_ & ~0x00000004); reviewStatus_ = 0; onChanged(); return this; } private int approvalStatus_ = 0; /** *
     * Output only. The overall approval status of the placeholder type,
     * calculated based on the status of its individual policy topic entries.
     * 
* * .google.ads.googleads.v17.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for approvalStatus. */ @java.lang.Override public int getApprovalStatusValue() { return approvalStatus_; } /** *
     * Output only. The overall approval status of the placeholder type,
     * calculated based on the status of its individual policy topic entries.
     * 
* * .google.ads.googleads.v17.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for approvalStatus to set. * @return This builder for chaining. */ public Builder setApprovalStatusValue(int value) { approvalStatus_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Output only. The overall approval status of the placeholder type,
     * calculated based on the status of its individual policy topic entries.
     * 
* * .google.ads.googleads.v17.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The approvalStatus. */ @java.lang.Override public com.google.ads.googleads.v17.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus getApprovalStatus() { com.google.ads.googleads.v17.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus result = com.google.ads.googleads.v17.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus.forNumber(approvalStatus_); return result == null ? com.google.ads.googleads.v17.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus.UNRECOGNIZED : result; } /** *
     * Output only. The overall approval status of the placeholder type,
     * calculated based on the status of its individual policy topic entries.
     * 
* * .google.ads.googleads.v17.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The approvalStatus to set. * @return This builder for chaining. */ public Builder setApprovalStatus(com.google.ads.googleads.v17.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; approvalStatus_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. The overall approval status of the placeholder type,
     * calculated based on the status of its individual policy topic entries.
     * 
* * .google.ads.googleads.v17.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearApprovalStatus() { bitField0_ = (bitField0_ & ~0x00000008); approvalStatus_ = 0; onChanged(); return this; } private java.util.List policyTopicEntries_ = java.util.Collections.emptyList(); private void ensurePolicyTopicEntriesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { policyTopicEntries_ = new java.util.ArrayList(policyTopicEntries_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.common.PolicyTopicEntry, com.google.ads.googleads.v17.common.PolicyTopicEntry.Builder, com.google.ads.googleads.v17.common.PolicyTopicEntryOrBuilder> policyTopicEntriesBuilder_; /** *
     * Output only. The list of policy findings for the placeholder type.
     * 
* * repeated .google.ads.googleads.v17.common.PolicyTopicEntry policy_topic_entries = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getPolicyTopicEntriesList() { if (policyTopicEntriesBuilder_ == null) { return java.util.Collections.unmodifiableList(policyTopicEntries_); } else { return policyTopicEntriesBuilder_.getMessageList(); } } /** *
     * Output only. The list of policy findings for the placeholder type.
     * 
* * repeated .google.ads.googleads.v17.common.PolicyTopicEntry policy_topic_entries = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getPolicyTopicEntriesCount() { if (policyTopicEntriesBuilder_ == null) { return policyTopicEntries_.size(); } else { return policyTopicEntriesBuilder_.getCount(); } } /** *
     * Output only. The list of policy findings for the placeholder type.
     * 
* * repeated .google.ads.googleads.v17.common.PolicyTopicEntry policy_topic_entries = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v17.common.PolicyTopicEntry getPolicyTopicEntries(int index) { if (policyTopicEntriesBuilder_ == null) { return policyTopicEntries_.get(index); } else { return policyTopicEntriesBuilder_.getMessage(index); } } /** *
     * Output only. The list of policy findings for the placeholder type.
     * 
* * repeated .google.ads.googleads.v17.common.PolicyTopicEntry policy_topic_entries = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setPolicyTopicEntries( int index, com.google.ads.googleads.v17.common.PolicyTopicEntry value) { if (policyTopicEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePolicyTopicEntriesIsMutable(); policyTopicEntries_.set(index, value); onChanged(); } else { policyTopicEntriesBuilder_.setMessage(index, value); } return this; } /** *
     * Output only. The list of policy findings for the placeholder type.
     * 
* * repeated .google.ads.googleads.v17.common.PolicyTopicEntry policy_topic_entries = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setPolicyTopicEntries( int index, com.google.ads.googleads.v17.common.PolicyTopicEntry.Builder builderForValue) { if (policyTopicEntriesBuilder_ == null) { ensurePolicyTopicEntriesIsMutable(); policyTopicEntries_.set(index, builderForValue.build()); onChanged(); } else { policyTopicEntriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Output only. The list of policy findings for the placeholder type.
     * 
* * repeated .google.ads.googleads.v17.common.PolicyTopicEntry policy_topic_entries = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addPolicyTopicEntries(com.google.ads.googleads.v17.common.PolicyTopicEntry value) { if (policyTopicEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePolicyTopicEntriesIsMutable(); policyTopicEntries_.add(value); onChanged(); } else { policyTopicEntriesBuilder_.addMessage(value); } return this; } /** *
     * Output only. The list of policy findings for the placeholder type.
     * 
* * repeated .google.ads.googleads.v17.common.PolicyTopicEntry policy_topic_entries = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addPolicyTopicEntries( int index, com.google.ads.googleads.v17.common.PolicyTopicEntry value) { if (policyTopicEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePolicyTopicEntriesIsMutable(); policyTopicEntries_.add(index, value); onChanged(); } else { policyTopicEntriesBuilder_.addMessage(index, value); } return this; } /** *
     * Output only. The list of policy findings for the placeholder type.
     * 
* * repeated .google.ads.googleads.v17.common.PolicyTopicEntry policy_topic_entries = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addPolicyTopicEntries( com.google.ads.googleads.v17.common.PolicyTopicEntry.Builder builderForValue) { if (policyTopicEntriesBuilder_ == null) { ensurePolicyTopicEntriesIsMutable(); policyTopicEntries_.add(builderForValue.build()); onChanged(); } else { policyTopicEntriesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Output only. The list of policy findings for the placeholder type.
     * 
* * repeated .google.ads.googleads.v17.common.PolicyTopicEntry policy_topic_entries = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addPolicyTopicEntries( int index, com.google.ads.googleads.v17.common.PolicyTopicEntry.Builder builderForValue) { if (policyTopicEntriesBuilder_ == null) { ensurePolicyTopicEntriesIsMutable(); policyTopicEntries_.add(index, builderForValue.build()); onChanged(); } else { policyTopicEntriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Output only. The list of policy findings for the placeholder type.
     * 
* * repeated .google.ads.googleads.v17.common.PolicyTopicEntry policy_topic_entries = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllPolicyTopicEntries( java.lang.Iterable values) { if (policyTopicEntriesBuilder_ == null) { ensurePolicyTopicEntriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, policyTopicEntries_); onChanged(); } else { policyTopicEntriesBuilder_.addAllMessages(values); } return this; } /** *
     * Output only. The list of policy findings for the placeholder type.
     * 
* * repeated .google.ads.googleads.v17.common.PolicyTopicEntry policy_topic_entries = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearPolicyTopicEntries() { if (policyTopicEntriesBuilder_ == null) { policyTopicEntries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { policyTopicEntriesBuilder_.clear(); } return this; } /** *
     * Output only. The list of policy findings for the placeholder type.
     * 
* * repeated .google.ads.googleads.v17.common.PolicyTopicEntry policy_topic_entries = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removePolicyTopicEntries(int index) { if (policyTopicEntriesBuilder_ == null) { ensurePolicyTopicEntriesIsMutable(); policyTopicEntries_.remove(index); onChanged(); } else { policyTopicEntriesBuilder_.remove(index); } return this; } /** *
     * Output only. The list of policy findings for the placeholder type.
     * 
* * repeated .google.ads.googleads.v17.common.PolicyTopicEntry policy_topic_entries = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v17.common.PolicyTopicEntry.Builder getPolicyTopicEntriesBuilder( int index) { return getPolicyTopicEntriesFieldBuilder().getBuilder(index); } /** *
     * Output only. The list of policy findings for the placeholder type.
     * 
* * repeated .google.ads.googleads.v17.common.PolicyTopicEntry policy_topic_entries = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v17.common.PolicyTopicEntryOrBuilder getPolicyTopicEntriesOrBuilder( int index) { if (policyTopicEntriesBuilder_ == null) { return policyTopicEntries_.get(index); } else { return policyTopicEntriesBuilder_.getMessageOrBuilder(index); } } /** *
     * Output only. The list of policy findings for the placeholder type.
     * 
* * repeated .google.ads.googleads.v17.common.PolicyTopicEntry policy_topic_entries = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getPolicyTopicEntriesOrBuilderList() { if (policyTopicEntriesBuilder_ != null) { return policyTopicEntriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(policyTopicEntries_); } } /** *
     * Output only. The list of policy findings for the placeholder type.
     * 
* * repeated .google.ads.googleads.v17.common.PolicyTopicEntry policy_topic_entries = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v17.common.PolicyTopicEntry.Builder addPolicyTopicEntriesBuilder() { return getPolicyTopicEntriesFieldBuilder().addBuilder( com.google.ads.googleads.v17.common.PolicyTopicEntry.getDefaultInstance()); } /** *
     * Output only. The list of policy findings for the placeholder type.
     * 
* * repeated .google.ads.googleads.v17.common.PolicyTopicEntry policy_topic_entries = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v17.common.PolicyTopicEntry.Builder addPolicyTopicEntriesBuilder( int index) { return getPolicyTopicEntriesFieldBuilder().addBuilder( index, com.google.ads.googleads.v17.common.PolicyTopicEntry.getDefaultInstance()); } /** *
     * Output only. The list of policy findings for the placeholder type.
     * 
* * repeated .google.ads.googleads.v17.common.PolicyTopicEntry policy_topic_entries = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getPolicyTopicEntriesBuilderList() { return getPolicyTopicEntriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.common.PolicyTopicEntry, com.google.ads.googleads.v17.common.PolicyTopicEntry.Builder, com.google.ads.googleads.v17.common.PolicyTopicEntryOrBuilder> getPolicyTopicEntriesFieldBuilder() { if (policyTopicEntriesBuilder_ == null) { policyTopicEntriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.common.PolicyTopicEntry, com.google.ads.googleads.v17.common.PolicyTopicEntry.Builder, com.google.ads.googleads.v17.common.PolicyTopicEntryOrBuilder>( policyTopicEntries_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); policyTopicEntries_ = null; } return policyTopicEntriesBuilder_; } private int validationStatus_ = 0; /** *
     * Output only. The validation status of the placeholder type.
     * 
* * .google.ads.googleads.v17.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus validation_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for validationStatus. */ @java.lang.Override public int getValidationStatusValue() { return validationStatus_; } /** *
     * Output only. The validation status of the placeholder type.
     * 
* * .google.ads.googleads.v17.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus validation_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for validationStatus to set. * @return This builder for chaining. */ public Builder setValidationStatusValue(int value) { validationStatus_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Output only. The validation status of the placeholder type.
     * 
* * .google.ads.googleads.v17.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus validation_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The validationStatus. */ @java.lang.Override public com.google.ads.googleads.v17.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus getValidationStatus() { com.google.ads.googleads.v17.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus result = com.google.ads.googleads.v17.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus.forNumber(validationStatus_); return result == null ? com.google.ads.googleads.v17.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus.UNRECOGNIZED : result; } /** *
     * Output only. The validation status of the placeholder type.
     * 
* * .google.ads.googleads.v17.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus validation_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The validationStatus to set. * @return This builder for chaining. */ public Builder setValidationStatus(com.google.ads.googleads.v17.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; validationStatus_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. The validation status of the placeholder type.
     * 
* * .google.ads.googleads.v17.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus validation_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearValidationStatus() { bitField0_ = (bitField0_ & ~0x00000020); validationStatus_ = 0; onChanged(); return this; } private java.util.List validationErrors_ = java.util.Collections.emptyList(); private void ensureValidationErrorsIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { validationErrors_ = new java.util.ArrayList(validationErrors_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.resources.FeedItemValidationError, com.google.ads.googleads.v17.resources.FeedItemValidationError.Builder, com.google.ads.googleads.v17.resources.FeedItemValidationErrorOrBuilder> validationErrorsBuilder_; /** *
     * Output only. List of placeholder type validation errors.
     * 
* * repeated .google.ads.googleads.v17.resources.FeedItemValidationError validation_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getValidationErrorsList() { if (validationErrorsBuilder_ == null) { return java.util.Collections.unmodifiableList(validationErrors_); } else { return validationErrorsBuilder_.getMessageList(); } } /** *
     * Output only. List of placeholder type validation errors.
     * 
* * repeated .google.ads.googleads.v17.resources.FeedItemValidationError validation_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getValidationErrorsCount() { if (validationErrorsBuilder_ == null) { return validationErrors_.size(); } else { return validationErrorsBuilder_.getCount(); } } /** *
     * Output only. List of placeholder type validation errors.
     * 
* * repeated .google.ads.googleads.v17.resources.FeedItemValidationError validation_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v17.resources.FeedItemValidationError getValidationErrors(int index) { if (validationErrorsBuilder_ == null) { return validationErrors_.get(index); } else { return validationErrorsBuilder_.getMessage(index); } } /** *
     * Output only. List of placeholder type validation errors.
     * 
* * repeated .google.ads.googleads.v17.resources.FeedItemValidationError validation_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setValidationErrors( int index, com.google.ads.googleads.v17.resources.FeedItemValidationError value) { if (validationErrorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValidationErrorsIsMutable(); validationErrors_.set(index, value); onChanged(); } else { validationErrorsBuilder_.setMessage(index, value); } return this; } /** *
     * Output only. List of placeholder type validation errors.
     * 
* * repeated .google.ads.googleads.v17.resources.FeedItemValidationError validation_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setValidationErrors( int index, com.google.ads.googleads.v17.resources.FeedItemValidationError.Builder builderForValue) { if (validationErrorsBuilder_ == null) { ensureValidationErrorsIsMutable(); validationErrors_.set(index, builderForValue.build()); onChanged(); } else { validationErrorsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Output only. List of placeholder type validation errors.
     * 
* * repeated .google.ads.googleads.v17.resources.FeedItemValidationError validation_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addValidationErrors(com.google.ads.googleads.v17.resources.FeedItemValidationError value) { if (validationErrorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValidationErrorsIsMutable(); validationErrors_.add(value); onChanged(); } else { validationErrorsBuilder_.addMessage(value); } return this; } /** *
     * Output only. List of placeholder type validation errors.
     * 
* * repeated .google.ads.googleads.v17.resources.FeedItemValidationError validation_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addValidationErrors( int index, com.google.ads.googleads.v17.resources.FeedItemValidationError value) { if (validationErrorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValidationErrorsIsMutable(); validationErrors_.add(index, value); onChanged(); } else { validationErrorsBuilder_.addMessage(index, value); } return this; } /** *
     * Output only. List of placeholder type validation errors.
     * 
* * repeated .google.ads.googleads.v17.resources.FeedItemValidationError validation_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addValidationErrors( com.google.ads.googleads.v17.resources.FeedItemValidationError.Builder builderForValue) { if (validationErrorsBuilder_ == null) { ensureValidationErrorsIsMutable(); validationErrors_.add(builderForValue.build()); onChanged(); } else { validationErrorsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Output only. List of placeholder type validation errors.
     * 
* * repeated .google.ads.googleads.v17.resources.FeedItemValidationError validation_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addValidationErrors( int index, com.google.ads.googleads.v17.resources.FeedItemValidationError.Builder builderForValue) { if (validationErrorsBuilder_ == null) { ensureValidationErrorsIsMutable(); validationErrors_.add(index, builderForValue.build()); onChanged(); } else { validationErrorsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Output only. List of placeholder type validation errors.
     * 
* * repeated .google.ads.googleads.v17.resources.FeedItemValidationError validation_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllValidationErrors( java.lang.Iterable values) { if (validationErrorsBuilder_ == null) { ensureValidationErrorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, validationErrors_); onChanged(); } else { validationErrorsBuilder_.addAllMessages(values); } return this; } /** *
     * Output only. List of placeholder type validation errors.
     * 
* * repeated .google.ads.googleads.v17.resources.FeedItemValidationError validation_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearValidationErrors() { if (validationErrorsBuilder_ == null) { validationErrors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { validationErrorsBuilder_.clear(); } return this; } /** *
     * Output only. List of placeholder type validation errors.
     * 
* * repeated .google.ads.googleads.v17.resources.FeedItemValidationError validation_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeValidationErrors(int index) { if (validationErrorsBuilder_ == null) { ensureValidationErrorsIsMutable(); validationErrors_.remove(index); onChanged(); } else { validationErrorsBuilder_.remove(index); } return this; } /** *
     * Output only. List of placeholder type validation errors.
     * 
* * repeated .google.ads.googleads.v17.resources.FeedItemValidationError validation_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v17.resources.FeedItemValidationError.Builder getValidationErrorsBuilder( int index) { return getValidationErrorsFieldBuilder().getBuilder(index); } /** *
     * Output only. List of placeholder type validation errors.
     * 
* * repeated .google.ads.googleads.v17.resources.FeedItemValidationError validation_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v17.resources.FeedItemValidationErrorOrBuilder getValidationErrorsOrBuilder( int index) { if (validationErrorsBuilder_ == null) { return validationErrors_.get(index); } else { return validationErrorsBuilder_.getMessageOrBuilder(index); } } /** *
     * Output only. List of placeholder type validation errors.
     * 
* * repeated .google.ads.googleads.v17.resources.FeedItemValidationError validation_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getValidationErrorsOrBuilderList() { if (validationErrorsBuilder_ != null) { return validationErrorsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(validationErrors_); } } /** *
     * Output only. List of placeholder type validation errors.
     * 
* * repeated .google.ads.googleads.v17.resources.FeedItemValidationError validation_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v17.resources.FeedItemValidationError.Builder addValidationErrorsBuilder() { return getValidationErrorsFieldBuilder().addBuilder( com.google.ads.googleads.v17.resources.FeedItemValidationError.getDefaultInstance()); } /** *
     * Output only. List of placeholder type validation errors.
     * 
* * repeated .google.ads.googleads.v17.resources.FeedItemValidationError validation_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v17.resources.FeedItemValidationError.Builder addValidationErrorsBuilder( int index) { return getValidationErrorsFieldBuilder().addBuilder( index, com.google.ads.googleads.v17.resources.FeedItemValidationError.getDefaultInstance()); } /** *
     * Output only. List of placeholder type validation errors.
     * 
* * repeated .google.ads.googleads.v17.resources.FeedItemValidationError validation_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getValidationErrorsBuilderList() { return getValidationErrorsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.resources.FeedItemValidationError, com.google.ads.googleads.v17.resources.FeedItemValidationError.Builder, com.google.ads.googleads.v17.resources.FeedItemValidationErrorOrBuilder> getValidationErrorsFieldBuilder() { if (validationErrorsBuilder_ == null) { validationErrorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.resources.FeedItemValidationError, com.google.ads.googleads.v17.resources.FeedItemValidationError.Builder, com.google.ads.googleads.v17.resources.FeedItemValidationErrorOrBuilder>( validationErrors_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); validationErrors_ = null; } return validationErrorsBuilder_; } private int qualityApprovalStatus_ = 0; /** *
     * Output only. Placeholder type quality evaluation approval status.
     * 
* * .google.ads.googleads.v17.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus quality_approval_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for qualityApprovalStatus. */ @java.lang.Override public int getQualityApprovalStatusValue() { return qualityApprovalStatus_; } /** *
     * Output only. Placeholder type quality evaluation approval status.
     * 
* * .google.ads.googleads.v17.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus quality_approval_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for qualityApprovalStatus to set. * @return This builder for chaining. */ public Builder setQualityApprovalStatusValue(int value) { qualityApprovalStatus_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * Output only. Placeholder type quality evaluation approval status.
     * 
* * .google.ads.googleads.v17.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus quality_approval_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The qualityApprovalStatus. */ @java.lang.Override public com.google.ads.googleads.v17.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus getQualityApprovalStatus() { com.google.ads.googleads.v17.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus result = com.google.ads.googleads.v17.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus.forNumber(qualityApprovalStatus_); return result == null ? com.google.ads.googleads.v17.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus.UNRECOGNIZED : result; } /** *
     * Output only. Placeholder type quality evaluation approval status.
     * 
* * .google.ads.googleads.v17.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus quality_approval_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The qualityApprovalStatus to set. * @return This builder for chaining. */ public Builder setQualityApprovalStatus(com.google.ads.googleads.v17.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; qualityApprovalStatus_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. Placeholder type quality evaluation approval status.
     * 
* * .google.ads.googleads.v17.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus quality_approval_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearQualityApprovalStatus() { bitField0_ = (bitField0_ & ~0x00000080); qualityApprovalStatus_ = 0; onChanged(); return this; } private java.util.List qualityDisapprovalReasons_ = java.util.Collections.emptyList(); private void ensureQualityDisapprovalReasonsIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { qualityDisapprovalReasons_ = new java.util.ArrayList(qualityDisapprovalReasons_); bitField0_ |= 0x00000100; } } /** *
     * Output only. List of placeholder type quality evaluation disapproval
     * reasons.
     * 
* * repeated .google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the qualityDisapprovalReasons. */ public java.util.List getQualityDisapprovalReasonsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason>(qualityDisapprovalReasons_, qualityDisapprovalReasons_converter_); } /** *
     * Output only. List of placeholder type quality evaluation disapproval
     * reasons.
     * 
* * repeated .google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of qualityDisapprovalReasons. */ public int getQualityDisapprovalReasonsCount() { return qualityDisapprovalReasons_.size(); } /** *
     * Output only. List of placeholder type quality evaluation disapproval
     * reasons.
     * 
* * repeated .google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The qualityDisapprovalReasons at the given index. */ public com.google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason getQualityDisapprovalReasons(int index) { return qualityDisapprovalReasons_converter_.convert(qualityDisapprovalReasons_.get(index)); } /** *
     * Output only. List of placeholder type quality evaluation disapproval
     * reasons.
     * 
* * repeated .google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The qualityDisapprovalReasons to set. * @return This builder for chaining. */ public Builder setQualityDisapprovalReasons( int index, com.google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason value) { if (value == null) { throw new NullPointerException(); } ensureQualityDisapprovalReasonsIsMutable(); qualityDisapprovalReasons_.set(index, value.getNumber()); onChanged(); return this; } /** *
     * Output only. List of placeholder type quality evaluation disapproval
     * reasons.
     * 
* * repeated .google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The qualityDisapprovalReasons to add. * @return This builder for chaining. */ public Builder addQualityDisapprovalReasons(com.google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason value) { if (value == null) { throw new NullPointerException(); } ensureQualityDisapprovalReasonsIsMutable(); qualityDisapprovalReasons_.add(value.getNumber()); onChanged(); return this; } /** *
     * Output only. List of placeholder type quality evaluation disapproval
     * reasons.
     * 
* * repeated .google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The qualityDisapprovalReasons to add. * @return This builder for chaining. */ public Builder addAllQualityDisapprovalReasons( java.lang.Iterable values) { ensureQualityDisapprovalReasonsIsMutable(); for (com.google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason value : values) { qualityDisapprovalReasons_.add(value.getNumber()); } onChanged(); return this; } /** *
     * Output only. List of placeholder type quality evaluation disapproval
     * reasons.
     * 
* * repeated .google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearQualityDisapprovalReasons() { qualityDisapprovalReasons_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** *
     * Output only. List of placeholder type quality evaluation disapproval
     * reasons.
     * 
* * repeated .google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the enum numeric values on the wire for qualityDisapprovalReasons. */ public java.util.List getQualityDisapprovalReasonsValueList() { return java.util.Collections.unmodifiableList(qualityDisapprovalReasons_); } /** *
     * Output only. List of placeholder type quality evaluation disapproval
     * reasons.
     * 
* * repeated .google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The enum numeric value on the wire of qualityDisapprovalReasons at the given index. */ public int getQualityDisapprovalReasonsValue(int index) { return qualityDisapprovalReasons_.get(index); } /** *
     * Output only. List of placeholder type quality evaluation disapproval
     * reasons.
     * 
* * repeated .google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The enum numeric value on the wire for qualityDisapprovalReasons to set. * @return This builder for chaining. */ public Builder setQualityDisapprovalReasonsValue( int index, int value) { ensureQualityDisapprovalReasonsIsMutable(); qualityDisapprovalReasons_.set(index, value); onChanged(); return this; } /** *
     * Output only. List of placeholder type quality evaluation disapproval
     * reasons.
     * 
* * repeated .google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for qualityDisapprovalReasons to add. * @return This builder for chaining. */ public Builder addQualityDisapprovalReasonsValue(int value) { ensureQualityDisapprovalReasonsIsMutable(); qualityDisapprovalReasons_.add(value); onChanged(); return this; } /** *
     * Output only. List of placeholder type quality evaluation disapproval
     * reasons.
     * 
* * repeated .google.ads.googleads.v17.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The enum numeric values on the wire for qualityDisapprovalReasons to add. * @return This builder for chaining. */ public Builder addAllQualityDisapprovalReasonsValue( java.lang.Iterable values) { ensureQualityDisapprovalReasonsIsMutable(); for (int value : values) { qualityDisapprovalReasons_.add(value); } onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo) private static final com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo(); } public static com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FeedItemPlaceholderPolicyInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v17.resources.FeedItemPlaceholderPolicyInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy