com.google.shopping.merchant.accounts.v1beta.AccountIssue Maven / Gradle / Ivy
/*
* 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/accounts/v1beta/accountissue.proto
// Protobuf Java Version: 3.25.5
package com.google.shopping.merchant.accounts.v1beta;
/**
*
*
*
* An
* [`AccountIssue`](https://support.google.com/merchants/answer/12153802?sjid=17798438912526418908-EU#account).
*
*
* Protobuf type {@code google.shopping.merchant.accounts.v1beta.AccountIssue}
*/
public final class AccountIssue extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1beta.AccountIssue)
AccountIssueOrBuilder {
private static final long serialVersionUID = 0L;
// Use AccountIssue.newBuilder() to construct.
private AccountIssue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AccountIssue() {
name_ = "";
title_ = "";
severity_ = 0;
impactedDestinations_ = java.util.Collections.emptyList();
detail_ = "";
documentationUri_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AccountIssue();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.shopping.merchant.accounts.v1beta.AccountIssueProto
.internal_static_google_shopping_merchant_accounts_v1beta_AccountIssue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.shopping.merchant.accounts.v1beta.AccountIssueProto
.internal_static_google_shopping_merchant_accounts_v1beta_AccountIssue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.shopping.merchant.accounts.v1beta.AccountIssue.class,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.Builder.class);
}
/**
*
*
*
* All possible issue severities.
*
*
* Protobuf enum {@code google.shopping.merchant.accounts.v1beta.AccountIssue.Severity}
*/
public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* The severity is unknown.
*
*
* SEVERITY_UNSPECIFIED = 0;
*/
SEVERITY_UNSPECIFIED(0),
/**
*
*
*
* The issue causes offers to not serve.
*
*
* CRITICAL = 1;
*/
CRITICAL(1),
/**
*
*
*
* The issue might affect offers (in the future) or might be an
* indicator of issues with offers.
*
*
* ERROR = 2;
*/
ERROR(2),
/**
*
*
*
* The issue is a suggestion for improvement.
*
*
* SUGGESTION = 3;
*/
SUGGESTION(3),
UNRECOGNIZED(-1),
;
/**
*
*
*
* The severity is unknown.
*
*
* SEVERITY_UNSPECIFIED = 0;
*/
public static final int SEVERITY_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* The issue causes offers to not serve.
*
*
* CRITICAL = 1;
*/
public static final int CRITICAL_VALUE = 1;
/**
*
*
*
* The issue might affect offers (in the future) or might be an
* indicator of issues with offers.
*
*
* ERROR = 2;
*/
public static final int ERROR_VALUE = 2;
/**
*
*
*
* The issue is a suggestion for improvement.
*
*
* SUGGESTION = 3;
*/
public static final int SUGGESTION_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 CRITICAL;
case 2:
return ERROR;
case 3:
return SUGGESTION;
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.accounts.v1beta.AccountIssue.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.accounts.v1beta.AccountIssue.Severity)
}
public interface ImpactedDestinationOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The impacted reporting context.
*
*
*
* optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1;
*
*
* @return Whether the reportingContext field is set.
*/
boolean hasReportingContext();
/**
*
*
*
* The impacted reporting context.
*
*
*
* optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1;
*
*
* @return The enum numeric value on the wire for reportingContext.
*/
int getReportingContextValue();
/**
*
*
*
* The impacted reporting context.
*
*
*
* optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1;
*
*
* @return The reportingContext.
*/
com.google.shopping.type.ReportingContext.ReportingContextEnum getReportingContext();
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
java.util.List<
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact>
getImpactsList();
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact getImpacts(
int index);
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
int getImpactsCount();
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
java.util.List<
? extends
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.ImpactOrBuilder>
getImpactsOrBuilderList();
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.ImpactOrBuilder
getImpactsOrBuilder(int index);
}
/**
*
*
*
* The impact of the issue on a destination.
*
*
* Protobuf type {@code google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination}
*/
public static final class ImpactedDestination extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination)
ImpactedDestinationOrBuilder {
private static final long serialVersionUID = 0L;
// Use ImpactedDestination.newBuilder() to construct.
private ImpactedDestination(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ImpactedDestination() {
reportingContext_ = 0;
impacts_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ImpactedDestination();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.shopping.merchant.accounts.v1beta.AccountIssueProto
.internal_static_google_shopping_merchant_accounts_v1beta_AccountIssue_ImpactedDestination_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.shopping.merchant.accounts.v1beta.AccountIssueProto
.internal_static_google_shopping_merchant_accounts_v1beta_AccountIssue_ImpactedDestination_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.class,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Builder
.class);
}
public interface ImpactOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The [CLDR region code](https://cldr.unicode.org/) where this issue
* applies.
*
*
* string region_code = 1;
*
* @return The regionCode.
*/
java.lang.String getRegionCode();
/**
*
*
*
* The [CLDR region code](https://cldr.unicode.org/) where this issue
* applies.
*
*
* string region_code = 1;
*
* @return The bytes for regionCode.
*/
com.google.protobuf.ByteString getRegionCodeBytes();
/**
*
*
*
* The severity of the issue on the destination and region.
*
*
* .google.shopping.merchant.accounts.v1beta.AccountIssue.Severity severity = 2;
*
* @return The enum numeric value on the wire for severity.
*/
int getSeverityValue();
/**
*
*
*
* The severity of the issue on the destination and region.
*
*
* .google.shopping.merchant.accounts.v1beta.AccountIssue.Severity severity = 2;
*
* @return The severity.
*/
com.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity getSeverity();
}
/**
*
*
*
* The impact of the issue on a region.
*
*
* Protobuf type {@code
* google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact}
*/
public static final class Impact extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact)
ImpactOrBuilder {
private static final long serialVersionUID = 0L;
// Use Impact.newBuilder() to construct.
private Impact(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Impact() {
regionCode_ = "";
severity_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Impact();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.shopping.merchant.accounts.v1beta.AccountIssueProto
.internal_static_google_shopping_merchant_accounts_v1beta_AccountIssue_ImpactedDestination_Impact_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.shopping.merchant.accounts.v1beta.AccountIssueProto
.internal_static_google_shopping_merchant_accounts_v1beta_AccountIssue_ImpactedDestination_Impact_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
.class,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
.Builder.class);
}
public static final int REGION_CODE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object regionCode_ = "";
/**
*
*
*
* The [CLDR region code](https://cldr.unicode.org/) where this issue
* applies.
*
*
* string region_code = 1;
*
* @return The regionCode.
*/
@java.lang.Override
public java.lang.String getRegionCode() {
java.lang.Object ref = regionCode_;
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();
regionCode_ = s;
return s;
}
}
/**
*
*
*
* The [CLDR region code](https://cldr.unicode.org/) where this issue
* applies.
*
*
* string region_code = 1;
*
* @return The bytes for regionCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRegionCodeBytes() {
java.lang.Object ref = regionCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
regionCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SEVERITY_FIELD_NUMBER = 2;
private int severity_ = 0;
/**
*
*
*
* The severity of the issue on the destination and region.
*
*
* .google.shopping.merchant.accounts.v1beta.AccountIssue.Severity severity = 2;
*
* @return The enum numeric value on the wire for severity.
*/
@java.lang.Override
public int getSeverityValue() {
return severity_;
}
/**
*
*
*
* The severity of the issue on the destination and region.
*
*
* .google.shopping.merchant.accounts.v1beta.AccountIssue.Severity severity = 2;
*
* @return The severity.
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity getSeverity() {
com.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity result =
com.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity.forNumber(severity_);
return result == null
? com.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, regionCode_);
}
if (severity_
!= com.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity
.SEVERITY_UNSPECIFIED
.getNumber()) {
output.writeEnum(2, severity_);
}
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(regionCode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, regionCode_);
}
if (severity_
!= com.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity
.SEVERITY_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, severity_);
}
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.accounts.v1beta.AccountIssue.ImpactedDestination.Impact)) {
return super.equals(obj);
}
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact other =
(com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact)
obj;
if (!getRegionCode().equals(other.getRegionCode())) return false;
if (severity_ != other.severity_) 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) + REGION_CODE_FIELD_NUMBER;
hash = (53 * hash) + getRegionCode().hashCode();
hash = (37 * hash) + SEVERITY_FIELD_NUMBER;
hash = (53 * hash) + severity_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact
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.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact
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.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact
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.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact
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.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact
parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact
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.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
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 impact of the issue on a region.
*
*
* Protobuf type {@code
* google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact)
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.ImpactOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.shopping.merchant.accounts.v1beta.AccountIssueProto
.internal_static_google_shopping_merchant_accounts_v1beta_AccountIssue_ImpactedDestination_Impact_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.shopping.merchant.accounts.v1beta.AccountIssueProto
.internal_static_google_shopping_merchant_accounts_v1beta_AccountIssue_ImpactedDestination_Impact_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact.class,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact.Builder.class);
}
// Construct using
// com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
regionCode_ = "";
severity_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.shopping.merchant.accounts.v1beta.AccountIssueProto
.internal_static_google_shopping_merchant_accounts_v1beta_AccountIssue_ImpactedDestination_Impact_descriptor;
}
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
getDefaultInstanceForType() {
return com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact.getDefaultInstance();
}
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
build() {
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
buildPartial() {
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
result =
new com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.regionCode_ = regionCode_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.severity_ = severity_;
}
}
@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.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact) {
return mergeFrom(
(com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
other) {
if (other
== com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact.getDefaultInstance()) return this;
if (!other.getRegionCode().isEmpty()) {
regionCode_ = other.regionCode_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.severity_ != 0) {
setSeverityValue(other.getSeverityValue());
}
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:
{
regionCode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
severity_ = 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 java.lang.Object regionCode_ = "";
/**
*
*
*
* The [CLDR region code](https://cldr.unicode.org/) where this issue
* applies.
*
*
* string region_code = 1;
*
* @return The regionCode.
*/
public java.lang.String getRegionCode() {
java.lang.Object ref = regionCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
regionCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The [CLDR region code](https://cldr.unicode.org/) where this issue
* applies.
*
*
* string region_code = 1;
*
* @return The bytes for regionCode.
*/
public com.google.protobuf.ByteString getRegionCodeBytes() {
java.lang.Object ref = regionCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
regionCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The [CLDR region code](https://cldr.unicode.org/) where this issue
* applies.
*
*
* string region_code = 1;
*
* @param value The regionCode to set.
* @return This builder for chaining.
*/
public Builder setRegionCode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
regionCode_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The [CLDR region code](https://cldr.unicode.org/) where this issue
* applies.
*
*
* string region_code = 1;
*
* @return This builder for chaining.
*/
public Builder clearRegionCode() {
regionCode_ = getDefaultInstance().getRegionCode();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* The [CLDR region code](https://cldr.unicode.org/) where this issue
* applies.
*
*
* string region_code = 1;
*
* @param value The bytes for regionCode to set.
* @return This builder for chaining.
*/
public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
regionCode_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int severity_ = 0;
/**
*
*
*
* The severity of the issue on the destination and region.
*
*
* .google.shopping.merchant.accounts.v1beta.AccountIssue.Severity severity = 2;
*
*
* @return The enum numeric value on the wire for severity.
*/
@java.lang.Override
public int getSeverityValue() {
return severity_;
}
/**
*
*
*
* The severity of the issue on the destination and region.
*
*
* .google.shopping.merchant.accounts.v1beta.AccountIssue.Severity severity = 2;
*
*
* @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;
}
/**
*
*
*
* The severity of the issue on the destination and region.
*
*
* .google.shopping.merchant.accounts.v1beta.AccountIssue.Severity severity = 2;
*
*
* @return The severity.
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity getSeverity() {
com.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity result =
com.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity.forNumber(
severity_);
return result == null
? com.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity.UNRECOGNIZED
: result;
}
/**
*
*
*
* The severity of the issue on the destination and region.
*
*
* .google.shopping.merchant.accounts.v1beta.AccountIssue.Severity severity = 2;
*
*
* @param value The severity to set.
* @return This builder for chaining.
*/
public Builder setSeverity(
com.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
severity_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* The severity of the issue on the destination and region.
*
*
* .google.shopping.merchant.accounts.v1beta.AccountIssue.Severity severity = 2;
*
*
* @return This builder for chaining.
*/
public Builder clearSeverity() {
bitField0_ = (bitField0_ & ~0x00000002);
severity_ = 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.accounts.v1beta.AccountIssue.ImpactedDestination.Impact)
}
// @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact)
private static final com.google.shopping.merchant.accounts.v1beta.AccountIssue
.ImpactedDestination.Impact
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact();
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Impact 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.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int REPORTING_CONTEXT_FIELD_NUMBER = 1;
private int reportingContext_ = 0;
/**
*
*
*
* The impacted reporting context.
*
*
*
* optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1;
*
*
* @return Whether the reportingContext field is set.
*/
@java.lang.Override
public boolean hasReportingContext() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The impacted reporting context.
*
*
*
* optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1;
*
*
* @return The enum numeric value on the wire for reportingContext.
*/
@java.lang.Override
public int getReportingContextValue() {
return reportingContext_;
}
/**
*
*
*
* The impacted reporting context.
*
*
*
* optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1;
*
*
* @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 IMPACTS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List<
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact>
impacts_;
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
@java.lang.Override
public java.util.List<
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact>
getImpactsList() {
return impacts_;
}
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.ImpactOrBuilder>
getImpactsOrBuilderList() {
return impacts_;
}
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
@java.lang.Override
public int getImpactsCount() {
return impacts_.size();
}
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
getImpacts(int index) {
return impacts_.get(index);
}
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.ImpactOrBuilder
getImpactsOrBuilder(int index) {
return impacts_.get(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 (((bitField0_ & 0x00000001) != 0)) {
output.writeEnum(1, reportingContext_);
}
for (int i = 0; i < impacts_.size(); i++) {
output.writeMessage(2, impacts_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, reportingContext_);
}
for (int i = 0; i < impacts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, impacts_.get(i));
}
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.accounts.v1beta.AccountIssue.ImpactedDestination)) {
return super.equals(obj);
}
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination other =
(com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination) obj;
if (hasReportingContext() != other.hasReportingContext()) return false;
if (hasReportingContext()) {
if (reportingContext_ != other.reportingContext_) return false;
}
if (!getImpactsList().equals(other.getImpactsList())) 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 (hasReportingContext()) {
hash = (37 * hash) + REPORTING_CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + reportingContext_;
}
if (getImpactsCount() > 0) {
hash = (37 * hash) + IMPACTS_FIELD_NUMBER;
hash = (53 * hash) + getImpactsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
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.accounts.v1beta.AccountIssue.ImpactedDestination
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
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.accounts.v1beta.AccountIssue.ImpactedDestination
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
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.accounts.v1beta.AccountIssue.ImpactedDestination
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
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.accounts.v1beta.AccountIssue.ImpactedDestination
parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
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.accounts.v1beta.AccountIssue.ImpactedDestination 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 impact of the issue on a destination.
*
*
* Protobuf type {@code
* google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination)
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestinationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.shopping.merchant.accounts.v1beta.AccountIssueProto
.internal_static_google_shopping_merchant_accounts_v1beta_AccountIssue_ImpactedDestination_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.shopping.merchant.accounts.v1beta.AccountIssueProto
.internal_static_google_shopping_merchant_accounts_v1beta_AccountIssue_ImpactedDestination_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.class,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.Builder.class);
}
// Construct using
// com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.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;
if (impactsBuilder_ == null) {
impacts_ = java.util.Collections.emptyList();
} else {
impacts_ = null;
impactsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.shopping.merchant.accounts.v1beta.AccountIssueProto
.internal_static_google_shopping_merchant_accounts_v1beta_AccountIssue_ImpactedDestination_descriptor;
}
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
getDefaultInstanceForType() {
return com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.getDefaultInstance();
}
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination build() {
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
buildPartial() {
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination result =
new com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination result) {
if (impactsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
impacts_ = java.util.Collections.unmodifiableList(impacts_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.impacts_ = impacts_;
} else {
result.impacts_ = impactsBuilder_.build();
}
}
private void buildPartial0(
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.reportingContext_ = reportingContext_;
to_bitField0_ |= 0x00000001;
}
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.accounts.v1beta.AccountIssue.ImpactedDestination) {
return mergeFrom(
(com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination other) {
if (other
== com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.getDefaultInstance()) return this;
if (other.hasReportingContext()) {
setReportingContext(other.getReportingContext());
}
if (impactsBuilder_ == null) {
if (!other.impacts_.isEmpty()) {
if (impacts_.isEmpty()) {
impacts_ = other.impacts_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureImpactsIsMutable();
impacts_.addAll(other.impacts_);
}
onChanged();
}
} else {
if (!other.impacts_.isEmpty()) {
if (impactsBuilder_.isEmpty()) {
impactsBuilder_.dispose();
impactsBuilder_ = null;
impacts_ = other.impacts_;
bitField0_ = (bitField0_ & ~0x00000002);
impactsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getImpactsFieldBuilder()
: null;
} else {
impactsBuilder_.addAllMessages(other.impacts_);
}
}
}
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 18:
{
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact
m =
input.readMessage(
com.google.shopping.merchant.accounts.v1beta.AccountIssue
.ImpactedDestination.Impact.parser(),
extensionRegistry);
if (impactsBuilder_ == null) {
ensureImpactsIsMutable();
impacts_.add(m);
} else {
impactsBuilder_.addMessage(m);
}
break;
} // case 18
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;
/**
*
*
*
* The impacted reporting context.
*
*
*
* optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1;
*
*
* @return Whether the reportingContext field is set.
*/
@java.lang.Override
public boolean hasReportingContext() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The impacted reporting context.
*
*
*
* optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1;
*
*
* @return The enum numeric value on the wire for reportingContext.
*/
@java.lang.Override
public int getReportingContextValue() {
return reportingContext_;
}
/**
*
*
*
* The impacted reporting context.
*
*
*
* optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1;
*
*
* @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;
}
/**
*
*
*
* The impacted reporting context.
*
*
*
* optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1;
*
*
* @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;
}
/**
*
*
*
* The impacted reporting context.
*
*
*
* optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1;
*
*
* @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;
}
/**
*
*
*
* The impacted reporting context.
*
*
*
* optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1;
*
*
* @return This builder for chaining.
*/
public Builder clearReportingContext() {
bitField0_ = (bitField0_ & ~0x00000001);
reportingContext_ = 0;
onChanged();
return this;
}
private java.util.List<
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact>
impacts_ = java.util.Collections.emptyList();
private void ensureImpactsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
impacts_ =
new java.util.ArrayList<
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact>(impacts_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
.Builder,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.ImpactOrBuilder>
impactsBuilder_;
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
public java.util.List<
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact>
getImpactsList() {
if (impactsBuilder_ == null) {
return java.util.Collections.unmodifiableList(impacts_);
} else {
return impactsBuilder_.getMessageList();
}
}
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
public int getImpactsCount() {
if (impactsBuilder_ == null) {
return impacts_.size();
} else {
return impactsBuilder_.getCount();
}
}
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
public com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
getImpacts(int index) {
if (impactsBuilder_ == null) {
return impacts_.get(index);
} else {
return impactsBuilder_.getMessage(index);
}
}
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
public Builder setImpacts(
int index,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
value) {
if (impactsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureImpactsIsMutable();
impacts_.set(index, value);
onChanged();
} else {
impactsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
public Builder setImpacts(
int index,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
.Builder
builderForValue) {
if (impactsBuilder_ == null) {
ensureImpactsIsMutable();
impacts_.set(index, builderForValue.build());
onChanged();
} else {
impactsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
public Builder addImpacts(
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
value) {
if (impactsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureImpactsIsMutable();
impacts_.add(value);
onChanged();
} else {
impactsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
public Builder addImpacts(
int index,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
value) {
if (impactsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureImpactsIsMutable();
impacts_.add(index, value);
onChanged();
} else {
impactsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
public Builder addImpacts(
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
.Builder
builderForValue) {
if (impactsBuilder_ == null) {
ensureImpactsIsMutable();
impacts_.add(builderForValue.build());
onChanged();
} else {
impactsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
public Builder addImpacts(
int index,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
.Builder
builderForValue) {
if (impactsBuilder_ == null) {
ensureImpactsIsMutable();
impacts_.add(index, builderForValue.build());
onChanged();
} else {
impactsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
public Builder addAllImpacts(
java.lang.Iterable<
? extends
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact>
values) {
if (impactsBuilder_ == null) {
ensureImpactsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, impacts_);
onChanged();
} else {
impactsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
public Builder clearImpacts() {
if (impactsBuilder_ == null) {
impacts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
impactsBuilder_.clear();
}
return this;
}
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
public Builder removeImpacts(int index) {
if (impactsBuilder_ == null) {
ensureImpactsIsMutable();
impacts_.remove(index);
onChanged();
} else {
impactsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
public com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
.Builder
getImpactsBuilder(int index) {
return getImpactsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
public com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.ImpactOrBuilder
getImpactsOrBuilder(int index) {
if (impactsBuilder_ == null) {
return impacts_.get(index);
} else {
return impactsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
public java.util.List<
? extends
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.ImpactOrBuilder>
getImpactsOrBuilderList() {
if (impactsBuilder_ != null) {
return impactsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(impacts_);
}
}
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
public com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
.Builder
addImpactsBuilder() {
return getImpactsFieldBuilder()
.addBuilder(
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
.getDefaultInstance());
}
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
public com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
.Builder
addImpactsBuilder(int index) {
return getImpactsFieldBuilder()
.addBuilder(
index,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
.getDefaultInstance());
}
/**
*
*
*
* The (negative) impact for various regions on the given destination.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact impacts = 2;
*
*/
public java.util.List<
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
.Builder>
getImpactsBuilderList() {
return getImpactsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
.Builder,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.ImpactOrBuilder>
getImpactsFieldBuilder() {
if (impactsBuilder_ == null) {
impactsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.Impact.Builder,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.ImpactOrBuilder>(
impacts_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
impacts_ = null;
}
return impactsBuilder_;
}
@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.accounts.v1beta.AccountIssue.ImpactedDestination)
}
// @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination)
private static final com.google.shopping.merchant.accounts.v1beta.AccountIssue
.ImpactedDestination
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination();
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ImpactedDestination 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.accounts.v1beta.AccountIssue.ImpactedDestination
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* Identifier. The resource name of the account issue.
* Format: `accounts/{account}/issues/{id}`
*
*
* string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
*
*
* Identifier. The resource name of the account issue.
* Format: `accounts/{account}/issues/{id}`
*
*
* string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TITLE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object title_ = "";
/**
*
*
*
* The localized title of the issue.
*
*
* string title = 2;
*
* @return The title.
*/
@java.lang.Override
public java.lang.String getTitle() {
java.lang.Object ref = title_;
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();
title_ = s;
return s;
}
}
/**
*
*
*
* The localized title of the issue.
*
*
* string title = 2;
*
* @return The bytes for title.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SEVERITY_FIELD_NUMBER = 3;
private int severity_ = 0;
/**
*
*
*
* The overall severity of the issue.
*
*
* .google.shopping.merchant.accounts.v1beta.AccountIssue.Severity severity = 3;
*
* @return The enum numeric value on the wire for severity.
*/
@java.lang.Override
public int getSeverityValue() {
return severity_;
}
/**
*
*
*
* The overall severity of the issue.
*
*
* .google.shopping.merchant.accounts.v1beta.AccountIssue.Severity severity = 3;
*
* @return The severity.
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity getSeverity() {
com.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity result =
com.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity.forNumber(severity_);
return result == null
? com.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity.UNRECOGNIZED
: result;
}
public static final int IMPACTED_DESTINATIONS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List<
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination>
impactedDestinations_;
/**
*
*
*
* The impact this issue has on various destinations.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination impacted_destinations = 4;
*
*/
@java.lang.Override
public java.util.List<
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination>
getImpactedDestinationsList() {
return impactedDestinations_;
}
/**
*
*
*
* The impact this issue has on various destinations.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination impacted_destinations = 4;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.shopping.merchant.accounts.v1beta.AccountIssue
.ImpactedDestinationOrBuilder>
getImpactedDestinationsOrBuilderList() {
return impactedDestinations_;
}
/**
*
*
*
* The impact this issue has on various destinations.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination impacted_destinations = 4;
*
*/
@java.lang.Override
public int getImpactedDestinationsCount() {
return impactedDestinations_.size();
}
/**
*
*
*
* The impact this issue has on various destinations.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination impacted_destinations = 4;
*
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
getImpactedDestinations(int index) {
return impactedDestinations_.get(index);
}
/**
*
*
*
* The impact this issue has on various destinations.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination impacted_destinations = 4;
*
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestinationOrBuilder
getImpactedDestinationsOrBuilder(int index) {
return impactedDestinations_.get(index);
}
public static final int DETAIL_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object detail_ = "";
/**
*
*
*
* Further localized details about the issue.
*
*
* string detail = 5;
*
* @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;
}
}
/**
*
*
*
* Further localized details about the issue.
*
*
* string detail = 5;
*
* @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_URI_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object documentationUri_ = "";
/**
*
*
*
* Link to Merchant Center Help Center providing further information about the
* issue and how to fix it.
*
*
* string documentation_uri = 6;
*
* @return The documentationUri.
*/
@java.lang.Override
public java.lang.String getDocumentationUri() {
java.lang.Object ref = documentationUri_;
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();
documentationUri_ = s;
return s;
}
}
/**
*
*
*
* Link to Merchant Center Help Center providing further information about the
* issue and how to fix it.
*
*
* string documentation_uri = 6;
*
* @return The bytes for documentationUri.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDocumentationUriBytes() {
java.lang.Object ref = documentationUri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
documentationUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_);
}
if (severity_
!= com.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity.SEVERITY_UNSPECIFIED
.getNumber()) {
output.writeEnum(3, severity_);
}
for (int i = 0; i < impactedDestinations_.size(); i++) {
output.writeMessage(4, impactedDestinations_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, detail_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentationUri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, documentationUri_);
}
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(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_);
}
if (severity_
!= com.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity.SEVERITY_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, severity_);
}
for (int i = 0; i < impactedDestinations_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(4, impactedDestinations_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, detail_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentationUri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, documentationUri_);
}
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.accounts.v1beta.AccountIssue)) {
return super.equals(obj);
}
com.google.shopping.merchant.accounts.v1beta.AccountIssue other =
(com.google.shopping.merchant.accounts.v1beta.AccountIssue) obj;
if (!getName().equals(other.getName())) return false;
if (!getTitle().equals(other.getTitle())) return false;
if (severity_ != other.severity_) return false;
if (!getImpactedDestinationsList().equals(other.getImpactedDestinationsList())) return false;
if (!getDetail().equals(other.getDetail())) return false;
if (!getDocumentationUri().equals(other.getDocumentationUri())) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + TITLE_FIELD_NUMBER;
hash = (53 * hash) + getTitle().hashCode();
hash = (37 * hash) + SEVERITY_FIELD_NUMBER;
hash = (53 * hash) + severity_;
if (getImpactedDestinationsCount() > 0) {
hash = (37 * hash) + IMPACTED_DESTINATIONS_FIELD_NUMBER;
hash = (53 * hash) + getImpactedDestinationsList().hashCode();
}
hash = (37 * hash) + DETAIL_FIELD_NUMBER;
hash = (53 * hash) + getDetail().hashCode();
hash = (37 * hash) + DOCUMENTATION_URI_FIELD_NUMBER;
hash = (53 * hash) + getDocumentationUri().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue 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.accounts.v1beta.AccountIssue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue 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.accounts.v1beta.AccountIssue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue 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.accounts.v1beta.AccountIssue parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue 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.accounts.v1beta.AccountIssue parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue 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.accounts.v1beta.AccountIssue 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;
}
/**
*
*
*
* An
* [`AccountIssue`](https://support.google.com/merchants/answer/12153802?sjid=17798438912526418908-EU#account).
*
*
* Protobuf type {@code google.shopping.merchant.accounts.v1beta.AccountIssue}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1beta.AccountIssue)
com.google.shopping.merchant.accounts.v1beta.AccountIssueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.shopping.merchant.accounts.v1beta.AccountIssueProto
.internal_static_google_shopping_merchant_accounts_v1beta_AccountIssue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.shopping.merchant.accounts.v1beta.AccountIssueProto
.internal_static_google_shopping_merchant_accounts_v1beta_AccountIssue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.shopping.merchant.accounts.v1beta.AccountIssue.class,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.Builder.class);
}
// Construct using com.google.shopping.merchant.accounts.v1beta.AccountIssue.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
title_ = "";
severity_ = 0;
if (impactedDestinationsBuilder_ == null) {
impactedDestinations_ = java.util.Collections.emptyList();
} else {
impactedDestinations_ = null;
impactedDestinationsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
detail_ = "";
documentationUri_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.shopping.merchant.accounts.v1beta.AccountIssueProto
.internal_static_google_shopping_merchant_accounts_v1beta_AccountIssue_descriptor;
}
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.AccountIssue getDefaultInstanceForType() {
return com.google.shopping.merchant.accounts.v1beta.AccountIssue.getDefaultInstance();
}
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.AccountIssue build() {
com.google.shopping.merchant.accounts.v1beta.AccountIssue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.AccountIssue buildPartial() {
com.google.shopping.merchant.accounts.v1beta.AccountIssue result =
new com.google.shopping.merchant.accounts.v1beta.AccountIssue(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.shopping.merchant.accounts.v1beta.AccountIssue result) {
if (impactedDestinationsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
impactedDestinations_ = java.util.Collections.unmodifiableList(impactedDestinations_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.impactedDestinations_ = impactedDestinations_;
} else {
result.impactedDestinations_ = impactedDestinationsBuilder_.build();
}
}
private void buildPartial0(com.google.shopping.merchant.accounts.v1beta.AccountIssue result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.title_ = title_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.severity_ = severity_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.detail_ = detail_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.documentationUri_ = documentationUri_;
}
}
@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.accounts.v1beta.AccountIssue) {
return mergeFrom((com.google.shopping.merchant.accounts.v1beta.AccountIssue) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.shopping.merchant.accounts.v1beta.AccountIssue other) {
if (other == com.google.shopping.merchant.accounts.v1beta.AccountIssue.getDefaultInstance())
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getTitle().isEmpty()) {
title_ = other.title_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.severity_ != 0) {
setSeverityValue(other.getSeverityValue());
}
if (impactedDestinationsBuilder_ == null) {
if (!other.impactedDestinations_.isEmpty()) {
if (impactedDestinations_.isEmpty()) {
impactedDestinations_ = other.impactedDestinations_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureImpactedDestinationsIsMutable();
impactedDestinations_.addAll(other.impactedDestinations_);
}
onChanged();
}
} else {
if (!other.impactedDestinations_.isEmpty()) {
if (impactedDestinationsBuilder_.isEmpty()) {
impactedDestinationsBuilder_.dispose();
impactedDestinationsBuilder_ = null;
impactedDestinations_ = other.impactedDestinations_;
bitField0_ = (bitField0_ & ~0x00000008);
impactedDestinationsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getImpactedDestinationsFieldBuilder()
: null;
} else {
impactedDestinationsBuilder_.addAllMessages(other.impactedDestinations_);
}
}
}
if (!other.getDetail().isEmpty()) {
detail_ = other.detail_;
bitField0_ |= 0x00000010;
onChanged();
}
if (!other.getDocumentationUri().isEmpty()) {
documentationUri_ = other.documentationUri_;
bitField0_ |= 0x00000020;
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:
{
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
title_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24:
{
severity_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34:
{
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination m =
input.readMessage(
com.google.shopping.merchant.accounts.v1beta.AccountIssue
.ImpactedDestination.parser(),
extensionRegistry);
if (impactedDestinationsBuilder_ == null) {
ensureImpactedDestinationsIsMutable();
impactedDestinations_.add(m);
} else {
impactedDestinationsBuilder_.addMessage(m);
}
break;
} // case 34
case 42:
{
detail_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50:
{
documentationUri_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
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 name_ = "";
/**
*
*
*
* Identifier. The resource name of the account issue.
* Format: `accounts/{account}/issues/{id}`
*
*
* string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Identifier. The resource name of the account issue.
* Format: `accounts/{account}/issues/{id}`
*
*
* string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*
* @return The bytes for name.
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Identifier. The resource name of the account issue.
* Format: `accounts/{account}/issues/{id}`
*
*
* string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Identifier. The resource name of the account issue.
* Format: `accounts/{account}/issues/{id}`
*
*
* string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Identifier. The resource name of the account issue.
* Format: `accounts/{account}/issues/{id}`
*
*
* string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object title_ = "";
/**
*
*
*
* The localized title of the issue.
*
*
* string title = 2;
*
* @return The title.
*/
public java.lang.String getTitle() {
java.lang.Object ref = title_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
title_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The localized title of the issue.
*
*
* string title = 2;
*
* @return The bytes for title.
*/
public com.google.protobuf.ByteString getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The localized title of the issue.
*
*
* string title = 2;
*
* @param value The title to set.
* @return This builder for chaining.
*/
public Builder setTitle(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
title_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The localized title of the issue.
*
*
* string title = 2;
*
* @return This builder for chaining.
*/
public Builder clearTitle() {
title_ = getDefaultInstance().getTitle();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* The localized title of the issue.
*
*
* string title = 2;
*
* @param value The bytes for title to set.
* @return This builder for chaining.
*/
public Builder setTitleBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
title_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private int severity_ = 0;
/**
*
*
*
* The overall severity of the issue.
*
*
* .google.shopping.merchant.accounts.v1beta.AccountIssue.Severity severity = 3;
*
* @return The enum numeric value on the wire for severity.
*/
@java.lang.Override
public int getSeverityValue() {
return severity_;
}
/**
*
*
*
* The overall severity of the issue.
*
*
* .google.shopping.merchant.accounts.v1beta.AccountIssue.Severity severity = 3;
*
* @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_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The overall severity of the issue.
*
*
* .google.shopping.merchant.accounts.v1beta.AccountIssue.Severity severity = 3;
*
* @return The severity.
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity getSeverity() {
com.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity result =
com.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity.forNumber(severity_);
return result == null
? com.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity.UNRECOGNIZED
: result;
}
/**
*
*
*
* The overall severity of the issue.
*
*
* .google.shopping.merchant.accounts.v1beta.AccountIssue.Severity severity = 3;
*
* @param value The severity to set.
* @return This builder for chaining.
*/
public Builder setSeverity(
com.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
severity_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* The overall severity of the issue.
*
*
* .google.shopping.merchant.accounts.v1beta.AccountIssue.Severity severity = 3;
*
* @return This builder for chaining.
*/
public Builder clearSeverity() {
bitField0_ = (bitField0_ & ~0x00000004);
severity_ = 0;
onChanged();
return this;
}
private java.util.List<
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination>
impactedDestinations_ = java.util.Collections.emptyList();
private void ensureImpactedDestinationsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
impactedDestinations_ =
new java.util.ArrayList<
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination>(
impactedDestinations_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Builder,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestinationOrBuilder>
impactedDestinationsBuilder_;
/**
*
*
*
* The impact this issue has on various destinations.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination impacted_destinations = 4;
*
*/
public java.util.List<
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination>
getImpactedDestinationsList() {
if (impactedDestinationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(impactedDestinations_);
} else {
return impactedDestinationsBuilder_.getMessageList();
}
}
/**
*
*
*
* The impact this issue has on various destinations.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination impacted_destinations = 4;
*
*/
public int getImpactedDestinationsCount() {
if (impactedDestinationsBuilder_ == null) {
return impactedDestinations_.size();
} else {
return impactedDestinationsBuilder_.getCount();
}
}
/**
*
*
*
* The impact this issue has on various destinations.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination impacted_destinations = 4;
*
*/
public com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
getImpactedDestinations(int index) {
if (impactedDestinationsBuilder_ == null) {
return impactedDestinations_.get(index);
} else {
return impactedDestinationsBuilder_.getMessage(index);
}
}
/**
*
*
*
* The impact this issue has on various destinations.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination impacted_destinations = 4;
*
*/
public Builder setImpactedDestinations(
int index,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination value) {
if (impactedDestinationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureImpactedDestinationsIsMutable();
impactedDestinations_.set(index, value);
onChanged();
} else {
impactedDestinationsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* The impact this issue has on various destinations.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination impacted_destinations = 4;
*
*/
public Builder setImpactedDestinations(
int index,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Builder
builderForValue) {
if (impactedDestinationsBuilder_ == null) {
ensureImpactedDestinationsIsMutable();
impactedDestinations_.set(index, builderForValue.build());
onChanged();
} else {
impactedDestinationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The impact this issue has on various destinations.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination impacted_destinations = 4;
*
*/
public Builder addImpactedDestinations(
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination value) {
if (impactedDestinationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureImpactedDestinationsIsMutable();
impactedDestinations_.add(value);
onChanged();
} else {
impactedDestinationsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* The impact this issue has on various destinations.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination impacted_destinations = 4;
*
*/
public Builder addImpactedDestinations(
int index,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination value) {
if (impactedDestinationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureImpactedDestinationsIsMutable();
impactedDestinations_.add(index, value);
onChanged();
} else {
impactedDestinationsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* The impact this issue has on various destinations.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination impacted_destinations = 4;
*
*/
public Builder addImpactedDestinations(
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Builder
builderForValue) {
if (impactedDestinationsBuilder_ == null) {
ensureImpactedDestinationsIsMutable();
impactedDestinations_.add(builderForValue.build());
onChanged();
} else {
impactedDestinationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* The impact this issue has on various destinations.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination impacted_destinations = 4;
*
*/
public Builder addImpactedDestinations(
int index,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Builder
builderForValue) {
if (impactedDestinationsBuilder_ == null) {
ensureImpactedDestinationsIsMutable();
impactedDestinations_.add(index, builderForValue.build());
onChanged();
} else {
impactedDestinationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The impact this issue has on various destinations.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination impacted_destinations = 4;
*
*/
public Builder addAllImpactedDestinations(
java.lang.Iterable<
? extends
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination>
values) {
if (impactedDestinationsBuilder_ == null) {
ensureImpactedDestinationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, impactedDestinations_);
onChanged();
} else {
impactedDestinationsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* The impact this issue has on various destinations.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination impacted_destinations = 4;
*
*/
public Builder clearImpactedDestinations() {
if (impactedDestinationsBuilder_ == null) {
impactedDestinations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
impactedDestinationsBuilder_.clear();
}
return this;
}
/**
*
*
*
* The impact this issue has on various destinations.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination impacted_destinations = 4;
*
*/
public Builder removeImpactedDestinations(int index) {
if (impactedDestinationsBuilder_ == null) {
ensureImpactedDestinationsIsMutable();
impactedDestinations_.remove(index);
onChanged();
} else {
impactedDestinationsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* The impact this issue has on various destinations.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination impacted_destinations = 4;
*
*/
public com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Builder
getImpactedDestinationsBuilder(int index) {
return getImpactedDestinationsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* The impact this issue has on various destinations.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination impacted_destinations = 4;
*
*/
public com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestinationOrBuilder
getImpactedDestinationsOrBuilder(int index) {
if (impactedDestinationsBuilder_ == null) {
return impactedDestinations_.get(index);
} else {
return impactedDestinationsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* The impact this issue has on various destinations.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination impacted_destinations = 4;
*
*/
public java.util.List<
? extends
com.google.shopping.merchant.accounts.v1beta.AccountIssue
.ImpactedDestinationOrBuilder>
getImpactedDestinationsOrBuilderList() {
if (impactedDestinationsBuilder_ != null) {
return impactedDestinationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(impactedDestinations_);
}
}
/**
*
*
*
* The impact this issue has on various destinations.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination impacted_destinations = 4;
*
*/
public com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Builder
addImpactedDestinationsBuilder() {
return getImpactedDestinationsFieldBuilder()
.addBuilder(
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.getDefaultInstance());
}
/**
*
*
*
* The impact this issue has on various destinations.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination impacted_destinations = 4;
*
*/
public com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Builder
addImpactedDestinationsBuilder(int index) {
return getImpactedDestinationsFieldBuilder()
.addBuilder(
index,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.getDefaultInstance());
}
/**
*
*
*
* The impact this issue has on various destinations.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination impacted_destinations = 4;
*
*/
public java.util.List<
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Builder>
getImpactedDestinationsBuilderList() {
return getImpactedDestinationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Builder,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestinationOrBuilder>
getImpactedDestinationsFieldBuilder() {
if (impactedDestinationsBuilder_ == null) {
impactedDestinationsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination,
com.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
.Builder,
com.google.shopping.merchant.accounts.v1beta.AccountIssue
.ImpactedDestinationOrBuilder>(
impactedDestinations_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
impactedDestinations_ = null;
}
return impactedDestinationsBuilder_;
}
private java.lang.Object detail_ = "";
/**
*
*
*
* Further localized details about the issue.
*
*
* string detail = 5;
*
* @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;
}
}
/**
*
*
*
* Further localized details about the issue.
*
*
* string detail = 5;
*
* @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;
}
}
/**
*
*
*
* Further localized details about the issue.
*
*
* string detail = 5;
*
* @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_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Further localized details about the issue.
*
*
* string detail = 5;
*
* @return This builder for chaining.
*/
public Builder clearDetail() {
detail_ = getDefaultInstance().getDetail();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*
*
* Further localized details about the issue.
*
*
* string detail = 5;
*
* @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_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object documentationUri_ = "";
/**
*
*
*
* Link to Merchant Center Help Center providing further information about the
* issue and how to fix it.
*
*
* string documentation_uri = 6;
*
* @return The documentationUri.
*/
public java.lang.String getDocumentationUri() {
java.lang.Object ref = documentationUri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
documentationUri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Link to Merchant Center Help Center providing further information about the
* issue and how to fix it.
*
*
* string documentation_uri = 6;
*
* @return The bytes for documentationUri.
*/
public com.google.protobuf.ByteString getDocumentationUriBytes() {
java.lang.Object ref = documentationUri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
documentationUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Link to Merchant Center Help Center providing further information about the
* issue and how to fix it.
*
*
* string documentation_uri = 6;
*
* @param value The documentationUri to set.
* @return This builder for chaining.
*/
public Builder setDocumentationUri(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
documentationUri_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Link to Merchant Center Help Center providing further information about the
* issue and how to fix it.
*
*
* string documentation_uri = 6;
*
* @return This builder for chaining.
*/
public Builder clearDocumentationUri() {
documentationUri_ = getDefaultInstance().getDocumentationUri();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
*
*
* Link to Merchant Center Help Center providing further information about the
* issue and how to fix it.
*
*
* string documentation_uri = 6;
*
* @param value The bytes for documentationUri to set.
* @return This builder for chaining.
*/
public Builder setDocumentationUriBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
documentationUri_ = value;
bitField0_ |= 0x00000020;
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.accounts.v1beta.AccountIssue)
}
// @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1beta.AccountIssue)
private static final com.google.shopping.merchant.accounts.v1beta.AccountIssue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.shopping.merchant.accounts.v1beta.AccountIssue();
}
public static com.google.shopping.merchant.accounts.v1beta.AccountIssue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AccountIssue 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.accounts.v1beta.AccountIssue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy