
com.google.shopping.merchant.accounts.v1beta.Program 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/programs.proto
// Protobuf Java Version: 3.25.5
package com.google.shopping.merchant.accounts.v1beta;
/**
*
*
*
* Defines participation in a given program for the specified account.
*
* Programs provide a mechanism for adding functionality to merchant accounts. A
* typical example of this is the [Free product
* listings](https://support.google.com/merchants/topic/9240261?ref_topic=7257954,7259405,&sjid=796648681813264022-EU)
* program, which enables products from a merchant's store to be shown across
* Google for free.
*
*
* Protobuf type {@code google.shopping.merchant.accounts.v1beta.Program}
*/
public final class Program extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1beta.Program)
ProgramOrBuilder {
private static final long serialVersionUID = 0L;
// Use Program.newBuilder() to construct.
private Program(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Program() {
name_ = "";
documentationUri_ = "";
state_ = 0;
activeRegionCodes_ = com.google.protobuf.LazyStringArrayList.emptyList();
unmetRequirements_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Program();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.shopping.merchant.accounts.v1beta.ProgramsProto
.internal_static_google_shopping_merchant_accounts_v1beta_Program_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.shopping.merchant.accounts.v1beta.ProgramsProto
.internal_static_google_shopping_merchant_accounts_v1beta_Program_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.shopping.merchant.accounts.v1beta.Program.class,
com.google.shopping.merchant.accounts.v1beta.Program.Builder.class);
}
/**
*
*
*
* Possible program participation states for the account.
*
*
* Protobuf enum {@code google.shopping.merchant.accounts.v1beta.Program.State}
*/
public enum State implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* Default value. This value is unused.
*
*
* STATE_UNSPECIFIED = 0;
*/
STATE_UNSPECIFIED(0),
/**
*
*
*
* The account is not eligible to participate in the program.
*
*
* NOT_ELIGIBLE = 1;
*/
NOT_ELIGIBLE(1),
/**
*
*
*
* The account is eligible to participate in the program.
*
*
* ELIGIBLE = 2;
*/
ELIGIBLE(2),
/**
*
*
*
* The program is enabled for the account.
*
*
* ENABLED = 3;
*/
ENABLED(3),
UNRECOGNIZED(-1),
;
/**
*
*
*
* Default value. This value is unused.
*
*
* STATE_UNSPECIFIED = 0;
*/
public static final int STATE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* The account is not eligible to participate in the program.
*
*
* NOT_ELIGIBLE = 1;
*/
public static final int NOT_ELIGIBLE_VALUE = 1;
/**
*
*
*
* The account is eligible to participate in the program.
*
*
* ELIGIBLE = 2;
*/
public static final int ELIGIBLE_VALUE = 2;
/**
*
*
*
* The program is enabled for the account.
*
*
* ENABLED = 3;
*/
public static final int ENABLED_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 State valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static State forNumber(int value) {
switch (value) {
case 0:
return STATE_UNSPECIFIED;
case 1:
return NOT_ELIGIBLE;
case 2:
return ELIGIBLE;
case 3:
return ENABLED;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public State findValueByNumber(int number) {
return State.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.shopping.merchant.accounts.v1beta.Program.getDescriptor()
.getEnumTypes()
.get(0);
}
private static final State[] VALUES = values();
public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private State(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.shopping.merchant.accounts.v1beta.Program.State)
}
public interface RequirementOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.shopping.merchant.accounts.v1beta.Program.Requirement)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Output only. Name of the requirement.
*
*
* string title = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The title.
*/
java.lang.String getTitle();
/**
*
*
*
* Output only. Name of the requirement.
*
*
* string title = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for title.
*/
com.google.protobuf.ByteString getTitleBytes();
/**
*
*
*
* Output only. The URL of a help page describing the requirement.
*
*
* string documentation_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The documentationUri.
*/
java.lang.String getDocumentationUri();
/**
*
*
*
* Output only. The URL of a help page describing the requirement.
*
*
* string documentation_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for documentationUri.
*/
com.google.protobuf.ByteString getDocumentationUriBytes();
/**
*
*
*
* Output only. The regions that are currently affected by this requirement
* not being met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country
* or `001` when the program applies globally.
*
*
* repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return A list containing the affectedRegionCodes.
*/
java.util.List getAffectedRegionCodesList();
/**
*
*
*
* Output only. The regions that are currently affected by this requirement
* not being met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country
* or `001` when the program applies globally.
*
*
* repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The count of affectedRegionCodes.
*/
int getAffectedRegionCodesCount();
/**
*
*
*
* Output only. The regions that are currently affected by this requirement
* not being met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country
* or `001` when the program applies globally.
*
*
* repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param index The index of the element to return.
* @return The affectedRegionCodes at the given index.
*/
java.lang.String getAffectedRegionCodes(int index);
/**
*
*
*
* Output only. The regions that are currently affected by this requirement
* not being met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country
* or `001` when the program applies globally.
*
*
* repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param index The index of the value to return.
* @return The bytes of the affectedRegionCodes at the given index.
*/
com.google.protobuf.ByteString getAffectedRegionCodesBytes(int index);
}
/**
*
*
*
* Defines a requirement specified for participation in the program.
*
*
* Protobuf type {@code google.shopping.merchant.accounts.v1beta.Program.Requirement}
*/
public static final class Requirement extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1beta.Program.Requirement)
RequirementOrBuilder {
private static final long serialVersionUID = 0L;
// Use Requirement.newBuilder() to construct.
private Requirement(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Requirement() {
title_ = "";
documentationUri_ = "";
affectedRegionCodes_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Requirement();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.shopping.merchant.accounts.v1beta.ProgramsProto
.internal_static_google_shopping_merchant_accounts_v1beta_Program_Requirement_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.shopping.merchant.accounts.v1beta.ProgramsProto
.internal_static_google_shopping_merchant_accounts_v1beta_Program_Requirement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.shopping.merchant.accounts.v1beta.Program.Requirement.class,
com.google.shopping.merchant.accounts.v1beta.Program.Requirement.Builder.class);
}
public static final int TITLE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object title_ = "";
/**
*
*
*
* Output only. Name of the requirement.
*
*
* string title = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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;
}
}
/**
*
*
*
* Output only. Name of the requirement.
*
*
* string title = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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 DOCUMENTATION_URI_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object documentationUri_ = "";
/**
*
*
*
* Output only. The URL of a help page describing the requirement.
*
*
* string documentation_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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;
}
}
/**
*
*
*
* Output only. The URL of a help page describing the requirement.
*
*
* string documentation_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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;
}
}
public static final int AFFECTED_REGION_CODES_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList affectedRegionCodes_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* Output only. The regions that are currently affected by this requirement
* not being met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country
* or `001` when the program applies globally.
*
*
* repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return A list containing the affectedRegionCodes.
*/
public com.google.protobuf.ProtocolStringList getAffectedRegionCodesList() {
return affectedRegionCodes_;
}
/**
*
*
*
* Output only. The regions that are currently affected by this requirement
* not being met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country
* or `001` when the program applies globally.
*
*
* repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The count of affectedRegionCodes.
*/
public int getAffectedRegionCodesCount() {
return affectedRegionCodes_.size();
}
/**
*
*
*
* Output only. The regions that are currently affected by this requirement
* not being met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country
* or `001` when the program applies globally.
*
*
* repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param index The index of the element to return.
* @return The affectedRegionCodes at the given index.
*/
public java.lang.String getAffectedRegionCodes(int index) {
return affectedRegionCodes_.get(index);
}
/**
*
*
*
* Output only. The regions that are currently affected by this requirement
* not being met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country
* or `001` when the program applies globally.
*
*
* repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param index The index of the value to return.
* @return The bytes of the affectedRegionCodes at the given index.
*/
public com.google.protobuf.ByteString getAffectedRegionCodesBytes(int index) {
return affectedRegionCodes_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentationUri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, documentationUri_);
}
for (int i = 0; i < affectedRegionCodes_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(
output, 3, affectedRegionCodes_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentationUri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, documentationUri_);
}
{
int dataSize = 0;
for (int i = 0; i < affectedRegionCodes_.size(); i++) {
dataSize += computeStringSizeNoTag(affectedRegionCodes_.getRaw(i));
}
size += dataSize;
size += 1 * getAffectedRegionCodesList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.shopping.merchant.accounts.v1beta.Program.Requirement)) {
return super.equals(obj);
}
com.google.shopping.merchant.accounts.v1beta.Program.Requirement other =
(com.google.shopping.merchant.accounts.v1beta.Program.Requirement) obj;
if (!getTitle().equals(other.getTitle())) return false;
if (!getDocumentationUri().equals(other.getDocumentationUri())) return false;
if (!getAffectedRegionCodesList().equals(other.getAffectedRegionCodesList())) 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) + TITLE_FIELD_NUMBER;
hash = (53 * hash) + getTitle().hashCode();
hash = (37 * hash) + DOCUMENTATION_URI_FIELD_NUMBER;
hash = (53 * hash) + getDocumentationUri().hashCode();
if (getAffectedRegionCodesCount() > 0) {
hash = (37 * hash) + AFFECTED_REGION_CODES_FIELD_NUMBER;
hash = (53 * hash) + getAffectedRegionCodesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.shopping.merchant.accounts.v1beta.Program.Requirement parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.shopping.merchant.accounts.v1beta.Program.Requirement 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.Program.Requirement parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.shopping.merchant.accounts.v1beta.Program.Requirement 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.Program.Requirement parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.shopping.merchant.accounts.v1beta.Program.Requirement 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.Program.Requirement 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.Program.Requirement 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.Program.Requirement
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.Program.Requirement
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.Program.Requirement 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.Program.Requirement 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.Program.Requirement 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;
}
/**
*
*
*
* Defines a requirement specified for participation in the program.
*
*
* Protobuf type {@code google.shopping.merchant.accounts.v1beta.Program.Requirement}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1beta.Program.Requirement)
com.google.shopping.merchant.accounts.v1beta.Program.RequirementOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.shopping.merchant.accounts.v1beta.ProgramsProto
.internal_static_google_shopping_merchant_accounts_v1beta_Program_Requirement_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.shopping.merchant.accounts.v1beta.ProgramsProto
.internal_static_google_shopping_merchant_accounts_v1beta_Program_Requirement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.shopping.merchant.accounts.v1beta.Program.Requirement.class,
com.google.shopping.merchant.accounts.v1beta.Program.Requirement.Builder.class);
}
// Construct using
// com.google.shopping.merchant.accounts.v1beta.Program.Requirement.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
title_ = "";
documentationUri_ = "";
affectedRegionCodes_ = com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.shopping.merchant.accounts.v1beta.ProgramsProto
.internal_static_google_shopping_merchant_accounts_v1beta_Program_Requirement_descriptor;
}
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.Program.Requirement
getDefaultInstanceForType() {
return com.google.shopping.merchant.accounts.v1beta.Program.Requirement
.getDefaultInstance();
}
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.Program.Requirement build() {
com.google.shopping.merchant.accounts.v1beta.Program.Requirement result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.Program.Requirement buildPartial() {
com.google.shopping.merchant.accounts.v1beta.Program.Requirement result =
new com.google.shopping.merchant.accounts.v1beta.Program.Requirement(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.shopping.merchant.accounts.v1beta.Program.Requirement result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.title_ = title_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.documentationUri_ = documentationUri_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
affectedRegionCodes_.makeImmutable();
result.affectedRegionCodes_ = affectedRegionCodes_;
}
}
@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.Program.Requirement) {
return mergeFrom(
(com.google.shopping.merchant.accounts.v1beta.Program.Requirement) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.shopping.merchant.accounts.v1beta.Program.Requirement other) {
if (other
== com.google.shopping.merchant.accounts.v1beta.Program.Requirement
.getDefaultInstance()) return this;
if (!other.getTitle().isEmpty()) {
title_ = other.title_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getDocumentationUri().isEmpty()) {
documentationUri_ = other.documentationUri_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.affectedRegionCodes_.isEmpty()) {
if (affectedRegionCodes_.isEmpty()) {
affectedRegionCodes_ = other.affectedRegionCodes_;
bitField0_ |= 0x00000004;
} else {
ensureAffectedRegionCodesIsMutable();
affectedRegionCodes_.addAll(other.affectedRegionCodes_);
}
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:
{
title_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
documentationUri_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
java.lang.String s = input.readStringRequireUtf8();
ensureAffectedRegionCodesIsMutable();
affectedRegionCodes_.add(s);
break;
} // case 26
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 title_ = "";
/**
*
*
*
* Output only. Name of the requirement.
*
*
* string title = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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;
}
}
/**
*
*
*
* Output only. Name of the requirement.
*
*
* string title = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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;
}
}
/**
*
*
*
* Output only. Name of the requirement.
*
*
* string title = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Output only. Name of the requirement.
*
*
* string title = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearTitle() {
title_ = getDefaultInstance().getTitle();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Output only. Name of the requirement.
*
*
* string title = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object documentationUri_ = "";
/**
*
*
*
* Output only. The URL of a help page describing the requirement.
*
*
* string documentation_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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;
}
}
/**
*
*
*
* Output only. The URL of a help page describing the requirement.
*
*
* string documentation_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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;
}
}
/**
*
*
*
* Output only. The URL of a help page describing the requirement.
*
*
* string documentation_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Output only. The URL of a help page describing the requirement.
*
*
* string documentation_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearDocumentationUri() {
documentationUri_ = getDefaultInstance().getDocumentationUri();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* Output only. The URL of a help page describing the requirement.
*
*
* string documentation_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList affectedRegionCodes_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureAffectedRegionCodesIsMutable() {
if (!affectedRegionCodes_.isModifiable()) {
affectedRegionCodes_ = new com.google.protobuf.LazyStringArrayList(affectedRegionCodes_);
}
bitField0_ |= 0x00000004;
}
/**
*
*
*
* Output only. The regions that are currently affected by this requirement
* not being met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country
* or `001` when the program applies globally.
*
*
*
* repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return A list containing the affectedRegionCodes.
*/
public com.google.protobuf.ProtocolStringList getAffectedRegionCodesList() {
affectedRegionCodes_.makeImmutable();
return affectedRegionCodes_;
}
/**
*
*
*
* Output only. The regions that are currently affected by this requirement
* not being met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country
* or `001` when the program applies globally.
*
*
*
* repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The count of affectedRegionCodes.
*/
public int getAffectedRegionCodesCount() {
return affectedRegionCodes_.size();
}
/**
*
*
*
* Output only. The regions that are currently affected by this requirement
* not being met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country
* or `001` when the program applies globally.
*
*
*
* repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param index The index of the element to return.
* @return The affectedRegionCodes at the given index.
*/
public java.lang.String getAffectedRegionCodes(int index) {
return affectedRegionCodes_.get(index);
}
/**
*
*
*
* Output only. The regions that are currently affected by this requirement
* not being met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country
* or `001` when the program applies globally.
*
*
*
* repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param index The index of the value to return.
* @return The bytes of the affectedRegionCodes at the given index.
*/
public com.google.protobuf.ByteString getAffectedRegionCodesBytes(int index) {
return affectedRegionCodes_.getByteString(index);
}
/**
*
*
*
* Output only. The regions that are currently affected by this requirement
* not being met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country
* or `001` when the program applies globally.
*
*
*
* repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param index The index to set the value at.
* @param value The affectedRegionCodes to set.
* @return This builder for chaining.
*/
public Builder setAffectedRegionCodes(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAffectedRegionCodesIsMutable();
affectedRegionCodes_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. The regions that are currently affected by this requirement
* not being met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country
* or `001` when the program applies globally.
*
*
*
* repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The affectedRegionCodes to add.
* @return This builder for chaining.
*/
public Builder addAffectedRegionCodes(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAffectedRegionCodesIsMutable();
affectedRegionCodes_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. The regions that are currently affected by this requirement
* not being met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country
* or `001` when the program applies globally.
*
*
*
* repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param values The affectedRegionCodes to add.
* @return This builder for chaining.
*/
public Builder addAllAffectedRegionCodes(java.lang.Iterable values) {
ensureAffectedRegionCodesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, affectedRegionCodes_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. The regions that are currently affected by this requirement
* not being met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country
* or `001` when the program applies globally.
*
*
*
* repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return This builder for chaining.
*/
public Builder clearAffectedRegionCodes() {
affectedRegionCodes_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
;
onChanged();
return this;
}
/**
*
*
*
* Output only. The regions that are currently affected by this requirement
* not being met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country
* or `001` when the program applies globally.
*
*
*
* repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The bytes of the affectedRegionCodes to add.
* @return This builder for chaining.
*/
public Builder addAffectedRegionCodesBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAffectedRegionCodesIsMutable();
affectedRegionCodes_.add(value);
bitField0_ |= 0x00000004;
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.Program.Requirement)
}
// @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1beta.Program.Requirement)
private static final com.google.shopping.merchant.accounts.v1beta.Program.Requirement
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.shopping.merchant.accounts.v1beta.Program.Requirement();
}
public static com.google.shopping.merchant.accounts.v1beta.Program.Requirement
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Requirement 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.Program.Requirement
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 program.
* Format: `accounts/{account}/programs/{program}`
*
*
* 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 program.
* Format: `accounts/{account}/programs/{program}`
*
*
* 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 DOCUMENTATION_URI_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object documentationUri_ = "";
/**
*
*
*
* Output only. The URL of a Merchant Center help page describing the program.
*
*
* string documentation_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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;
}
}
/**
*
*
*
* Output only. The URL of a Merchant Center help page describing the program.
*
*
* string documentation_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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;
}
}
public static final int STATE_FIELD_NUMBER = 3;
private int state_ = 0;
/**
*
*
*
* Output only. The participation state of the account in the program.
*
*
*
* .google.shopping.merchant.accounts.v1beta.Program.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* Output only. The participation state of the account in the program.
*
*
*
* .google.shopping.merchant.accounts.v1beta.Program.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.Program.State getState() {
com.google.shopping.merchant.accounts.v1beta.Program.State result =
com.google.shopping.merchant.accounts.v1beta.Program.State.forNumber(state_);
return result == null
? com.google.shopping.merchant.accounts.v1beta.Program.State.UNRECOGNIZED
: result;
}
public static final int ACTIVE_REGION_CODES_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList activeRegionCodes_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* Output only. The regions in which the account is actively participating in
* the program. Active regions are defined as those where all program
* requirements affecting the regions have been met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country or
* `001` when the program applies globally.
*
*
* repeated string active_region_codes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return A list containing the activeRegionCodes.
*/
public com.google.protobuf.ProtocolStringList getActiveRegionCodesList() {
return activeRegionCodes_;
}
/**
*
*
*
* Output only. The regions in which the account is actively participating in
* the program. Active regions are defined as those where all program
* requirements affecting the regions have been met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country or
* `001` when the program applies globally.
*
*
* repeated string active_region_codes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The count of activeRegionCodes.
*/
public int getActiveRegionCodesCount() {
return activeRegionCodes_.size();
}
/**
*
*
*
* Output only. The regions in which the account is actively participating in
* the program. Active regions are defined as those where all program
* requirements affecting the regions have been met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country or
* `001` when the program applies globally.
*
*
* repeated string active_region_codes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param index The index of the element to return.
* @return The activeRegionCodes at the given index.
*/
public java.lang.String getActiveRegionCodes(int index) {
return activeRegionCodes_.get(index);
}
/**
*
*
*
* Output only. The regions in which the account is actively participating in
* the program. Active regions are defined as those where all program
* requirements affecting the regions have been met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country or
* `001` when the program applies globally.
*
*
* repeated string active_region_codes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param index The index of the value to return.
* @return The bytes of the activeRegionCodes at the given index.
*/
public com.google.protobuf.ByteString getActiveRegionCodesBytes(int index) {
return activeRegionCodes_.getByteString(index);
}
public static final int UNMET_REQUIREMENTS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private java.util.List
unmetRequirements_;
/**
*
*
*
* Output only. The requirements that the account has not yet satisfied that
* are affecting participation in the program.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.Program.Requirement unmet_requirements = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public java.util.List
getUnmetRequirementsList() {
return unmetRequirements_;
}
/**
*
*
*
* Output only. The requirements that the account has not yet satisfied that
* are affecting participation in the program.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.Program.Requirement unmet_requirements = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public java.util.List<
? extends com.google.shopping.merchant.accounts.v1beta.Program.RequirementOrBuilder>
getUnmetRequirementsOrBuilderList() {
return unmetRequirements_;
}
/**
*
*
*
* Output only. The requirements that the account has not yet satisfied that
* are affecting participation in the program.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.Program.Requirement unmet_requirements = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public int getUnmetRequirementsCount() {
return unmetRequirements_.size();
}
/**
*
*
*
* Output only. The requirements that the account has not yet satisfied that
* are affecting participation in the program.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.Program.Requirement unmet_requirements = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.Program.Requirement getUnmetRequirements(
int index) {
return unmetRequirements_.get(index);
}
/**
*
*
*
* Output only. The requirements that the account has not yet satisfied that
* are affecting participation in the program.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.Program.Requirement unmet_requirements = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.Program.RequirementOrBuilder
getUnmetRequirementsOrBuilder(int index) {
return unmetRequirements_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentationUri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, documentationUri_);
}
if (state_
!= com.google.shopping.merchant.accounts.v1beta.Program.State.STATE_UNSPECIFIED
.getNumber()) {
output.writeEnum(3, state_);
}
for (int i = 0; i < activeRegionCodes_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, activeRegionCodes_.getRaw(i));
}
for (int i = 0; i < unmetRequirements_.size(); i++) {
output.writeMessage(5, unmetRequirements_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentationUri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, documentationUri_);
}
if (state_
!= com.google.shopping.merchant.accounts.v1beta.Program.State.STATE_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_);
}
{
int dataSize = 0;
for (int i = 0; i < activeRegionCodes_.size(); i++) {
dataSize += computeStringSizeNoTag(activeRegionCodes_.getRaw(i));
}
size += dataSize;
size += 1 * getActiveRegionCodesList().size();
}
for (int i = 0; i < unmetRequirements_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(5, unmetRequirements_.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.Program)) {
return super.equals(obj);
}
com.google.shopping.merchant.accounts.v1beta.Program other =
(com.google.shopping.merchant.accounts.v1beta.Program) obj;
if (!getName().equals(other.getName())) return false;
if (!getDocumentationUri().equals(other.getDocumentationUri())) return false;
if (state_ != other.state_) return false;
if (!getActiveRegionCodesList().equals(other.getActiveRegionCodesList())) return false;
if (!getUnmetRequirementsList().equals(other.getUnmetRequirementsList())) 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) + DOCUMENTATION_URI_FIELD_NUMBER;
hash = (53 * hash) + getDocumentationUri().hashCode();
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
if (getActiveRegionCodesCount() > 0) {
hash = (37 * hash) + ACTIVE_REGION_CODES_FIELD_NUMBER;
hash = (53 * hash) + getActiveRegionCodesList().hashCode();
}
if (getUnmetRequirementsCount() > 0) {
hash = (37 * hash) + UNMET_REQUIREMENTS_FIELD_NUMBER;
hash = (53 * hash) + getUnmetRequirementsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.shopping.merchant.accounts.v1beta.Program parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.shopping.merchant.accounts.v1beta.Program 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.Program parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.shopping.merchant.accounts.v1beta.Program 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.Program parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.shopping.merchant.accounts.v1beta.Program 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.Program 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.Program 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.Program 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.Program 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.Program 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.Program 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.Program 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;
}
/**
*
*
*
* Defines participation in a given program for the specified account.
*
* Programs provide a mechanism for adding functionality to merchant accounts. A
* typical example of this is the [Free product
* listings](https://support.google.com/merchants/topic/9240261?ref_topic=7257954,7259405,&sjid=796648681813264022-EU)
* program, which enables products from a merchant's store to be shown across
* Google for free.
*
*
* Protobuf type {@code google.shopping.merchant.accounts.v1beta.Program}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1beta.Program)
com.google.shopping.merchant.accounts.v1beta.ProgramOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.shopping.merchant.accounts.v1beta.ProgramsProto
.internal_static_google_shopping_merchant_accounts_v1beta_Program_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.shopping.merchant.accounts.v1beta.ProgramsProto
.internal_static_google_shopping_merchant_accounts_v1beta_Program_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.shopping.merchant.accounts.v1beta.Program.class,
com.google.shopping.merchant.accounts.v1beta.Program.Builder.class);
}
// Construct using com.google.shopping.merchant.accounts.v1beta.Program.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
documentationUri_ = "";
state_ = 0;
activeRegionCodes_ = com.google.protobuf.LazyStringArrayList.emptyList();
if (unmetRequirementsBuilder_ == null) {
unmetRequirements_ = java.util.Collections.emptyList();
} else {
unmetRequirements_ = null;
unmetRequirementsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.shopping.merchant.accounts.v1beta.ProgramsProto
.internal_static_google_shopping_merchant_accounts_v1beta_Program_descriptor;
}
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.Program getDefaultInstanceForType() {
return com.google.shopping.merchant.accounts.v1beta.Program.getDefaultInstance();
}
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.Program build() {
com.google.shopping.merchant.accounts.v1beta.Program result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.Program buildPartial() {
com.google.shopping.merchant.accounts.v1beta.Program result =
new com.google.shopping.merchant.accounts.v1beta.Program(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.shopping.merchant.accounts.v1beta.Program result) {
if (unmetRequirementsBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
unmetRequirements_ = java.util.Collections.unmodifiableList(unmetRequirements_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.unmetRequirements_ = unmetRequirements_;
} else {
result.unmetRequirements_ = unmetRequirementsBuilder_.build();
}
}
private void buildPartial0(com.google.shopping.merchant.accounts.v1beta.Program result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.documentationUri_ = documentationUri_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.state_ = state_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
activeRegionCodes_.makeImmutable();
result.activeRegionCodes_ = activeRegionCodes_;
}
}
@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.Program) {
return mergeFrom((com.google.shopping.merchant.accounts.v1beta.Program) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.shopping.merchant.accounts.v1beta.Program other) {
if (other == com.google.shopping.merchant.accounts.v1beta.Program.getDefaultInstance())
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getDocumentationUri().isEmpty()) {
documentationUri_ = other.documentationUri_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (!other.activeRegionCodes_.isEmpty()) {
if (activeRegionCodes_.isEmpty()) {
activeRegionCodes_ = other.activeRegionCodes_;
bitField0_ |= 0x00000008;
} else {
ensureActiveRegionCodesIsMutable();
activeRegionCodes_.addAll(other.activeRegionCodes_);
}
onChanged();
}
if (unmetRequirementsBuilder_ == null) {
if (!other.unmetRequirements_.isEmpty()) {
if (unmetRequirements_.isEmpty()) {
unmetRequirements_ = other.unmetRequirements_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureUnmetRequirementsIsMutable();
unmetRequirements_.addAll(other.unmetRequirements_);
}
onChanged();
}
} else {
if (!other.unmetRequirements_.isEmpty()) {
if (unmetRequirementsBuilder_.isEmpty()) {
unmetRequirementsBuilder_.dispose();
unmetRequirementsBuilder_ = null;
unmetRequirements_ = other.unmetRequirements_;
bitField0_ = (bitField0_ & ~0x00000010);
unmetRequirementsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getUnmetRequirementsFieldBuilder()
: null;
} else {
unmetRequirementsBuilder_.addAllMessages(other.unmetRequirements_);
}
}
}
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:
{
documentationUri_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24:
{
state_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34:
{
java.lang.String s = input.readStringRequireUtf8();
ensureActiveRegionCodesIsMutable();
activeRegionCodes_.add(s);
break;
} // case 34
case 42:
{
com.google.shopping.merchant.accounts.v1beta.Program.Requirement m =
input.readMessage(
com.google.shopping.merchant.accounts.v1beta.Program.Requirement.parser(),
extensionRegistry);
if (unmetRequirementsBuilder_ == null) {
ensureUnmetRequirementsIsMutable();
unmetRequirements_.add(m);
} else {
unmetRequirementsBuilder_.addMessage(m);
}
break;
} // case 42
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 program.
* Format: `accounts/{account}/programs/{program}`
*
*
* 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 program.
* Format: `accounts/{account}/programs/{program}`
*
*
* 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 program.
* Format: `accounts/{account}/programs/{program}`
*
*
* 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 program.
* Format: `accounts/{account}/programs/{program}`
*
*
* 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 program.
* Format: `accounts/{account}/programs/{program}`
*
*
* 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 documentationUri_ = "";
/**
*
*
*
* Output only. The URL of a Merchant Center help page describing the program.
*
*
* string documentation_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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;
}
}
/**
*
*
*
* Output only. The URL of a Merchant Center help page describing the program.
*
*
* string documentation_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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;
}
}
/**
*
*
*
* Output only. The URL of a Merchant Center help page describing the program.
*
*
* string documentation_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Output only. The URL of a Merchant Center help page describing the program.
*
*
* string documentation_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearDocumentationUri() {
documentationUri_ = getDefaultInstance().getDocumentationUri();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* Output only. The URL of a Merchant Center help page describing the program.
*
*
* string documentation_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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_ |= 0x00000002;
onChanged();
return this;
}
private int state_ = 0;
/**
*
*
*
* Output only. The participation state of the account in the program.
*
*
*
* .google.shopping.merchant.accounts.v1beta.Program.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* Output only. The participation state of the account in the program.
*
*
*
* .google.shopping.merchant.accounts.v1beta.Program.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
state_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. The participation state of the account in the program.
*
*
*
* .google.shopping.merchant.accounts.v1beta.Program.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.Program.State getState() {
com.google.shopping.merchant.accounts.v1beta.Program.State result =
com.google.shopping.merchant.accounts.v1beta.Program.State.forNumber(state_);
return result == null
? com.google.shopping.merchant.accounts.v1beta.Program.State.UNRECOGNIZED
: result;
}
/**
*
*
*
* Output only. The participation state of the account in the program.
*
*
*
* .google.shopping.merchant.accounts.v1beta.Program.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(com.google.shopping.merchant.accounts.v1beta.Program.State value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Output only. The participation state of the account in the program.
*
*
*
* .google.shopping.merchant.accounts.v1beta.Program.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return This builder for chaining.
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000004);
state_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList activeRegionCodes_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureActiveRegionCodesIsMutable() {
if (!activeRegionCodes_.isModifiable()) {
activeRegionCodes_ = new com.google.protobuf.LazyStringArrayList(activeRegionCodes_);
}
bitField0_ |= 0x00000008;
}
/**
*
*
*
* Output only. The regions in which the account is actively participating in
* the program. Active regions are defined as those where all program
* requirements affecting the regions have been met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country or
* `001` when the program applies globally.
*
*
* repeated string active_region_codes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return A list containing the activeRegionCodes.
*/
public com.google.protobuf.ProtocolStringList getActiveRegionCodesList() {
activeRegionCodes_.makeImmutable();
return activeRegionCodes_;
}
/**
*
*
*
* Output only. The regions in which the account is actively participating in
* the program. Active regions are defined as those where all program
* requirements affecting the regions have been met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country or
* `001` when the program applies globally.
*
*
* repeated string active_region_codes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The count of activeRegionCodes.
*/
public int getActiveRegionCodesCount() {
return activeRegionCodes_.size();
}
/**
*
*
*
* Output only. The regions in which the account is actively participating in
* the program. Active regions are defined as those where all program
* requirements affecting the regions have been met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country or
* `001` when the program applies globally.
*
*
* repeated string active_region_codes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param index The index of the element to return.
* @return The activeRegionCodes at the given index.
*/
public java.lang.String getActiveRegionCodes(int index) {
return activeRegionCodes_.get(index);
}
/**
*
*
*
* Output only. The regions in which the account is actively participating in
* the program. Active regions are defined as those where all program
* requirements affecting the regions have been met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country or
* `001` when the program applies globally.
*
*
* repeated string active_region_codes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param index The index of the value to return.
* @return The bytes of the activeRegionCodes at the given index.
*/
public com.google.protobuf.ByteString getActiveRegionCodesBytes(int index) {
return activeRegionCodes_.getByteString(index);
}
/**
*
*
*
* Output only. The regions in which the account is actively participating in
* the program. Active regions are defined as those where all program
* requirements affecting the regions have been met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country or
* `001` when the program applies globally.
*
*
* repeated string active_region_codes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param index The index to set the value at.
* @param value The activeRegionCodes to set.
* @return This builder for chaining.
*/
public Builder setActiveRegionCodes(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureActiveRegionCodesIsMutable();
activeRegionCodes_.set(index, value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Output only. The regions in which the account is actively participating in
* the program. Active regions are defined as those where all program
* requirements affecting the regions have been met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country or
* `001` when the program applies globally.
*
*
* repeated string active_region_codes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The activeRegionCodes to add.
* @return This builder for chaining.
*/
public Builder addActiveRegionCodes(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureActiveRegionCodesIsMutable();
activeRegionCodes_.add(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Output only. The regions in which the account is actively participating in
* the program. Active regions are defined as those where all program
* requirements affecting the regions have been met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country or
* `001` when the program applies globally.
*
*
* repeated string active_region_codes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param values The activeRegionCodes to add.
* @return This builder for chaining.
*/
public Builder addAllActiveRegionCodes(java.lang.Iterable values) {
ensureActiveRegionCodesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, activeRegionCodes_);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Output only. The regions in which the account is actively participating in
* the program. Active regions are defined as those where all program
* requirements affecting the regions have been met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country or
* `001` when the program applies globally.
*
*
* repeated string active_region_codes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return This builder for chaining.
*/
public Builder clearActiveRegionCodes() {
activeRegionCodes_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
;
onChanged();
return this;
}
/**
*
*
*
* Output only. The regions in which the account is actively participating in
* the program. Active regions are defined as those where all program
* requirements affecting the regions have been met.
*
* Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
* either a country where the program applies specifically to that country or
* `001` when the program applies globally.
*
*
* repeated string active_region_codes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The bytes of the activeRegionCodes to add.
* @return This builder for chaining.
*/
public Builder addActiveRegionCodesBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureActiveRegionCodesIsMutable();
activeRegionCodes_.add(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.util.List
unmetRequirements_ = java.util.Collections.emptyList();
private void ensureUnmetRequirementsIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
unmetRequirements_ =
new java.util.ArrayList<
com.google.shopping.merchant.accounts.v1beta.Program.Requirement>(
unmetRequirements_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.shopping.merchant.accounts.v1beta.Program.Requirement,
com.google.shopping.merchant.accounts.v1beta.Program.Requirement.Builder,
com.google.shopping.merchant.accounts.v1beta.Program.RequirementOrBuilder>
unmetRequirementsBuilder_;
/**
*
*
*
* Output only. The requirements that the account has not yet satisfied that
* are affecting participation in the program.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.Program.Requirement unmet_requirements = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public java.util.List
getUnmetRequirementsList() {
if (unmetRequirementsBuilder_ == null) {
return java.util.Collections.unmodifiableList(unmetRequirements_);
} else {
return unmetRequirementsBuilder_.getMessageList();
}
}
/**
*
*
*
* Output only. The requirements that the account has not yet satisfied that
* are affecting participation in the program.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.Program.Requirement unmet_requirements = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public int getUnmetRequirementsCount() {
if (unmetRequirementsBuilder_ == null) {
return unmetRequirements_.size();
} else {
return unmetRequirementsBuilder_.getCount();
}
}
/**
*
*
*
* Output only. The requirements that the account has not yet satisfied that
* are affecting participation in the program.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.Program.Requirement unmet_requirements = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.shopping.merchant.accounts.v1beta.Program.Requirement getUnmetRequirements(
int index) {
if (unmetRequirementsBuilder_ == null) {
return unmetRequirements_.get(index);
} else {
return unmetRequirementsBuilder_.getMessage(index);
}
}
/**
*
*
*
* Output only. The requirements that the account has not yet satisfied that
* are affecting participation in the program.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.Program.Requirement unmet_requirements = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setUnmetRequirements(
int index, com.google.shopping.merchant.accounts.v1beta.Program.Requirement value) {
if (unmetRequirementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnmetRequirementsIsMutable();
unmetRequirements_.set(index, value);
onChanged();
} else {
unmetRequirementsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Output only. The requirements that the account has not yet satisfied that
* are affecting participation in the program.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.Program.Requirement unmet_requirements = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setUnmetRequirements(
int index,
com.google.shopping.merchant.accounts.v1beta.Program.Requirement.Builder builderForValue) {
if (unmetRequirementsBuilder_ == null) {
ensureUnmetRequirementsIsMutable();
unmetRequirements_.set(index, builderForValue.build());
onChanged();
} else {
unmetRequirementsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Output only. The requirements that the account has not yet satisfied that
* are affecting participation in the program.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.Program.Requirement unmet_requirements = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addUnmetRequirements(
com.google.shopping.merchant.accounts.v1beta.Program.Requirement value) {
if (unmetRequirementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnmetRequirementsIsMutable();
unmetRequirements_.add(value);
onChanged();
} else {
unmetRequirementsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Output only. The requirements that the account has not yet satisfied that
* are affecting participation in the program.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.Program.Requirement unmet_requirements = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addUnmetRequirements(
int index, com.google.shopping.merchant.accounts.v1beta.Program.Requirement value) {
if (unmetRequirementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnmetRequirementsIsMutable();
unmetRequirements_.add(index, value);
onChanged();
} else {
unmetRequirementsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Output only. The requirements that the account has not yet satisfied that
* are affecting participation in the program.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.Program.Requirement unmet_requirements = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addUnmetRequirements(
com.google.shopping.merchant.accounts.v1beta.Program.Requirement.Builder builderForValue) {
if (unmetRequirementsBuilder_ == null) {
ensureUnmetRequirementsIsMutable();
unmetRequirements_.add(builderForValue.build());
onChanged();
} else {
unmetRequirementsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Output only. The requirements that the account has not yet satisfied that
* are affecting participation in the program.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.Program.Requirement unmet_requirements = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addUnmetRequirements(
int index,
com.google.shopping.merchant.accounts.v1beta.Program.Requirement.Builder builderForValue) {
if (unmetRequirementsBuilder_ == null) {
ensureUnmetRequirementsIsMutable();
unmetRequirements_.add(index, builderForValue.build());
onChanged();
} else {
unmetRequirementsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Output only. The requirements that the account has not yet satisfied that
* are affecting participation in the program.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.Program.Requirement unmet_requirements = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addAllUnmetRequirements(
java.lang.Iterable<
? extends com.google.shopping.merchant.accounts.v1beta.Program.Requirement>
values) {
if (unmetRequirementsBuilder_ == null) {
ensureUnmetRequirementsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unmetRequirements_);
onChanged();
} else {
unmetRequirementsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Output only. The requirements that the account has not yet satisfied that
* are affecting participation in the program.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.Program.Requirement unmet_requirements = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearUnmetRequirements() {
if (unmetRequirementsBuilder_ == null) {
unmetRequirements_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
unmetRequirementsBuilder_.clear();
}
return this;
}
/**
*
*
*
* Output only. The requirements that the account has not yet satisfied that
* are affecting participation in the program.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.Program.Requirement unmet_requirements = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder removeUnmetRequirements(int index) {
if (unmetRequirementsBuilder_ == null) {
ensureUnmetRequirementsIsMutable();
unmetRequirements_.remove(index);
onChanged();
} else {
unmetRequirementsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Output only. The requirements that the account has not yet satisfied that
* are affecting participation in the program.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.Program.Requirement unmet_requirements = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.shopping.merchant.accounts.v1beta.Program.Requirement.Builder
getUnmetRequirementsBuilder(int index) {
return getUnmetRequirementsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Output only. The requirements that the account has not yet satisfied that
* are affecting participation in the program.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.Program.Requirement unmet_requirements = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.shopping.merchant.accounts.v1beta.Program.RequirementOrBuilder
getUnmetRequirementsOrBuilder(int index) {
if (unmetRequirementsBuilder_ == null) {
return unmetRequirements_.get(index);
} else {
return unmetRequirementsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Output only. The requirements that the account has not yet satisfied that
* are affecting participation in the program.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.Program.Requirement unmet_requirements = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public java.util.List<
? extends com.google.shopping.merchant.accounts.v1beta.Program.RequirementOrBuilder>
getUnmetRequirementsOrBuilderList() {
if (unmetRequirementsBuilder_ != null) {
return unmetRequirementsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(unmetRequirements_);
}
}
/**
*
*
*
* Output only. The requirements that the account has not yet satisfied that
* are affecting participation in the program.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.Program.Requirement unmet_requirements = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.shopping.merchant.accounts.v1beta.Program.Requirement.Builder
addUnmetRequirementsBuilder() {
return getUnmetRequirementsFieldBuilder()
.addBuilder(
com.google.shopping.merchant.accounts.v1beta.Program.Requirement
.getDefaultInstance());
}
/**
*
*
*
* Output only. The requirements that the account has not yet satisfied that
* are affecting participation in the program.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.Program.Requirement unmet_requirements = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.shopping.merchant.accounts.v1beta.Program.Requirement.Builder
addUnmetRequirementsBuilder(int index) {
return getUnmetRequirementsFieldBuilder()
.addBuilder(
index,
com.google.shopping.merchant.accounts.v1beta.Program.Requirement
.getDefaultInstance());
}
/**
*
*
*
* Output only. The requirements that the account has not yet satisfied that
* are affecting participation in the program.
*
*
*
* repeated .google.shopping.merchant.accounts.v1beta.Program.Requirement unmet_requirements = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public java.util.List
getUnmetRequirementsBuilderList() {
return getUnmetRequirementsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.shopping.merchant.accounts.v1beta.Program.Requirement,
com.google.shopping.merchant.accounts.v1beta.Program.Requirement.Builder,
com.google.shopping.merchant.accounts.v1beta.Program.RequirementOrBuilder>
getUnmetRequirementsFieldBuilder() {
if (unmetRequirementsBuilder_ == null) {
unmetRequirementsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.shopping.merchant.accounts.v1beta.Program.Requirement,
com.google.shopping.merchant.accounts.v1beta.Program.Requirement.Builder,
com.google.shopping.merchant.accounts.v1beta.Program.RequirementOrBuilder>(
unmetRequirements_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
unmetRequirements_ = null;
}
return unmetRequirementsBuilder_;
}
@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.Program)
}
// @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1beta.Program)
private static final com.google.shopping.merchant.accounts.v1beta.Program DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.shopping.merchant.accounts.v1beta.Program();
}
public static com.google.shopping.merchant.accounts.v1beta.Program getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Program 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.Program getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy