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

com.google.shopping.merchant.promotions.v1beta.PromotionStatus Maven / Gradle / Ivy

There is a newer version: 0.5.0
Show newest version
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/shopping/merchant/promotions/v1beta/promotions_common.proto

// Protobuf Java Version: 3.25.3
package com.google.shopping.merchant.promotions.v1beta;

/**
 *
 *
 * 
 * The status of the promotion.
 * 
* * Protobuf type {@code google.shopping.merchant.promotions.v1beta.PromotionStatus} */ public final class PromotionStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.shopping.merchant.promotions.v1beta.PromotionStatus) PromotionStatusOrBuilder { private static final long serialVersionUID = 0L; // Use PromotionStatus.newBuilder() to construct. private PromotionStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PromotionStatus() { destinationStatuses_ = java.util.Collections.emptyList(); itemLevelIssues_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PromotionStatus(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.promotions.v1beta.PromotionsCommonProto .internal_static_google_shopping_merchant_promotions_v1beta_PromotionStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.merchant.promotions.v1beta.PromotionsCommonProto .internal_static_google_shopping_merchant_promotions_v1beta_PromotionStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.promotions.v1beta.PromotionStatus.class, com.google.shopping.merchant.promotions.v1beta.PromotionStatus.Builder.class); } public interface DestinationStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus) com.google.protobuf.MessageOrBuilder { /** * * *
     * Output only. The name of the promotion destination.
     * 
* * * .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for reportingContext. */ int getReportingContextValue(); /** * * *
     * Output only. The name of the promotion destination.
     * 
* * * .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The reportingContext. */ com.google.shopping.type.ReportingContext.ReportingContextEnum getReportingContext(); /** * * *
     * Output only. The status for the specified destination.
     * 
* * * .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.State status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** * * *
     * Output only. The status for the specified destination.
     * 
* * * .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.State status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The status. */ com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.State getStatus(); } /** * * *
   * The status for the specified destination.
   * 
* * Protobuf type {@code * google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus} */ public static final class DestinationStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus) DestinationStatusOrBuilder { private static final long serialVersionUID = 0L; // Use DestinationStatus.newBuilder() to construct. private DestinationStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DestinationStatus() { reportingContext_ = 0; status_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DestinationStatus(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.promotions.v1beta.PromotionsCommonProto .internal_static_google_shopping_merchant_promotions_v1beta_PromotionStatus_DestinationStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.merchant.promotions.v1beta.PromotionsCommonProto .internal_static_google_shopping_merchant_promotions_v1beta_PromotionStatus_DestinationStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus .class, com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus .Builder.class); } /** * * *
     * The current state of the promotion.
     * 
* * Protobuf enum {@code * google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.State} */ public enum State implements com.google.protobuf.ProtocolMessageEnum { /** * * *
       * Unknown promotion state.
       * 
* * STATE_UNSPECIFIED = 0; */ STATE_UNSPECIFIED(0), /** * * *
       * The promotion is under review.
       * 
* * IN_REVIEW = 1; */ IN_REVIEW(1), /** * * *
       * The promotion is disapproved.
       * 
* * REJECTED = 2; */ REJECTED(2), /** * * *
       * The promotion is approved and active.
       * 
* * LIVE = 3; */ LIVE(3), /** * * *
       * The promotion is stopped by merchant.
       * 
* * STOPPED = 4; */ STOPPED(4), /** * * *
       * The promotion is no longer active.
       * 
* * EXPIRED = 5; */ EXPIRED(5), /** * * *
       * The promotion is not stopped, and all reviews are approved, but the
       * active date is in the future.
       * 
* * PENDING = 6; */ PENDING(6), UNRECOGNIZED(-1), ; /** * * *
       * Unknown promotion state.
       * 
* * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** * * *
       * The promotion is under review.
       * 
* * IN_REVIEW = 1; */ public static final int IN_REVIEW_VALUE = 1; /** * * *
       * The promotion is disapproved.
       * 
* * REJECTED = 2; */ public static final int REJECTED_VALUE = 2; /** * * *
       * The promotion is approved and active.
       * 
* * LIVE = 3; */ public static final int LIVE_VALUE = 3; /** * * *
       * The promotion is stopped by merchant.
       * 
* * STOPPED = 4; */ public static final int STOPPED_VALUE = 4; /** * * *
       * The promotion is no longer active.
       * 
* * EXPIRED = 5; */ public static final int EXPIRED_VALUE = 5; /** * * *
       * The promotion is not stopped, and all reviews are approved, but the
       * active date is in the future.
       * 
* * PENDING = 6; */ public static final int PENDING_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static State valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static State forNumber(int value) { switch (value) { case 0: return STATE_UNSPECIFIED; case 1: return IN_REVIEW; case 2: return REJECTED; case 3: return LIVE; case 4: return STOPPED; case 5: return EXPIRED; case 6: return PENDING; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public State findValueByNumber(int number) { return State.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus .getDescriptor() .getEnumTypes() .get(0); } private static final State[] VALUES = values(); public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private State(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.State) } public static final int REPORTING_CONTEXT_FIELD_NUMBER = 1; private int reportingContext_ = 0; /** * * *
     * Output only. The name of the promotion destination.
     * 
* * * .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for reportingContext. */ @java.lang.Override public int getReportingContextValue() { return reportingContext_; } /** * * *
     * Output only. The name of the promotion destination.
     * 
* * * .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The reportingContext. */ @java.lang.Override public com.google.shopping.type.ReportingContext.ReportingContextEnum getReportingContext() { com.google.shopping.type.ReportingContext.ReportingContextEnum result = com.google.shopping.type.ReportingContext.ReportingContextEnum.forNumber( reportingContext_); return result == null ? com.google.shopping.type.ReportingContext.ReportingContextEnum.UNRECOGNIZED : result; } public static final int STATUS_FIELD_NUMBER = 2; private int status_ = 0; /** * * *
     * Output only. The status for the specified destination.
     * 
* * * .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.State status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * * *
     * Output only. The status for the specified destination.
     * 
* * * .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.State status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The status. */ @java.lang.Override public com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.State getStatus() { com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.State result = com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.State .forNumber(status_); return result == null ? com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.State .UNRECOGNIZED : result; } 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 { if (reportingContext_ != com.google.shopping.type.ReportingContext.ReportingContextEnum .REPORTING_CONTEXT_ENUM_UNSPECIFIED .getNumber()) { output.writeEnum(1, reportingContext_); } if (status_ != com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.State .STATE_UNSPECIFIED .getNumber()) { output.writeEnum(2, status_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (reportingContext_ != com.google.shopping.type.ReportingContext.ReportingContextEnum .REPORTING_CONTEXT_ENUM_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, reportingContext_); } if (status_ != com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.State .STATE_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, status_); } 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.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus)) { return super.equals(obj); } com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus other = (com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus) obj; if (reportingContext_ != other.reportingContext_) return false; if (status_ != other.status_) 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) + REPORTING_CONTEXT_FIELD_NUMBER; hash = (53 * hash) + reportingContext_; hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus 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.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus 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.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus 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.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus 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.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus 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; } /** * * *
     * The status for the specified destination.
     * 
* * Protobuf type {@code * google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus) com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.promotions.v1beta.PromotionsCommonProto .internal_static_google_shopping_merchant_promotions_v1beta_PromotionStatus_DestinationStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.merchant.promotions.v1beta.PromotionsCommonProto .internal_static_google_shopping_merchant_promotions_v1beta_PromotionStatus_DestinationStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus .class, com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus .Builder.class); } // Construct using // com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; reportingContext_ = 0; status_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.shopping.merchant.promotions.v1beta.PromotionsCommonProto .internal_static_google_shopping_merchant_promotions_v1beta_PromotionStatus_DestinationStatus_descriptor; } @java.lang.Override public com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus getDefaultInstanceForType() { return com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus .getDefaultInstance(); } @java.lang.Override public com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus build() { com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus buildPartial() { com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus result = new com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus( this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.reportingContext_ = reportingContext_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.status_ = status_; } } @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.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus) { return mergeFrom( (com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus other) { if (other == com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus .getDefaultInstance()) return this; if (other.reportingContext_ != 0) { setReportingContextValue(other.getReportingContextValue()); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } 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 8: { reportingContext_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { status_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 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 reportingContext_ = 0; /** * * *
       * Output only. The name of the promotion destination.
       * 
* * * .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for reportingContext. */ @java.lang.Override public int getReportingContextValue() { return reportingContext_; } /** * * *
       * Output only. The name of the promotion destination.
       * 
* * * .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for reportingContext to set. * @return This builder for chaining. */ public Builder setReportingContextValue(int value) { reportingContext_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Output only. The name of the promotion destination.
       * 
* * * .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The reportingContext. */ @java.lang.Override public com.google.shopping.type.ReportingContext.ReportingContextEnum getReportingContext() { com.google.shopping.type.ReportingContext.ReportingContextEnum result = com.google.shopping.type.ReportingContext.ReportingContextEnum.forNumber( reportingContext_); return result == null ? com.google.shopping.type.ReportingContext.ReportingContextEnum.UNRECOGNIZED : result; } /** * * *
       * Output only. The name of the promotion destination.
       * 
* * * .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The reportingContext to set. * @return This builder for chaining. */ public Builder setReportingContext( com.google.shopping.type.ReportingContext.ReportingContextEnum value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; reportingContext_ = value.getNumber(); onChanged(); return this; } /** * * *
       * Output only. The name of the promotion destination.
       * 
* * * .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearReportingContext() { bitField0_ = (bitField0_ & ~0x00000001); reportingContext_ = 0; onChanged(); return this; } private int status_ = 0; /** * * *
       * Output only. The status for the specified destination.
       * 
* * * .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.State status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * * *
       * Output only. The status for the specified destination.
       * 
* * * .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.State status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Output only. The status for the specified destination.
       * 
* * * .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.State status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The status. */ @java.lang.Override public com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.State getStatus() { com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.State result = com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus .State.forNumber(status_); return result == null ? com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.State .UNRECOGNIZED : result; } /** * * *
       * Output only. The status for the specified destination.
       * 
* * * .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.State status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus( com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.State value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; status_ = value.getNumber(); onChanged(); return this; } /** * * *
       * Output only. The status for the specified destination.
       * 
* * * .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.State status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000002); status_ = 0; 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.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus) } // @@protoc_insertion_point(class_scope:google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus) private static final com.google.shopping.merchant.promotions.v1beta.PromotionStatus .DestinationStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus(); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DestinationStatus 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.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ItemLevelIssueOrBuilder extends // @@protoc_insertion_point(interface_extends:google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue) com.google.protobuf.MessageOrBuilder { /** * * *
     * Output only. The error code of the issue.
     * 
* * string code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The code. */ java.lang.String getCode(); /** * * *
     * Output only. The error code of the issue.
     * 
* * string code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for code. */ com.google.protobuf.ByteString getCodeBytes(); /** * * *
     * Output only. How this issue affects serving of the promotion.
     * 
* * * .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** * * *
     * Output only. How this issue affects serving of the promotion.
     * 
* * * .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The severity. */ com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity getSeverity(); /** * * *
     * Output only. Whether the issue can be resolved by the merchant.
     * 
* * string resolution = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The resolution. */ java.lang.String getResolution(); /** * * *
     * Output only. Whether the issue can be resolved by the merchant.
     * 
* * string resolution = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for resolution. */ com.google.protobuf.ByteString getResolutionBytes(); /** * * *
     * Output only. The attribute's name, if the issue is caused by a single
     * attribute.
     * 
* * string attribute = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The attribute. */ java.lang.String getAttribute(); /** * * *
     * Output only. The attribute's name, if the issue is caused by a single
     * attribute.
     * 
* * string attribute = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for attribute. */ com.google.protobuf.ByteString getAttributeBytes(); /** * * *
     * Output only. The destination the issue applies to.
     * 
* * * .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for reportingContext. */ int getReportingContextValue(); /** * * *
     * Output only. The destination the issue applies to.
     * 
* * * .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The reportingContext. */ com.google.shopping.type.ReportingContext.ReportingContextEnum getReportingContext(); /** * * *
     * Output only. A short issue description in English.
     * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The description. */ java.lang.String getDescription(); /** * * *
     * Output only. A short issue description in English.
     * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** * * *
     * Output only. A detailed issue description in English.
     * 
* * string detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The detail. */ java.lang.String getDetail(); /** * * *
     * Output only. A detailed issue description in English.
     * 
* * string detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for detail. */ com.google.protobuf.ByteString getDetailBytes(); /** * * *
     * Output only. The URL of a web page to help with resolving this issue.
     * 
* * string documentation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The documentation. */ java.lang.String getDocumentation(); /** * * *
     * Output only. The URL of a web page to help with resolving this issue.
     * 
* * string documentation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for documentation. */ com.google.protobuf.ByteString getDocumentationBytes(); /** * * *
     * Output only. List of country codes (ISO 3166-1 alpha-2) where issue
     * applies to the offer.
     * 
* * repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return A list containing the applicableCountries. */ java.util.List getApplicableCountriesList(); /** * * *
     * Output only. List of country codes (ISO 3166-1 alpha-2) where issue
     * applies to the offer.
     * 
* * repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The count of applicableCountries. */ int getApplicableCountriesCount(); /** * * *
     * Output only. List of country codes (ISO 3166-1 alpha-2) where issue
     * applies to the offer.
     * 
* * repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the element to return. * @return The applicableCountries at the given index. */ java.lang.String getApplicableCountries(int index); /** * * *
     * Output only. List of country codes (ISO 3166-1 alpha-2) where issue
     * applies to the offer.
     * 
* * repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the value to return. * @return The bytes of the applicableCountries at the given index. */ com.google.protobuf.ByteString getApplicableCountriesBytes(int index); } /** * * *
   * The issue associated with the promotion.
   * 
* * Protobuf type {@code google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue} */ public static final class ItemLevelIssue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue) ItemLevelIssueOrBuilder { private static final long serialVersionUID = 0L; // Use ItemLevelIssue.newBuilder() to construct. private ItemLevelIssue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ItemLevelIssue() { code_ = ""; severity_ = 0; resolution_ = ""; attribute_ = ""; reportingContext_ = 0; description_ = ""; detail_ = ""; documentation_ = ""; applicableCountries_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ItemLevelIssue(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.promotions.v1beta.PromotionsCommonProto .internal_static_google_shopping_merchant_promotions_v1beta_PromotionStatus_ItemLevelIssue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.merchant.promotions.v1beta.PromotionsCommonProto .internal_static_google_shopping_merchant_promotions_v1beta_PromotionStatus_ItemLevelIssue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.class, com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Builder .class); } /** * * *
     * The severity of the issue.
     * 
* * Protobuf enum {@code * google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity} */ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { /** * * *
       * Not specified.
       * 
* * SEVERITY_UNSPECIFIED = 0; */ SEVERITY_UNSPECIFIED(0), /** * * *
       * This issue represents a warning and does not have a direct affect
       * on the promotion.
       * 
* * NOT_IMPACTED = 1; */ NOT_IMPACTED(1), /** * * *
       * The promotion is demoted and most likely have limited performance
       * in search results
       * 
* * DEMOTED = 2; */ DEMOTED(2), /** * * *
       * Issue disapproves the promotion.
       * 
* * DISAPPROVED = 3; */ DISAPPROVED(3), UNRECOGNIZED(-1), ; /** * * *
       * Not specified.
       * 
* * SEVERITY_UNSPECIFIED = 0; */ public static final int SEVERITY_UNSPECIFIED_VALUE = 0; /** * * *
       * This issue represents a warning and does not have a direct affect
       * on the promotion.
       * 
* * NOT_IMPACTED = 1; */ public static final int NOT_IMPACTED_VALUE = 1; /** * * *
       * The promotion is demoted and most likely have limited performance
       * in search results
       * 
* * DEMOTED = 2; */ public static final int DEMOTED_VALUE = 2; /** * * *
       * Issue disapproves the promotion.
       * 
* * DISAPPROVED = 3; */ public static final int DISAPPROVED_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Severity valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Severity forNumber(int value) { switch (value) { case 0: return SEVERITY_UNSPECIFIED; case 1: return NOT_IMPACTED; case 2: return DEMOTED; case 3: return DISAPPROVED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Severity findValueByNumber(int number) { return Severity.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue .getDescriptor() .getEnumTypes() .get(0); } private static final Severity[] VALUES = values(); public static Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Severity(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity) } public static final int CODE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object code_ = ""; /** * * *
     * Output only. The error code of the issue.
     * 
* * string code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The code. */ @java.lang.Override public java.lang.String getCode() { java.lang.Object ref = code_; 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(); code_ = s; return s; } } /** * * *
     * Output only. The error code of the issue.
     * 
* * string code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for code. */ @java.lang.Override public com.google.protobuf.ByteString getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); code_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SEVERITY_FIELD_NUMBER = 2; private int severity_ = 0; /** * * *
     * Output only. How this issue affects serving of the promotion.
     * 
* * * .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for severity. */ @java.lang.Override public int getSeverityValue() { return severity_; } /** * * *
     * Output only. How this issue affects serving of the promotion.
     * 
* * * .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The severity. */ @java.lang.Override public com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity getSeverity() { com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity result = com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity .forNumber(severity_); return result == null ? com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity .UNRECOGNIZED : result; } public static final int RESOLUTION_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object resolution_ = ""; /** * * *
     * Output only. Whether the issue can be resolved by the merchant.
     * 
* * string resolution = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The resolution. */ @java.lang.Override public java.lang.String getResolution() { java.lang.Object ref = resolution_; 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(); resolution_ = s; return s; } } /** * * *
     * Output only. Whether the issue can be resolved by the merchant.
     * 
* * string resolution = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for resolution. */ @java.lang.Override public com.google.protobuf.ByteString getResolutionBytes() { java.lang.Object ref = resolution_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resolution_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ATTRIBUTE_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object attribute_ = ""; /** * * *
     * Output only. The attribute's name, if the issue is caused by a single
     * attribute.
     * 
* * string attribute = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The attribute. */ @java.lang.Override public java.lang.String getAttribute() { java.lang.Object ref = attribute_; 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(); attribute_ = s; return s; } } /** * * *
     * Output only. The attribute's name, if the issue is caused by a single
     * attribute.
     * 
* * string attribute = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for attribute. */ @java.lang.Override public com.google.protobuf.ByteString getAttributeBytes() { java.lang.Object ref = attribute_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); attribute_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REPORTING_CONTEXT_FIELD_NUMBER = 5; private int reportingContext_ = 0; /** * * *
     * Output only. The destination the issue applies to.
     * 
* * * .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for reportingContext. */ @java.lang.Override public int getReportingContextValue() { return reportingContext_; } /** * * *
     * Output only. The destination the issue applies to.
     * 
* * * .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The reportingContext. */ @java.lang.Override public com.google.shopping.type.ReportingContext.ReportingContextEnum getReportingContext() { com.google.shopping.type.ReportingContext.ReportingContextEnum result = com.google.shopping.type.ReportingContext.ReportingContextEnum.forNumber( reportingContext_); return result == null ? com.google.shopping.type.ReportingContext.ReportingContextEnum.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** * * *
     * Output only. A short issue description in English.
     * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** * * *
     * Output only. A short issue description in English.
     * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DETAIL_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object detail_ = ""; /** * * *
     * Output only. A detailed issue description in English.
     * 
* * string detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The detail. */ @java.lang.Override public java.lang.String getDetail() { java.lang.Object ref = detail_; 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(); detail_ = s; return s; } } /** * * *
     * Output only. A detailed issue description in English.
     * 
* * string detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for detail. */ @java.lang.Override public com.google.protobuf.ByteString getDetailBytes() { java.lang.Object ref = detail_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detail_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DOCUMENTATION_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object documentation_ = ""; /** * * *
     * Output only. The URL of a web page to help with resolving this issue.
     * 
* * string documentation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The documentation. */ @java.lang.Override public java.lang.String getDocumentation() { java.lang.Object ref = documentation_; 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(); documentation_ = s; return s; } } /** * * *
     * Output only. The URL of a web page to help with resolving this issue.
     * 
* * string documentation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for documentation. */ @java.lang.Override public com.google.protobuf.ByteString getDocumentationBytes() { java.lang.Object ref = documentation_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); documentation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int APPLICABLE_COUNTRIES_FIELD_NUMBER = 9; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList applicableCountries_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
     * Output only. List of country codes (ISO 3166-1 alpha-2) where issue
     * applies to the offer.
     * 
* * repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return A list containing the applicableCountries. */ public com.google.protobuf.ProtocolStringList getApplicableCountriesList() { return applicableCountries_; } /** * * *
     * Output only. List of country codes (ISO 3166-1 alpha-2) where issue
     * applies to the offer.
     * 
* * repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The count of applicableCountries. */ public int getApplicableCountriesCount() { return applicableCountries_.size(); } /** * * *
     * Output only. List of country codes (ISO 3166-1 alpha-2) where issue
     * applies to the offer.
     * 
* * repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the element to return. * @return The applicableCountries at the given index. */ public java.lang.String getApplicableCountries(int index) { return applicableCountries_.get(index); } /** * * *
     * Output only. List of country codes (ISO 3166-1 alpha-2) where issue
     * applies to the offer.
     * 
* * repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the value to return. * @return The bytes of the applicableCountries at the given index. */ public com.google.protobuf.ByteString getApplicableCountriesBytes(int index) { return applicableCountries_.getByteString(index); } 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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); } if (severity_ != com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity .SEVERITY_UNSPECIFIED .getNumber()) { output.writeEnum(2, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resolution_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resolution_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attribute_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, attribute_); } if (reportingContext_ != com.google.shopping.type.ReportingContext.ReportingContextEnum .REPORTING_CONTEXT_ENUM_UNSPECIFIED .getNumber()) { output.writeEnum(5, reportingContext_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, detail_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentation_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, documentation_); } for (int i = 0; i < applicableCountries_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( output, 9, applicableCountries_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); } if (severity_ != com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity .SEVERITY_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resolution_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resolution_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attribute_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, attribute_); } if (reportingContext_ != com.google.shopping.type.ReportingContext.ReportingContextEnum .REPORTING_CONTEXT_ENUM_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, reportingContext_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, detail_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentation_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, documentation_); } { int dataSize = 0; for (int i = 0; i < applicableCountries_.size(); i++) { dataSize += computeStringSizeNoTag(applicableCountries_.getRaw(i)); } size += dataSize; size += 1 * getApplicableCountriesList().size(); } 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.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue)) { return super.equals(obj); } com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue other = (com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue) obj; if (!getCode().equals(other.getCode())) return false; if (severity_ != other.severity_) return false; if (!getResolution().equals(other.getResolution())) return false; if (!getAttribute().equals(other.getAttribute())) return false; if (reportingContext_ != other.reportingContext_) return false; if (!getDescription().equals(other.getDescription())) return false; if (!getDetail().equals(other.getDetail())) return false; if (!getDocumentation().equals(other.getDocumentation())) return false; if (!getApplicableCountriesList().equals(other.getApplicableCountriesList())) 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) + CODE_FIELD_NUMBER; hash = (53 * hash) + getCode().hashCode(); hash = (37 * hash) + SEVERITY_FIELD_NUMBER; hash = (53 * hash) + severity_; hash = (37 * hash) + RESOLUTION_FIELD_NUMBER; hash = (53 * hash) + getResolution().hashCode(); hash = (37 * hash) + ATTRIBUTE_FIELD_NUMBER; hash = (53 * hash) + getAttribute().hashCode(); hash = (37 * hash) + REPORTING_CONTEXT_FIELD_NUMBER; hash = (53 * hash) + reportingContext_; hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + DETAIL_FIELD_NUMBER; hash = (53 * hash) + getDetail().hashCode(); hash = (37 * hash) + DOCUMENTATION_FIELD_NUMBER; hash = (53 * hash) + getDocumentation().hashCode(); if (getApplicableCountriesCount() > 0) { hash = (37 * hash) + APPLICABLE_COUNTRIES_FIELD_NUMBER; hash = (53 * hash) + getApplicableCountriesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue 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.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue 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.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue 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.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue 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.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue 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; } /** * * *
     * The issue associated with the promotion.
     * 
* * Protobuf type {@code * google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue) com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.promotions.v1beta.PromotionsCommonProto .internal_static_google_shopping_merchant_promotions_v1beta_PromotionStatus_ItemLevelIssue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.merchant.promotions.v1beta.PromotionsCommonProto .internal_static_google_shopping_merchant_promotions_v1beta_PromotionStatus_ItemLevelIssue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.class, com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue .Builder.class); } // Construct using // com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; code_ = ""; severity_ = 0; resolution_ = ""; attribute_ = ""; reportingContext_ = 0; description_ = ""; detail_ = ""; documentation_ = ""; applicableCountries_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.shopping.merchant.promotions.v1beta.PromotionsCommonProto .internal_static_google_shopping_merchant_promotions_v1beta_PromotionStatus_ItemLevelIssue_descriptor; } @java.lang.Override public com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue getDefaultInstanceForType() { return com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue .getDefaultInstance(); } @java.lang.Override public com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue build() { com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue buildPartial() { com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue result = new com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.code_ = code_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.severity_ = severity_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.resolution_ = resolution_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.attribute_ = attribute_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.reportingContext_ = reportingContext_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.detail_ = detail_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.documentation_ = documentation_; } if (((from_bitField0_ & 0x00000100) != 0)) { applicableCountries_.makeImmutable(); result.applicableCountries_ = applicableCountries_; } } @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.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue) { return mergeFrom( (com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue other) { if (other == com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue .getDefaultInstance()) return this; if (!other.getCode().isEmpty()) { code_ = other.code_; bitField0_ |= 0x00000001; onChanged(); } if (other.severity_ != 0) { setSeverityValue(other.getSeverityValue()); } if (!other.getResolution().isEmpty()) { resolution_ = other.resolution_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getAttribute().isEmpty()) { attribute_ = other.attribute_; bitField0_ |= 0x00000008; onChanged(); } if (other.reportingContext_ != 0) { setReportingContextValue(other.getReportingContextValue()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000020; onChanged(); } if (!other.getDetail().isEmpty()) { detail_ = other.detail_; bitField0_ |= 0x00000040; onChanged(); } if (!other.getDocumentation().isEmpty()) { documentation_ = other.documentation_; bitField0_ |= 0x00000080; onChanged(); } if (!other.applicableCountries_.isEmpty()) { if (applicableCountries_.isEmpty()) { applicableCountries_ = other.applicableCountries_; bitField0_ |= 0x00000100; } else { ensureApplicableCountriesIsMutable(); applicableCountries_.addAll(other.applicableCountries_); } 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 10: { code_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { severity_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { resolution_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { attribute_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 40: { reportingContext_ = input.readEnum(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { detail_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { documentation_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 66 case 74: { java.lang.String s = input.readStringRequireUtf8(); ensureApplicableCountriesIsMutable(); applicableCountries_.add(s); break; } // case 74 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 java.lang.Object code_ = ""; /** * * *
       * Output only. The error code of the issue.
       * 
* * string code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The code. */ public java.lang.String getCode() { java.lang.Object ref = code_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Output only. The error code of the issue.
       * 
* * string code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for code. */ public com.google.protobuf.ByteString getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); code_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Output only. The error code of the issue.
       * 
* * string code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The code to set. * @return This builder for chaining. */ public Builder setCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } code_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Output only. The error code of the issue.
       * 
* * string code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearCode() { code_ = getDefaultInstance().getCode(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * Output only. The error code of the issue.
       * 
* * string code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for code to set. * @return This builder for chaining. */ public Builder setCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); code_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int severity_ = 0; /** * * *
       * Output only. How this issue affects serving of the promotion.
       * 
* * * .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for severity. */ @java.lang.Override public int getSeverityValue() { return severity_; } /** * * *
       * Output only. How this issue affects serving of the promotion.
       * 
* * * .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ public Builder setSeverityValue(int value) { severity_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Output only. How this issue affects serving of the promotion.
       * 
* * * .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The severity. */ @java.lang.Override public com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity getSeverity() { com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity result = com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue .Severity.forNumber(severity_); return result == null ? com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity .UNRECOGNIZED : result; } /** * * *
       * Output only. How this issue affects serving of the promotion.
       * 
* * * .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The severity to set. * @return This builder for chaining. */ public Builder setSeverity( com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; severity_ = value.getNumber(); onChanged(); return this; } /** * * *
       * Output only. How this issue affects serving of the promotion.
       * 
* * * .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Severity severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearSeverity() { bitField0_ = (bitField0_ & ~0x00000002); severity_ = 0; onChanged(); return this; } private java.lang.Object resolution_ = ""; /** * * *
       * Output only. Whether the issue can be resolved by the merchant.
       * 
* * string resolution = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The resolution. */ public java.lang.String getResolution() { java.lang.Object ref = resolution_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resolution_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Output only. Whether the issue can be resolved by the merchant.
       * 
* * string resolution = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for resolution. */ public com.google.protobuf.ByteString getResolutionBytes() { java.lang.Object ref = resolution_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resolution_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Output only. Whether the issue can be resolved by the merchant.
       * 
* * string resolution = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The resolution to set. * @return This builder for chaining. */ public Builder setResolution(java.lang.String value) { if (value == null) { throw new NullPointerException(); } resolution_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Output only. Whether the issue can be resolved by the merchant.
       * 
* * string resolution = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearResolution() { resolution_ = getDefaultInstance().getResolution(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
       * Output only. Whether the issue can be resolved by the merchant.
       * 
* * string resolution = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for resolution to set. * @return This builder for chaining. */ public Builder setResolutionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resolution_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object attribute_ = ""; /** * * *
       * Output only. The attribute's name, if the issue is caused by a single
       * attribute.
       * 
* * string attribute = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The attribute. */ public java.lang.String getAttribute() { java.lang.Object ref = attribute_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attribute_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Output only. The attribute's name, if the issue is caused by a single
       * attribute.
       * 
* * string attribute = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for attribute. */ public com.google.protobuf.ByteString getAttributeBytes() { java.lang.Object ref = attribute_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); attribute_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Output only. The attribute's name, if the issue is caused by a single
       * attribute.
       * 
* * string attribute = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The attribute to set. * @return This builder for chaining. */ public Builder setAttribute(java.lang.String value) { if (value == null) { throw new NullPointerException(); } attribute_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Output only. The attribute's name, if the issue is caused by a single
       * attribute.
       * 
* * string attribute = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearAttribute() { attribute_ = getDefaultInstance().getAttribute(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * * *
       * Output only. The attribute's name, if the issue is caused by a single
       * attribute.
       * 
* * string attribute = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for attribute to set. * @return This builder for chaining. */ public Builder setAttributeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); attribute_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private int reportingContext_ = 0; /** * * *
       * Output only. The destination the issue applies to.
       * 
* * * .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for reportingContext. */ @java.lang.Override public int getReportingContextValue() { return reportingContext_; } /** * * *
       * Output only. The destination the issue applies to.
       * 
* * * .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for reportingContext to set. * @return This builder for chaining. */ public Builder setReportingContextValue(int value) { reportingContext_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
       * Output only. The destination the issue applies to.
       * 
* * * .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The reportingContext. */ @java.lang.Override public com.google.shopping.type.ReportingContext.ReportingContextEnum getReportingContext() { com.google.shopping.type.ReportingContext.ReportingContextEnum result = com.google.shopping.type.ReportingContext.ReportingContextEnum.forNumber( reportingContext_); return result == null ? com.google.shopping.type.ReportingContext.ReportingContextEnum.UNRECOGNIZED : result; } /** * * *
       * Output only. The destination the issue applies to.
       * 
* * * .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The reportingContext to set. * @return This builder for chaining. */ public Builder setReportingContext( com.google.shopping.type.ReportingContext.ReportingContextEnum value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; reportingContext_ = value.getNumber(); onChanged(); return this; } /** * * *
       * Output only. The destination the issue applies to.
       * 
* * * .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearReportingContext() { bitField0_ = (bitField0_ & ~0x00000010); reportingContext_ = 0; onChanged(); return this; } private java.lang.Object description_ = ""; /** * * *
       * Output only. A short issue description in English.
       * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Output only. A short issue description in English.
       * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Output only. A short issue description in English.
       * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
       * Output only. A short issue description in English.
       * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * * *
       * Output only. A short issue description in English.
       * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object detail_ = ""; /** * * *
       * Output only. A detailed issue description in English.
       * 
* * string detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The detail. */ public java.lang.String getDetail() { java.lang.Object ref = detail_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detail_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Output only. A detailed issue description in English.
       * 
* * string detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for detail. */ public com.google.protobuf.ByteString getDetailBytes() { java.lang.Object ref = detail_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detail_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Output only. A detailed issue description in English.
       * 
* * string detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The detail to set. * @return This builder for chaining. */ public Builder setDetail(java.lang.String value) { if (value == null) { throw new NullPointerException(); } detail_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
       * Output only. A detailed issue description in English.
       * 
* * string detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearDetail() { detail_ = getDefaultInstance().getDetail(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
       * Output only. A detailed issue description in English.
       * 
* * string detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for detail to set. * @return This builder for chaining. */ public Builder setDetailBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); detail_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private java.lang.Object documentation_ = ""; /** * * *
       * Output only. The URL of a web page to help with resolving this issue.
       * 
* * string documentation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The documentation. */ public java.lang.String getDocumentation() { java.lang.Object ref = documentation_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentation_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Output only. The URL of a web page to help with resolving this issue.
       * 
* * string documentation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for documentation. */ public com.google.protobuf.ByteString getDocumentationBytes() { java.lang.Object ref = documentation_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); documentation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Output only. The URL of a web page to help with resolving this issue.
       * 
* * string documentation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The documentation to set. * @return This builder for chaining. */ public Builder setDocumentation(java.lang.String value) { if (value == null) { throw new NullPointerException(); } documentation_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
       * Output only. The URL of a web page to help with resolving this issue.
       * 
* * string documentation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearDocumentation() { documentation_ = getDefaultInstance().getDocumentation(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * * *
       * Output only. The URL of a web page to help with resolving this issue.
       * 
* * string documentation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for documentation to set. * @return This builder for chaining. */ public Builder setDocumentationBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); documentation_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList applicableCountries_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureApplicableCountriesIsMutable() { if (!applicableCountries_.isModifiable()) { applicableCountries_ = new com.google.protobuf.LazyStringArrayList(applicableCountries_); } bitField0_ |= 0x00000100; } /** * * *
       * Output only. List of country codes (ISO 3166-1 alpha-2) where issue
       * applies to the offer.
       * 
* * * repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return A list containing the applicableCountries. */ public com.google.protobuf.ProtocolStringList getApplicableCountriesList() { applicableCountries_.makeImmutable(); return applicableCountries_; } /** * * *
       * Output only. List of country codes (ISO 3166-1 alpha-2) where issue
       * applies to the offer.
       * 
* * * repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The count of applicableCountries. */ public int getApplicableCountriesCount() { return applicableCountries_.size(); } /** * * *
       * Output only. List of country codes (ISO 3166-1 alpha-2) where issue
       * applies to the offer.
       * 
* * * repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the element to return. * @return The applicableCountries at the given index. */ public java.lang.String getApplicableCountries(int index) { return applicableCountries_.get(index); } /** * * *
       * Output only. List of country codes (ISO 3166-1 alpha-2) where issue
       * applies to the offer.
       * 
* * * repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the value to return. * @return The bytes of the applicableCountries at the given index. */ public com.google.protobuf.ByteString getApplicableCountriesBytes(int index) { return applicableCountries_.getByteString(index); } /** * * *
       * Output only. List of country codes (ISO 3166-1 alpha-2) where issue
       * applies to the offer.
       * 
* * * repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index to set the value at. * @param value The applicableCountries to set. * @return This builder for chaining. */ public Builder setApplicableCountries(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureApplicableCountriesIsMutable(); applicableCountries_.set(index, value); bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
       * Output only. List of country codes (ISO 3166-1 alpha-2) where issue
       * applies to the offer.
       * 
* * * repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The applicableCountries to add. * @return This builder for chaining. */ public Builder addApplicableCountries(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureApplicableCountriesIsMutable(); applicableCountries_.add(value); bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
       * Output only. List of country codes (ISO 3166-1 alpha-2) where issue
       * applies to the offer.
       * 
* * * repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param values The applicableCountries to add. * @return This builder for chaining. */ public Builder addAllApplicableCountries(java.lang.Iterable values) { ensureApplicableCountriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applicableCountries_); bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
       * Output only. List of country codes (ISO 3166-1 alpha-2) where issue
       * applies to the offer.
       * 
* * * repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearApplicableCountries() { applicableCountries_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); ; onChanged(); return this; } /** * * *
       * Output only. List of country codes (ISO 3166-1 alpha-2) where issue
       * applies to the offer.
       * 
* * * repeated string applicable_countries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The bytes of the applicableCountries to add. * @return This builder for chaining. */ public Builder addApplicableCountriesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureApplicableCountriesIsMutable(); applicableCountries_.add(value); bitField0_ |= 0x00000100; 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.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue) } // @@protoc_insertion_point(class_scope:google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue) private static final com.google.shopping.merchant.promotions.v1beta.PromotionStatus .ItemLevelIssue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue(); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ItemLevelIssue 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.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int DESTINATION_STATUSES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List< com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus> destinationStatuses_; /** * * *
   * Output only. The intended destinations for the promotion.
   * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List< com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus> getDestinationStatusesList() { return destinationStatuses_; } /** * * *
   * Output only. The intended destinations for the promotion.
   * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List< ? extends com.google.shopping.merchant.promotions.v1beta.PromotionStatus .DestinationStatusOrBuilder> getDestinationStatusesOrBuilderList() { return destinationStatuses_; } /** * * *
   * Output only. The intended destinations for the promotion.
   * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public int getDestinationStatusesCount() { return destinationStatuses_.size(); } /** * * *
   * Output only. The intended destinations for the promotion.
   * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus getDestinationStatuses(int index) { return destinationStatuses_.get(index); } /** * * *
   * Output only. The intended destinations for the promotion.
   * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatusOrBuilder getDestinationStatusesOrBuilder(int index) { return destinationStatuses_.get(index); } public static final int ITEM_LEVEL_ISSUES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List< com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue> itemLevelIssues_; /** * * *
   * Output only. A list of issues associated with the promotion.
   * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List< com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue> getItemLevelIssuesList() { return itemLevelIssues_; } /** * * *
   * Output only. A list of issues associated with the promotion.
   * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List< ? extends com.google.shopping.merchant.promotions.v1beta.PromotionStatus .ItemLevelIssueOrBuilder> getItemLevelIssuesOrBuilderList() { return itemLevelIssues_; } /** * * *
   * Output only. A list of issues associated with the promotion.
   * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public int getItemLevelIssuesCount() { return itemLevelIssues_.size(); } /** * * *
   * Output only. A list of issues associated with the promotion.
   * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue getItemLevelIssues(int index) { return itemLevelIssues_.get(index); } /** * * *
   * Output only. A list of issues associated with the promotion.
   * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssueOrBuilder getItemLevelIssuesOrBuilder(int index) { return itemLevelIssues_.get(index); } public static final int CREATION_DATE_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp creationDate_; /** * * *
   * Output only. Date on which the promotion has been created
   * in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time,
   * and offset, for example `2020-01-02T09:00:00+01:00` or
   * `2020-01-02T09:00:00Z`
   * 
* * * .google.protobuf.Timestamp creation_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the creationDate field is set. */ @java.lang.Override public boolean hasCreationDate() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Output only. Date on which the promotion has been created
   * in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time,
   * and offset, for example `2020-01-02T09:00:00+01:00` or
   * `2020-01-02T09:00:00Z`
   * 
* * * .google.protobuf.Timestamp creation_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The creationDate. */ @java.lang.Override public com.google.protobuf.Timestamp getCreationDate() { return creationDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationDate_; } /** * * *
   * Output only. Date on which the promotion has been created
   * in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time,
   * and offset, for example `2020-01-02T09:00:00+01:00` or
   * `2020-01-02T09:00:00Z`
   * 
* * * .google.protobuf.Timestamp creation_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreationDateOrBuilder() { return creationDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationDate_; } public static final int LAST_UPDATE_DATE_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp lastUpdateDate_; /** * * *
   * Output only. Date on which the promotion status has been last updated
   * in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time,
   * and offset, for example `2020-01-02T09:00:00+01:00` or
   * `2020-01-02T09:00:00Z`
   * 
* * * .google.protobuf.Timestamp last_update_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the lastUpdateDate field is set. */ @java.lang.Override public boolean hasLastUpdateDate() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Output only. Date on which the promotion status has been last updated
   * in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time,
   * and offset, for example `2020-01-02T09:00:00+01:00` or
   * `2020-01-02T09:00:00Z`
   * 
* * * .google.protobuf.Timestamp last_update_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The lastUpdateDate. */ @java.lang.Override public com.google.protobuf.Timestamp getLastUpdateDate() { return lastUpdateDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateDate_; } /** * * *
   * Output only. Date on which the promotion status has been last updated
   * in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time,
   * and offset, for example `2020-01-02T09:00:00+01:00` or
   * `2020-01-02T09:00:00Z`
   * 
* * * .google.protobuf.Timestamp last_update_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdateDateOrBuilder() { return lastUpdateDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateDate_; } 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 { for (int i = 0; i < destinationStatuses_.size(); i++) { output.writeMessage(1, destinationStatuses_.get(i)); } for (int i = 0; i < itemLevelIssues_.size(); i++) { output.writeMessage(2, itemLevelIssues_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getCreationDate()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getLastUpdateDate()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < destinationStatuses_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, destinationStatuses_.get(i)); } for (int i = 0; i < itemLevelIssues_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, itemLevelIssues_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreationDate()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastUpdateDate()); } 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.shopping.merchant.promotions.v1beta.PromotionStatus)) { return super.equals(obj); } com.google.shopping.merchant.promotions.v1beta.PromotionStatus other = (com.google.shopping.merchant.promotions.v1beta.PromotionStatus) obj; if (!getDestinationStatusesList().equals(other.getDestinationStatusesList())) return false; if (!getItemLevelIssuesList().equals(other.getItemLevelIssuesList())) return false; if (hasCreationDate() != other.hasCreationDate()) return false; if (hasCreationDate()) { if (!getCreationDate().equals(other.getCreationDate())) return false; } if (hasLastUpdateDate() != other.hasLastUpdateDate()) return false; if (hasLastUpdateDate()) { if (!getLastUpdateDate().equals(other.getLastUpdateDate())) 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(); if (getDestinationStatusesCount() > 0) { hash = (37 * hash) + DESTINATION_STATUSES_FIELD_NUMBER; hash = (53 * hash) + getDestinationStatusesList().hashCode(); } if (getItemLevelIssuesCount() > 0) { hash = (37 * hash) + ITEM_LEVEL_ISSUES_FIELD_NUMBER; hash = (53 * hash) + getItemLevelIssuesList().hashCode(); } if (hasCreationDate()) { hash = (37 * hash) + CREATION_DATE_FIELD_NUMBER; hash = (53 * hash) + getCreationDate().hashCode(); } if (hasLastUpdateDate()) { hash = (37 * hash) + LAST_UPDATE_DATE_FIELD_NUMBER; hash = (53 * hash) + getLastUpdateDate().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus 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.shopping.merchant.promotions.v1beta.PromotionStatus parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus 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.shopping.merchant.promotions.v1beta.PromotionStatus parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus 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.shopping.merchant.promotions.v1beta.PromotionStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus 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.shopping.merchant.promotions.v1beta.PromotionStatus 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; } /** * * *
   * The status of the promotion.
   * 
* * Protobuf type {@code google.shopping.merchant.promotions.v1beta.PromotionStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.shopping.merchant.promotions.v1beta.PromotionStatus) com.google.shopping.merchant.promotions.v1beta.PromotionStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.promotions.v1beta.PromotionsCommonProto .internal_static_google_shopping_merchant_promotions_v1beta_PromotionStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.merchant.promotions.v1beta.PromotionsCommonProto .internal_static_google_shopping_merchant_promotions_v1beta_PromotionStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.promotions.v1beta.PromotionStatus.class, com.google.shopping.merchant.promotions.v1beta.PromotionStatus.Builder.class); } // Construct using com.google.shopping.merchant.promotions.v1beta.PromotionStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDestinationStatusesFieldBuilder(); getItemLevelIssuesFieldBuilder(); getCreationDateFieldBuilder(); getLastUpdateDateFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (destinationStatusesBuilder_ == null) { destinationStatuses_ = java.util.Collections.emptyList(); } else { destinationStatuses_ = null; destinationStatusesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (itemLevelIssuesBuilder_ == null) { itemLevelIssues_ = java.util.Collections.emptyList(); } else { itemLevelIssues_ = null; itemLevelIssuesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); creationDate_ = null; if (creationDateBuilder_ != null) { creationDateBuilder_.dispose(); creationDateBuilder_ = null; } lastUpdateDate_ = null; if (lastUpdateDateBuilder_ != null) { lastUpdateDateBuilder_.dispose(); lastUpdateDateBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.shopping.merchant.promotions.v1beta.PromotionsCommonProto .internal_static_google_shopping_merchant_promotions_v1beta_PromotionStatus_descriptor; } @java.lang.Override public com.google.shopping.merchant.promotions.v1beta.PromotionStatus getDefaultInstanceForType() { return com.google.shopping.merchant.promotions.v1beta.PromotionStatus.getDefaultInstance(); } @java.lang.Override public com.google.shopping.merchant.promotions.v1beta.PromotionStatus build() { com.google.shopping.merchant.promotions.v1beta.PromotionStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.shopping.merchant.promotions.v1beta.PromotionStatus buildPartial() { com.google.shopping.merchant.promotions.v1beta.PromotionStatus result = new com.google.shopping.merchant.promotions.v1beta.PromotionStatus(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.shopping.merchant.promotions.v1beta.PromotionStatus result) { if (destinationStatusesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { destinationStatuses_ = java.util.Collections.unmodifiableList(destinationStatuses_); bitField0_ = (bitField0_ & ~0x00000001); } result.destinationStatuses_ = destinationStatuses_; } else { result.destinationStatuses_ = destinationStatusesBuilder_.build(); } if (itemLevelIssuesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { itemLevelIssues_ = java.util.Collections.unmodifiableList(itemLevelIssues_); bitField0_ = (bitField0_ & ~0x00000002); } result.itemLevelIssues_ = itemLevelIssues_; } else { result.itemLevelIssues_ = itemLevelIssuesBuilder_.build(); } } private void buildPartial0( com.google.shopping.merchant.promotions.v1beta.PromotionStatus result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.creationDate_ = creationDateBuilder_ == null ? creationDate_ : creationDateBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.lastUpdateDate_ = lastUpdateDateBuilder_ == null ? lastUpdateDate_ : lastUpdateDateBuilder_.build(); to_bitField0_ |= 0x00000002; } 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.shopping.merchant.promotions.v1beta.PromotionStatus) { return mergeFrom((com.google.shopping.merchant.promotions.v1beta.PromotionStatus) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.shopping.merchant.promotions.v1beta.PromotionStatus other) { if (other == com.google.shopping.merchant.promotions.v1beta.PromotionStatus.getDefaultInstance()) return this; if (destinationStatusesBuilder_ == null) { if (!other.destinationStatuses_.isEmpty()) { if (destinationStatuses_.isEmpty()) { destinationStatuses_ = other.destinationStatuses_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDestinationStatusesIsMutable(); destinationStatuses_.addAll(other.destinationStatuses_); } onChanged(); } } else { if (!other.destinationStatuses_.isEmpty()) { if (destinationStatusesBuilder_.isEmpty()) { destinationStatusesBuilder_.dispose(); destinationStatusesBuilder_ = null; destinationStatuses_ = other.destinationStatuses_; bitField0_ = (bitField0_ & ~0x00000001); destinationStatusesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDestinationStatusesFieldBuilder() : null; } else { destinationStatusesBuilder_.addAllMessages(other.destinationStatuses_); } } } if (itemLevelIssuesBuilder_ == null) { if (!other.itemLevelIssues_.isEmpty()) { if (itemLevelIssues_.isEmpty()) { itemLevelIssues_ = other.itemLevelIssues_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureItemLevelIssuesIsMutable(); itemLevelIssues_.addAll(other.itemLevelIssues_); } onChanged(); } } else { if (!other.itemLevelIssues_.isEmpty()) { if (itemLevelIssuesBuilder_.isEmpty()) { itemLevelIssuesBuilder_.dispose(); itemLevelIssuesBuilder_ = null; itemLevelIssues_ = other.itemLevelIssues_; bitField0_ = (bitField0_ & ~0x00000002); itemLevelIssuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getItemLevelIssuesFieldBuilder() : null; } else { itemLevelIssuesBuilder_.addAllMessages(other.itemLevelIssues_); } } } if (other.hasCreationDate()) { mergeCreationDate(other.getCreationDate()); } if (other.hasLastUpdateDate()) { mergeLastUpdateDate(other.getLastUpdateDate()); } 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 10: { com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus m = input.readMessage( com.google.shopping.merchant.promotions.v1beta.PromotionStatus .DestinationStatus.parser(), extensionRegistry); if (destinationStatusesBuilder_ == null) { ensureDestinationStatusesIsMutable(); destinationStatuses_.add(m); } else { destinationStatusesBuilder_.addMessage(m); } break; } // case 10 case 18: { com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue m = input.readMessage( com.google.shopping.merchant.promotions.v1beta.PromotionStatus .ItemLevelIssue.parser(), extensionRegistry); if (itemLevelIssuesBuilder_ == null) { ensureItemLevelIssuesIsMutable(); itemLevelIssues_.add(m); } else { itemLevelIssuesBuilder_.addMessage(m); } break; } // case 18 case 26: { input.readMessage(getCreationDateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getLastUpdateDateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 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 java.util.List< com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus> destinationStatuses_ = java.util.Collections.emptyList(); private void ensureDestinationStatusesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { destinationStatuses_ = new java.util.ArrayList< com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus>( destinationStatuses_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus, com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus .Builder, com.google.shopping.merchant.promotions.v1beta.PromotionStatus .DestinationStatusOrBuilder> destinationStatusesBuilder_; /** * * *
     * Output only. The intended destinations for the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List< com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus> getDestinationStatusesList() { if (destinationStatusesBuilder_ == null) { return java.util.Collections.unmodifiableList(destinationStatuses_); } else { return destinationStatusesBuilder_.getMessageList(); } } /** * * *
     * Output only. The intended destinations for the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public int getDestinationStatusesCount() { if (destinationStatusesBuilder_ == null) { return destinationStatuses_.size(); } else { return destinationStatusesBuilder_.getCount(); } } /** * * *
     * Output only. The intended destinations for the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus getDestinationStatuses(int index) { if (destinationStatusesBuilder_ == null) { return destinationStatuses_.get(index); } else { return destinationStatusesBuilder_.getMessage(index); } } /** * * *
     * Output only. The intended destinations for the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setDestinationStatuses( int index, com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus value) { if (destinationStatusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDestinationStatusesIsMutable(); destinationStatuses_.set(index, value); onChanged(); } else { destinationStatusesBuilder_.setMessage(index, value); } return this; } /** * * *
     * Output only. The intended destinations for the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setDestinationStatuses( int index, com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.Builder builderForValue) { if (destinationStatusesBuilder_ == null) { ensureDestinationStatusesIsMutable(); destinationStatuses_.set(index, builderForValue.build()); onChanged(); } else { destinationStatusesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. The intended destinations for the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addDestinationStatuses( com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus value) { if (destinationStatusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDestinationStatusesIsMutable(); destinationStatuses_.add(value); onChanged(); } else { destinationStatusesBuilder_.addMessage(value); } return this; } /** * * *
     * Output only. The intended destinations for the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addDestinationStatuses( int index, com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus value) { if (destinationStatusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDestinationStatusesIsMutable(); destinationStatuses_.add(index, value); onChanged(); } else { destinationStatusesBuilder_.addMessage(index, value); } return this; } /** * * *
     * Output only. The intended destinations for the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addDestinationStatuses( com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.Builder builderForValue) { if (destinationStatusesBuilder_ == null) { ensureDestinationStatusesIsMutable(); destinationStatuses_.add(builderForValue.build()); onChanged(); } else { destinationStatusesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Output only. The intended destinations for the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addDestinationStatuses( int index, com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.Builder builderForValue) { if (destinationStatusesBuilder_ == null) { ensureDestinationStatusesIsMutable(); destinationStatuses_.add(index, builderForValue.build()); onChanged(); } else { destinationStatusesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. The intended destinations for the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAllDestinationStatuses( java.lang.Iterable< ? extends com.google.shopping.merchant.promotions.v1beta.PromotionStatus .DestinationStatus> values) { if (destinationStatusesBuilder_ == null) { ensureDestinationStatusesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, destinationStatuses_); onChanged(); } else { destinationStatusesBuilder_.addAllMessages(values); } return this; } /** * * *
     * Output only. The intended destinations for the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearDestinationStatuses() { if (destinationStatusesBuilder_ == null) { destinationStatuses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { destinationStatusesBuilder_.clear(); } return this; } /** * * *
     * Output only. The intended destinations for the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder removeDestinationStatuses(int index) { if (destinationStatusesBuilder_ == null) { ensureDestinationStatusesIsMutable(); destinationStatuses_.remove(index); onChanged(); } else { destinationStatusesBuilder_.remove(index); } return this; } /** * * *
     * Output only. The intended destinations for the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.Builder getDestinationStatusesBuilder(int index) { return getDestinationStatusesFieldBuilder().getBuilder(index); } /** * * *
     * Output only. The intended destinations for the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatusOrBuilder getDestinationStatusesOrBuilder(int index) { if (destinationStatusesBuilder_ == null) { return destinationStatuses_.get(index); } else { return destinationStatusesBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Output only. The intended destinations for the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List< ? extends com.google.shopping.merchant.promotions.v1beta.PromotionStatus .DestinationStatusOrBuilder> getDestinationStatusesOrBuilderList() { if (destinationStatusesBuilder_ != null) { return destinationStatusesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(destinationStatuses_); } } /** * * *
     * Output only. The intended destinations for the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.Builder addDestinationStatusesBuilder() { return getDestinationStatusesFieldBuilder() .addBuilder( com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus .getDefaultInstance()); } /** * * *
     * Output only. The intended destinations for the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus.Builder addDestinationStatusesBuilder(int index) { return getDestinationStatusesFieldBuilder() .addBuilder( index, com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus .getDefaultInstance()); } /** * * *
     * Output only. The intended destinations for the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus destination_statuses = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List< com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus .Builder> getDestinationStatusesBuilderList() { return getDestinationStatusesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus, com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus .Builder, com.google.shopping.merchant.promotions.v1beta.PromotionStatus .DestinationStatusOrBuilder> getDestinationStatusesFieldBuilder() { if (destinationStatusesBuilder_ == null) { destinationStatusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus, com.google.shopping.merchant.promotions.v1beta.PromotionStatus.DestinationStatus .Builder, com.google.shopping.merchant.promotions.v1beta.PromotionStatus .DestinationStatusOrBuilder>( destinationStatuses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); destinationStatuses_ = null; } return destinationStatusesBuilder_; } private java.util.List< com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue> itemLevelIssues_ = java.util.Collections.emptyList(); private void ensureItemLevelIssuesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { itemLevelIssues_ = new java.util.ArrayList< com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue>( itemLevelIssues_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue, com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Builder, com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssueOrBuilder> itemLevelIssuesBuilder_; /** * * *
     * Output only. A list of issues associated with the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List< com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue> getItemLevelIssuesList() { if (itemLevelIssuesBuilder_ == null) { return java.util.Collections.unmodifiableList(itemLevelIssues_); } else { return itemLevelIssuesBuilder_.getMessageList(); } } /** * * *
     * Output only. A list of issues associated with the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public int getItemLevelIssuesCount() { if (itemLevelIssuesBuilder_ == null) { return itemLevelIssues_.size(); } else { return itemLevelIssuesBuilder_.getCount(); } } /** * * *
     * Output only. A list of issues associated with the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue getItemLevelIssues(int index) { if (itemLevelIssuesBuilder_ == null) { return itemLevelIssues_.get(index); } else { return itemLevelIssuesBuilder_.getMessage(index); } } /** * * *
     * Output only. A list of issues associated with the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setItemLevelIssues( int index, com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue value) { if (itemLevelIssuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemLevelIssuesIsMutable(); itemLevelIssues_.set(index, value); onChanged(); } else { itemLevelIssuesBuilder_.setMessage(index, value); } return this; } /** * * *
     * Output only. A list of issues associated with the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setItemLevelIssues( int index, com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Builder builderForValue) { if (itemLevelIssuesBuilder_ == null) { ensureItemLevelIssuesIsMutable(); itemLevelIssues_.set(index, builderForValue.build()); onChanged(); } else { itemLevelIssuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. A list of issues associated with the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addItemLevelIssues( com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue value) { if (itemLevelIssuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemLevelIssuesIsMutable(); itemLevelIssues_.add(value); onChanged(); } else { itemLevelIssuesBuilder_.addMessage(value); } return this; } /** * * *
     * Output only. A list of issues associated with the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addItemLevelIssues( int index, com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue value) { if (itemLevelIssuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemLevelIssuesIsMutable(); itemLevelIssues_.add(index, value); onChanged(); } else { itemLevelIssuesBuilder_.addMessage(index, value); } return this; } /** * * *
     * Output only. A list of issues associated with the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addItemLevelIssues( com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Builder builderForValue) { if (itemLevelIssuesBuilder_ == null) { ensureItemLevelIssuesIsMutable(); itemLevelIssues_.add(builderForValue.build()); onChanged(); } else { itemLevelIssuesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Output only. A list of issues associated with the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addItemLevelIssues( int index, com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Builder builderForValue) { if (itemLevelIssuesBuilder_ == null) { ensureItemLevelIssuesIsMutable(); itemLevelIssues_.add(index, builderForValue.build()); onChanged(); } else { itemLevelIssuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. A list of issues associated with the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAllItemLevelIssues( java.lang.Iterable< ? extends com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue> values) { if (itemLevelIssuesBuilder_ == null) { ensureItemLevelIssuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, itemLevelIssues_); onChanged(); } else { itemLevelIssuesBuilder_.addAllMessages(values); } return this; } /** * * *
     * Output only. A list of issues associated with the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearItemLevelIssues() { if (itemLevelIssuesBuilder_ == null) { itemLevelIssues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemLevelIssuesBuilder_.clear(); } return this; } /** * * *
     * Output only. A list of issues associated with the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder removeItemLevelIssues(int index) { if (itemLevelIssuesBuilder_ == null) { ensureItemLevelIssuesIsMutable(); itemLevelIssues_.remove(index); onChanged(); } else { itemLevelIssuesBuilder_.remove(index); } return this; } /** * * *
     * Output only. A list of issues associated with the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Builder getItemLevelIssuesBuilder(int index) { return getItemLevelIssuesFieldBuilder().getBuilder(index); } /** * * *
     * Output only. A list of issues associated with the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssueOrBuilder getItemLevelIssuesOrBuilder(int index) { if (itemLevelIssuesBuilder_ == null) { return itemLevelIssues_.get(index); } else { return itemLevelIssuesBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Output only. A list of issues associated with the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List< ? extends com.google.shopping.merchant.promotions.v1beta.PromotionStatus .ItemLevelIssueOrBuilder> getItemLevelIssuesOrBuilderList() { if (itemLevelIssuesBuilder_ != null) { return itemLevelIssuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(itemLevelIssues_); } } /** * * *
     * Output only. A list of issues associated with the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Builder addItemLevelIssuesBuilder() { return getItemLevelIssuesFieldBuilder() .addBuilder( com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue .getDefaultInstance()); } /** * * *
     * Output only. A list of issues associated with the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Builder addItemLevelIssuesBuilder(int index) { return getItemLevelIssuesFieldBuilder() .addBuilder( index, com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue .getDefaultInstance()); } /** * * *
     * Output only. A list of issues associated with the promotion.
     * 
* * * repeated .google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue item_level_issues = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List< com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Builder> getItemLevelIssuesBuilderList() { return getItemLevelIssuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue, com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue.Builder, com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssueOrBuilder> getItemLevelIssuesFieldBuilder() { if (itemLevelIssuesBuilder_ == null) { itemLevelIssuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue, com.google.shopping.merchant.promotions.v1beta.PromotionStatus.ItemLevelIssue .Builder, com.google.shopping.merchant.promotions.v1beta.PromotionStatus .ItemLevelIssueOrBuilder>( itemLevelIssues_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); itemLevelIssues_ = null; } return itemLevelIssuesBuilder_; } private com.google.protobuf.Timestamp creationDate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> creationDateBuilder_; /** * * *
     * Output only. Date on which the promotion has been created
     * in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time,
     * and offset, for example `2020-01-02T09:00:00+01:00` or
     * `2020-01-02T09:00:00Z`
     * 
* * * .google.protobuf.Timestamp creation_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the creationDate field is set. */ public boolean hasCreationDate() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * Output only. Date on which the promotion has been created
     * in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time,
     * and offset, for example `2020-01-02T09:00:00+01:00` or
     * `2020-01-02T09:00:00Z`
     * 
* * * .google.protobuf.Timestamp creation_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The creationDate. */ public com.google.protobuf.Timestamp getCreationDate() { if (creationDateBuilder_ == null) { return creationDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationDate_; } else { return creationDateBuilder_.getMessage(); } } /** * * *
     * Output only. Date on which the promotion has been created
     * in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time,
     * and offset, for example `2020-01-02T09:00:00+01:00` or
     * `2020-01-02T09:00:00Z`
     * 
* * * .google.protobuf.Timestamp creation_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCreationDate(com.google.protobuf.Timestamp value) { if (creationDateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } creationDate_ = value; } else { creationDateBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. Date on which the promotion has been created
     * in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time,
     * and offset, for example `2020-01-02T09:00:00+01:00` or
     * `2020-01-02T09:00:00Z`
     * 
* * * .google.protobuf.Timestamp creation_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCreationDate(com.google.protobuf.Timestamp.Builder builderForValue) { if (creationDateBuilder_ == null) { creationDate_ = builderForValue.build(); } else { creationDateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. Date on which the promotion has been created
     * in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time,
     * and offset, for example `2020-01-02T09:00:00+01:00` or
     * `2020-01-02T09:00:00Z`
     * 
* * * .google.protobuf.Timestamp creation_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeCreationDate(com.google.protobuf.Timestamp value) { if (creationDateBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && creationDate_ != null && creationDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreationDateBuilder().mergeFrom(value); } else { creationDate_ = value; } } else { creationDateBuilder_.mergeFrom(value); } if (creationDate_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
     * Output only. Date on which the promotion has been created
     * in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time,
     * and offset, for example `2020-01-02T09:00:00+01:00` or
     * `2020-01-02T09:00:00Z`
     * 
* * * .google.protobuf.Timestamp creation_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearCreationDate() { bitField0_ = (bitField0_ & ~0x00000004); creationDate_ = null; if (creationDateBuilder_ != null) { creationDateBuilder_.dispose(); creationDateBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. Date on which the promotion has been created
     * in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time,
     * and offset, for example `2020-01-02T09:00:00+01:00` or
     * `2020-01-02T09:00:00Z`
     * 
* * * .google.protobuf.Timestamp creation_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getCreationDateBuilder() { bitField0_ |= 0x00000004; onChanged(); return getCreationDateFieldBuilder().getBuilder(); } /** * * *
     * Output only. Date on which the promotion has been created
     * in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time,
     * and offset, for example `2020-01-02T09:00:00+01:00` or
     * `2020-01-02T09:00:00Z`
     * 
* * * .google.protobuf.Timestamp creation_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getCreationDateOrBuilder() { if (creationDateBuilder_ != null) { return creationDateBuilder_.getMessageOrBuilder(); } else { return creationDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationDate_; } } /** * * *
     * Output only. Date on which the promotion has been created
     * in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time,
     * and offset, for example `2020-01-02T09:00:00+01:00` or
     * `2020-01-02T09:00:00Z`
     * 
* * * .google.protobuf.Timestamp creation_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreationDateFieldBuilder() { if (creationDateBuilder_ == null) { creationDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreationDate(), getParentForChildren(), isClean()); creationDate_ = null; } return creationDateBuilder_; } private com.google.protobuf.Timestamp lastUpdateDate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdateDateBuilder_; /** * * *
     * Output only. Date on which the promotion status has been last updated
     * in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time,
     * and offset, for example `2020-01-02T09:00:00+01:00` or
     * `2020-01-02T09:00:00Z`
     * 
* * * .google.protobuf.Timestamp last_update_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the lastUpdateDate field is set. */ public boolean hasLastUpdateDate() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * Output only. Date on which the promotion status has been last updated
     * in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time,
     * and offset, for example `2020-01-02T09:00:00+01:00` or
     * `2020-01-02T09:00:00Z`
     * 
* * * .google.protobuf.Timestamp last_update_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The lastUpdateDate. */ public com.google.protobuf.Timestamp getLastUpdateDate() { if (lastUpdateDateBuilder_ == null) { return lastUpdateDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateDate_; } else { return lastUpdateDateBuilder_.getMessage(); } } /** * * *
     * Output only. Date on which the promotion status has been last updated
     * in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time,
     * and offset, for example `2020-01-02T09:00:00+01:00` or
     * `2020-01-02T09:00:00Z`
     * 
* * * .google.protobuf.Timestamp last_update_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setLastUpdateDate(com.google.protobuf.Timestamp value) { if (lastUpdateDateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastUpdateDate_ = value; } else { lastUpdateDateBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. Date on which the promotion status has been last updated
     * in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time,
     * and offset, for example `2020-01-02T09:00:00+01:00` or
     * `2020-01-02T09:00:00Z`
     * 
* * * .google.protobuf.Timestamp last_update_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setLastUpdateDate(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateDateBuilder_ == null) { lastUpdateDate_ = builderForValue.build(); } else { lastUpdateDateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. Date on which the promotion status has been last updated
     * in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time,
     * and offset, for example `2020-01-02T09:00:00+01:00` or
     * `2020-01-02T09:00:00Z`
     * 
* * * .google.protobuf.Timestamp last_update_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeLastUpdateDate(com.google.protobuf.Timestamp value) { if (lastUpdateDateBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && lastUpdateDate_ != null && lastUpdateDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastUpdateDateBuilder().mergeFrom(value); } else { lastUpdateDate_ = value; } } else { lastUpdateDateBuilder_.mergeFrom(value); } if (lastUpdateDate_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
     * Output only. Date on which the promotion status has been last updated
     * in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time,
     * and offset, for example `2020-01-02T09:00:00+01:00` or
     * `2020-01-02T09:00:00Z`
     * 
* * * .google.protobuf.Timestamp last_update_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearLastUpdateDate() { bitField0_ = (bitField0_ & ~0x00000008); lastUpdateDate_ = null; if (lastUpdateDateBuilder_ != null) { lastUpdateDateBuilder_.dispose(); lastUpdateDateBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. Date on which the promotion status has been last updated
     * in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time,
     * and offset, for example `2020-01-02T09:00:00+01:00` or
     * `2020-01-02T09:00:00Z`
     * 
* * * .google.protobuf.Timestamp last_update_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getLastUpdateDateBuilder() { bitField0_ |= 0x00000008; onChanged(); return getLastUpdateDateFieldBuilder().getBuilder(); } /** * * *
     * Output only. Date on which the promotion status has been last updated
     * in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time,
     * and offset, for example `2020-01-02T09:00:00+01:00` or
     * `2020-01-02T09:00:00Z`
     * 
* * * .google.protobuf.Timestamp last_update_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getLastUpdateDateOrBuilder() { if (lastUpdateDateBuilder_ != null) { return lastUpdateDateBuilder_.getMessageOrBuilder(); } else { return lastUpdateDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateDate_; } } /** * * *
     * Output only. Date on which the promotion status has been last updated
     * in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time,
     * and offset, for example `2020-01-02T09:00:00+01:00` or
     * `2020-01-02T09:00:00Z`
     * 
* * * .google.protobuf.Timestamp last_update_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastUpdateDateFieldBuilder() { if (lastUpdateDateBuilder_ == null) { lastUpdateDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getLastUpdateDate(), getParentForChildren(), isClean()); lastUpdateDate_ = null; } return lastUpdateDateBuilder_; } @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.shopping.merchant.promotions.v1beta.PromotionStatus) } // @@protoc_insertion_point(class_scope:google.shopping.merchant.promotions.v1beta.PromotionStatus) private static final com.google.shopping.merchant.promotions.v1beta.PromotionStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.shopping.merchant.promotions.v1beta.PromotionStatus(); } public static com.google.shopping.merchant.promotions.v1beta.PromotionStatus getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PromotionStatus 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.shopping.merchant.promotions.v1beta.PromotionStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy