com.google.ads.googleads.v17.resources.ProductLinkInvitation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v17/resources/product_link_invitation.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.resources;
/**
*
* Represents an invitation for data sharing connection between a Google Ads
* account and another account.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.ProductLinkInvitation}
*/
public final class ProductLinkInvitation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.resources.ProductLinkInvitation)
ProductLinkInvitationOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProductLinkInvitation.newBuilder() to construct.
private ProductLinkInvitation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProductLinkInvitation() {
resourceName_ = "";
status_ = 0;
type_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ProductLinkInvitation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.ProductLinkInvitationProto.internal_static_google_ads_googleads_v17_resources_ProductLinkInvitation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.ProductLinkInvitationProto.internal_static_google_ads_googleads_v17_resources_ProductLinkInvitation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.ProductLinkInvitation.class, com.google.ads.googleads.v17.resources.ProductLinkInvitation.Builder.class);
}
private int invitedAccountCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object invitedAccount_;
public enum InvitedAccountCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
HOTEL_CENTER(4),
MERCHANT_CENTER(5),
ADVERTISING_PARTNER(7),
INVITEDACCOUNT_NOT_SET(0);
private final int value;
private InvitedAccountCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static InvitedAccountCase valueOf(int value) {
return forNumber(value);
}
public static InvitedAccountCase forNumber(int value) {
switch (value) {
case 4: return HOTEL_CENTER;
case 5: return MERCHANT_CENTER;
case 7: return ADVERTISING_PARTNER;
case 0: return INVITEDACCOUNT_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public InvitedAccountCase
getInvitedAccountCase() {
return InvitedAccountCase.forNumber(
invitedAccountCase_);
}
public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object resourceName_ = "";
/**
*
* Immutable. The resource name of a product link invitation.
* Product link invitation resource names have the form:
*
* `customers/{customer_id}/productLinkInvitations/{product_link_invitation_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The resourceName.
*/
@java.lang.Override
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
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();
resourceName_ = s;
return s;
}
}
/**
*
* Immutable. The resource name of a product link invitation.
* Product link invitation resource names have the form:
*
* `customers/{customer_id}/productLinkInvitations/{product_link_invitation_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The bytes for resourceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PRODUCT_LINK_INVITATION_ID_FIELD_NUMBER = 2;
private long productLinkInvitationId_ = 0L;
/**
*
* Output only. The ID of the product link invitation.
* This field is read only.
*
*
* int64 product_link_invitation_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The productLinkInvitationId.
*/
@java.lang.Override
public long getProductLinkInvitationId() {
return productLinkInvitationId_;
}
public static final int STATUS_FIELD_NUMBER = 3;
private int status_ = 0;
/**
*
* Output only. The status of the product link invitation.
* This field is read only.
*
*
* .google.ads.googleads.v17.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Output only. The status of the product link invitation.
* This field is read only.
*
*
* .google.ads.googleads.v17.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The status.
*/
@java.lang.Override public com.google.ads.googleads.v17.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus getStatus() {
com.google.ads.googleads.v17.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus result = com.google.ads.googleads.v17.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus.forNumber(status_);
return result == null ? com.google.ads.googleads.v17.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus.UNRECOGNIZED : result;
}
public static final int TYPE_FIELD_NUMBER = 6;
private int type_ = 0;
/**
*
* Output only. The type of the invited account.
* This field is read only and can be used for filtering invitations with
* {@code GoogleAdsService.SearchGoogleAdsRequest}.
*
*
* .google.ads.googleads.v17.enums.LinkedProductTypeEnum.LinkedProductType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Output only. The type of the invited account.
* This field is read only and can be used for filtering invitations with
* {@code GoogleAdsService.SearchGoogleAdsRequest}.
*
*
* .google.ads.googleads.v17.enums.LinkedProductTypeEnum.LinkedProductType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The type.
*/
@java.lang.Override public com.google.ads.googleads.v17.enums.LinkedProductTypeEnum.LinkedProductType getType() {
com.google.ads.googleads.v17.enums.LinkedProductTypeEnum.LinkedProductType result = com.google.ads.googleads.v17.enums.LinkedProductTypeEnum.LinkedProductType.forNumber(type_);
return result == null ? com.google.ads.googleads.v17.enums.LinkedProductTypeEnum.LinkedProductType.UNRECOGNIZED : result;
}
public static final int HOTEL_CENTER_FIELD_NUMBER = 4;
/**
*
* Output only. Hotel link invitation.
*
*
* .google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier hotel_center = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the hotelCenter field is set.
*/
@java.lang.Override
public boolean hasHotelCenter() {
return invitedAccountCase_ == 4;
}
/**
*
* Output only. Hotel link invitation.
*
*
* .google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier hotel_center = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The hotelCenter.
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier getHotelCenter() {
if (invitedAccountCase_ == 4) {
return (com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier) invitedAccount_;
}
return com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier.getDefaultInstance();
}
/**
*
* Output only. Hotel link invitation.
*
*
* .google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier hotel_center = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifierOrBuilder getHotelCenterOrBuilder() {
if (invitedAccountCase_ == 4) {
return (com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier) invitedAccount_;
}
return com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier.getDefaultInstance();
}
public static final int MERCHANT_CENTER_FIELD_NUMBER = 5;
/**
*
* Output only. Merchant Center link invitation.
*
*
* .google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier merchant_center = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the merchantCenter field is set.
*/
@java.lang.Override
public boolean hasMerchantCenter() {
return invitedAccountCase_ == 5;
}
/**
*
* Output only. Merchant Center link invitation.
*
*
* .google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier merchant_center = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The merchantCenter.
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier getMerchantCenter() {
if (invitedAccountCase_ == 5) {
return (com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier) invitedAccount_;
}
return com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier.getDefaultInstance();
}
/**
*
* Output only. Merchant Center link invitation.
*
*
* .google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier merchant_center = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifierOrBuilder getMerchantCenterOrBuilder() {
if (invitedAccountCase_ == 5) {
return (com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier) invitedAccount_;
}
return com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier.getDefaultInstance();
}
public static final int ADVERTISING_PARTNER_FIELD_NUMBER = 7;
/**
*
* Output only. Advertising Partner link invitation.
*
*
* .google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier advertising_partner = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the advertisingPartner field is set.
*/
@java.lang.Override
public boolean hasAdvertisingPartner() {
return invitedAccountCase_ == 7;
}
/**
*
* Output only. Advertising Partner link invitation.
*
*
* .google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier advertising_partner = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The advertisingPartner.
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier getAdvertisingPartner() {
if (invitedAccountCase_ == 7) {
return (com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier) invitedAccount_;
}
return com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier.getDefaultInstance();
}
/**
*
* Output only. Advertising Partner link invitation.
*
*
* .google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier advertising_partner = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifierOrBuilder getAdvertisingPartnerOrBuilder() {
if (invitedAccountCase_ == 7) {
return (com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier) invitedAccount_;
}
return com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier.getDefaultInstance();
}
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(resourceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_);
}
if (productLinkInvitationId_ != 0L) {
output.writeInt64(2, productLinkInvitationId_);
}
if (status_ != com.google.ads.googleads.v17.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus.UNSPECIFIED.getNumber()) {
output.writeEnum(3, status_);
}
if (invitedAccountCase_ == 4) {
output.writeMessage(4, (com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier) invitedAccount_);
}
if (invitedAccountCase_ == 5) {
output.writeMessage(5, (com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier) invitedAccount_);
}
if (type_ != com.google.ads.googleads.v17.enums.LinkedProductTypeEnum.LinkedProductType.UNSPECIFIED.getNumber()) {
output.writeEnum(6, type_);
}
if (invitedAccountCase_ == 7) {
output.writeMessage(7, (com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier) invitedAccount_);
}
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(resourceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_);
}
if (productLinkInvitationId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, productLinkInvitationId_);
}
if (status_ != com.google.ads.googleads.v17.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, status_);
}
if (invitedAccountCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier) invitedAccount_);
}
if (invitedAccountCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier) invitedAccount_);
}
if (type_ != com.google.ads.googleads.v17.enums.LinkedProductTypeEnum.LinkedProductType.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, type_);
}
if (invitedAccountCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier) invitedAccount_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v17.resources.ProductLinkInvitation)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.resources.ProductLinkInvitation other = (com.google.ads.googleads.v17.resources.ProductLinkInvitation) obj;
if (!getResourceName()
.equals(other.getResourceName())) return false;
if (getProductLinkInvitationId()
!= other.getProductLinkInvitationId()) return false;
if (status_ != other.status_) return false;
if (type_ != other.type_) return false;
if (!getInvitedAccountCase().equals(other.getInvitedAccountCase())) return false;
switch (invitedAccountCase_) {
case 4:
if (!getHotelCenter()
.equals(other.getHotelCenter())) return false;
break;
case 5:
if (!getMerchantCenter()
.equals(other.getMerchantCenter())) return false;
break;
case 7:
if (!getAdvertisingPartner()
.equals(other.getAdvertisingPartner())) return false;
break;
case 0:
default:
}
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) + RESOURCE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getResourceName().hashCode();
hash = (37 * hash) + PRODUCT_LINK_INVITATION_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getProductLinkInvitationId());
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
switch (invitedAccountCase_) {
case 4:
hash = (37 * hash) + HOTEL_CENTER_FIELD_NUMBER;
hash = (53 * hash) + getHotelCenter().hashCode();
break;
case 5:
hash = (37 * hash) + MERCHANT_CENTER_FIELD_NUMBER;
hash = (53 * hash) + getMerchantCenter().hashCode();
break;
case 7:
hash = (37 * hash) + ADVERTISING_PARTNER_FIELD_NUMBER;
hash = (53 * hash) + getAdvertisingPartner().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.resources.ProductLinkInvitation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.ProductLinkInvitation parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.ProductLinkInvitation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.ProductLinkInvitation parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.ProductLinkInvitation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.ProductLinkInvitation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.ProductLinkInvitation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.ProductLinkInvitation parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.ProductLinkInvitation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.ProductLinkInvitation parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.ProductLinkInvitation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.ProductLinkInvitation parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v17.resources.ProductLinkInvitation 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;
}
/**
*
* Represents an invitation for data sharing connection between a Google Ads
* account and another account.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.ProductLinkInvitation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.resources.ProductLinkInvitation)
com.google.ads.googleads.v17.resources.ProductLinkInvitationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.ProductLinkInvitationProto.internal_static_google_ads_googleads_v17_resources_ProductLinkInvitation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.ProductLinkInvitationProto.internal_static_google_ads_googleads_v17_resources_ProductLinkInvitation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.ProductLinkInvitation.class, com.google.ads.googleads.v17.resources.ProductLinkInvitation.Builder.class);
}
// Construct using com.google.ads.googleads.v17.resources.ProductLinkInvitation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
resourceName_ = "";
productLinkInvitationId_ = 0L;
status_ = 0;
type_ = 0;
if (hotelCenterBuilder_ != null) {
hotelCenterBuilder_.clear();
}
if (merchantCenterBuilder_ != null) {
merchantCenterBuilder_.clear();
}
if (advertisingPartnerBuilder_ != null) {
advertisingPartnerBuilder_.clear();
}
invitedAccountCase_ = 0;
invitedAccount_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.resources.ProductLinkInvitationProto.internal_static_google_ads_googleads_v17_resources_ProductLinkInvitation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.ProductLinkInvitation getDefaultInstanceForType() {
return com.google.ads.googleads.v17.resources.ProductLinkInvitation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.ProductLinkInvitation build() {
com.google.ads.googleads.v17.resources.ProductLinkInvitation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.ProductLinkInvitation buildPartial() {
com.google.ads.googleads.v17.resources.ProductLinkInvitation result = new com.google.ads.googleads.v17.resources.ProductLinkInvitation(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.resources.ProductLinkInvitation result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.resourceName_ = resourceName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.productLinkInvitationId_ = productLinkInvitationId_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.status_ = status_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.type_ = type_;
}
}
private void buildPartialOneofs(com.google.ads.googleads.v17.resources.ProductLinkInvitation result) {
result.invitedAccountCase_ = invitedAccountCase_;
result.invitedAccount_ = this.invitedAccount_;
if (invitedAccountCase_ == 4 &&
hotelCenterBuilder_ != null) {
result.invitedAccount_ = hotelCenterBuilder_.build();
}
if (invitedAccountCase_ == 5 &&
merchantCenterBuilder_ != null) {
result.invitedAccount_ = merchantCenterBuilder_.build();
}
if (invitedAccountCase_ == 7 &&
advertisingPartnerBuilder_ != null) {
result.invitedAccount_ = advertisingPartnerBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v17.resources.ProductLinkInvitation) {
return mergeFrom((com.google.ads.googleads.v17.resources.ProductLinkInvitation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.resources.ProductLinkInvitation other) {
if (other == com.google.ads.googleads.v17.resources.ProductLinkInvitation.getDefaultInstance()) return this;
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getProductLinkInvitationId() != 0L) {
setProductLinkInvitationId(other.getProductLinkInvitationId());
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
switch (other.getInvitedAccountCase()) {
case HOTEL_CENTER: {
mergeHotelCenter(other.getHotelCenter());
break;
}
case MERCHANT_CENTER: {
mergeMerchantCenter(other.getMerchantCenter());
break;
}
case ADVERTISING_PARTNER: {
mergeAdvertisingPartner(other.getAdvertisingPartner());
break;
}
case INVITEDACCOUNT_NOT_SET: {
break;
}
}
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: {
resourceName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
productLinkInvitationId_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
status_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
input.readMessage(
getHotelCenterFieldBuilder().getBuilder(),
extensionRegistry);
invitedAccountCase_ = 4;
break;
} // case 34
case 42: {
input.readMessage(
getMerchantCenterFieldBuilder().getBuilder(),
extensionRegistry);
invitedAccountCase_ = 5;
break;
} // case 42
case 48: {
type_ = input.readEnum();
bitField0_ |= 0x00000008;
break;
} // case 48
case 58: {
input.readMessage(
getAdvertisingPartnerFieldBuilder().getBuilder(),
extensionRegistry);
invitedAccountCase_ = 7;
break;
} // case 58
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 invitedAccountCase_ = 0;
private java.lang.Object invitedAccount_;
public InvitedAccountCase
getInvitedAccountCase() {
return InvitedAccountCase.forNumber(
invitedAccountCase_);
}
public Builder clearInvitedAccount() {
invitedAccountCase_ = 0;
invitedAccount_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object resourceName_ = "";
/**
*
* Immutable. The resource name of a product link invitation.
* Product link invitation resource names have the form:
*
* `customers/{customer_id}/productLinkInvitations/{product_link_invitation_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The resourceName.
*/
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Immutable. The resource name of a product link invitation.
* Product link invitation resource names have the form:
*
* `customers/{customer_id}/productLinkInvitations/{product_link_invitation_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The bytes for resourceName.
*/
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Immutable. The resource name of a product link invitation.
* Product link invitation resource names have the form:
*
* `customers/{customer_id}/productLinkInvitations/{product_link_invitation_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @param value The resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
resourceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Immutable. The resource name of a product link invitation.
* Product link invitation resource names have the form:
*
* `customers/{customer_id}/productLinkInvitations/{product_link_invitation_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearResourceName() {
resourceName_ = getDefaultInstance().getResourceName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Immutable. The resource name of a product link invitation.
* Product link invitation resource names have the form:
*
* `customers/{customer_id}/productLinkInvitations/{product_link_invitation_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @param value The bytes for resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
resourceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long productLinkInvitationId_ ;
/**
*
* Output only. The ID of the product link invitation.
* This field is read only.
*
*
* int64 product_link_invitation_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The productLinkInvitationId.
*/
@java.lang.Override
public long getProductLinkInvitationId() {
return productLinkInvitationId_;
}
/**
*
* Output only. The ID of the product link invitation.
* This field is read only.
*
*
* int64 product_link_invitation_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The productLinkInvitationId to set.
* @return This builder for chaining.
*/
public Builder setProductLinkInvitationId(long value) {
productLinkInvitationId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The ID of the product link invitation.
* This field is read only.
*
*
* int64 product_link_invitation_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearProductLinkInvitationId() {
bitField0_ = (bitField0_ & ~0x00000002);
productLinkInvitationId_ = 0L;
onChanged();
return this;
}
private int status_ = 0;
/**
*
* Output only. The status of the product link invitation.
* This field is read only.
*
*
* .google.ads.googleads.v17.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Output only. The status of the product link invitation.
* This field is read only.
*
*
* .google.ads.googleads.v17.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Output only. The status of the product link invitation.
* This field is read only.
*
*
* .google.ads.googleads.v17.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The status.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus getStatus() {
com.google.ads.googleads.v17.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus result = com.google.ads.googleads.v17.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus.forNumber(status_);
return result == null ? com.google.ads.googleads.v17.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus.UNRECOGNIZED : result;
}
/**
*
* Output only. The status of the product link invitation.
* This field is read only.
*
*
* .google.ads.googleads.v17.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(com.google.ads.googleads.v17.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. The status of the product link invitation.
* This field is read only.
*
*
* .google.ads.googleads.v17.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000004);
status_ = 0;
onChanged();
return this;
}
private int type_ = 0;
/**
*
* Output only. The type of the invited account.
* This field is read only and can be used for filtering invitations with
* {@code GoogleAdsService.SearchGoogleAdsRequest}.
*
*
* .google.ads.googleads.v17.enums.LinkedProductTypeEnum.LinkedProductType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Output only. The type of the invited account.
* This field is read only and can be used for filtering invitations with
* {@code GoogleAdsService.SearchGoogleAdsRequest}.
*
*
* .google.ads.googleads.v17.enums.LinkedProductTypeEnum.LinkedProductType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Output only. The type of the invited account.
* This field is read only and can be used for filtering invitations with
* {@code GoogleAdsService.SearchGoogleAdsRequest}.
*
*
* .google.ads.googleads.v17.enums.LinkedProductTypeEnum.LinkedProductType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The type.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.LinkedProductTypeEnum.LinkedProductType getType() {
com.google.ads.googleads.v17.enums.LinkedProductTypeEnum.LinkedProductType result = com.google.ads.googleads.v17.enums.LinkedProductTypeEnum.LinkedProductType.forNumber(type_);
return result == null ? com.google.ads.googleads.v17.enums.LinkedProductTypeEnum.LinkedProductType.UNRECOGNIZED : result;
}
/**
*
* Output only. The type of the invited account.
* This field is read only and can be used for filtering invitations with
* {@code GoogleAdsService.SearchGoogleAdsRequest}.
*
*
* .google.ads.googleads.v17.enums.LinkedProductTypeEnum.LinkedProductType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(com.google.ads.googleads.v17.enums.LinkedProductTypeEnum.LinkedProductType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. The type of the invited account.
* This field is read only and can be used for filtering invitations with
* {@code GoogleAdsService.SearchGoogleAdsRequest}.
*
*
* .google.ads.googleads.v17.enums.LinkedProductTypeEnum.LinkedProductType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000008);
type_ = 0;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier, com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier.Builder, com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifierOrBuilder> hotelCenterBuilder_;
/**
*
* Output only. Hotel link invitation.
*
*
* .google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier hotel_center = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the hotelCenter field is set.
*/
@java.lang.Override
public boolean hasHotelCenter() {
return invitedAccountCase_ == 4;
}
/**
*
* Output only. Hotel link invitation.
*
*
* .google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier hotel_center = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The hotelCenter.
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier getHotelCenter() {
if (hotelCenterBuilder_ == null) {
if (invitedAccountCase_ == 4) {
return (com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier) invitedAccount_;
}
return com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier.getDefaultInstance();
} else {
if (invitedAccountCase_ == 4) {
return hotelCenterBuilder_.getMessage();
}
return com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier.getDefaultInstance();
}
}
/**
*
* Output only. Hotel link invitation.
*
*
* .google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier hotel_center = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setHotelCenter(com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier value) {
if (hotelCenterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
invitedAccount_ = value;
onChanged();
} else {
hotelCenterBuilder_.setMessage(value);
}
invitedAccountCase_ = 4;
return this;
}
/**
*
* Output only. Hotel link invitation.
*
*
* .google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier hotel_center = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setHotelCenter(
com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier.Builder builderForValue) {
if (hotelCenterBuilder_ == null) {
invitedAccount_ = builderForValue.build();
onChanged();
} else {
hotelCenterBuilder_.setMessage(builderForValue.build());
}
invitedAccountCase_ = 4;
return this;
}
/**
*
* Output only. Hotel link invitation.
*
*
* .google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier hotel_center = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeHotelCenter(com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier value) {
if (hotelCenterBuilder_ == null) {
if (invitedAccountCase_ == 4 &&
invitedAccount_ != com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier.getDefaultInstance()) {
invitedAccount_ = com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier.newBuilder((com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier) invitedAccount_)
.mergeFrom(value).buildPartial();
} else {
invitedAccount_ = value;
}
onChanged();
} else {
if (invitedAccountCase_ == 4) {
hotelCenterBuilder_.mergeFrom(value);
} else {
hotelCenterBuilder_.setMessage(value);
}
}
invitedAccountCase_ = 4;
return this;
}
/**
*
* Output only. Hotel link invitation.
*
*
* .google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier hotel_center = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearHotelCenter() {
if (hotelCenterBuilder_ == null) {
if (invitedAccountCase_ == 4) {
invitedAccountCase_ = 0;
invitedAccount_ = null;
onChanged();
}
} else {
if (invitedAccountCase_ == 4) {
invitedAccountCase_ = 0;
invitedAccount_ = null;
}
hotelCenterBuilder_.clear();
}
return this;
}
/**
*
* Output only. Hotel link invitation.
*
*
* .google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier hotel_center = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier.Builder getHotelCenterBuilder() {
return getHotelCenterFieldBuilder().getBuilder();
}
/**
*
* Output only. Hotel link invitation.
*
*
* .google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier hotel_center = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifierOrBuilder getHotelCenterOrBuilder() {
if ((invitedAccountCase_ == 4) && (hotelCenterBuilder_ != null)) {
return hotelCenterBuilder_.getMessageOrBuilder();
} else {
if (invitedAccountCase_ == 4) {
return (com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier) invitedAccount_;
}
return com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier.getDefaultInstance();
}
}
/**
*
* Output only. Hotel link invitation.
*
*
* .google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier hotel_center = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier, com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier.Builder, com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifierOrBuilder>
getHotelCenterFieldBuilder() {
if (hotelCenterBuilder_ == null) {
if (!(invitedAccountCase_ == 4)) {
invitedAccount_ = com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier.getDefaultInstance();
}
hotelCenterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier, com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier.Builder, com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifierOrBuilder>(
(com.google.ads.googleads.v17.resources.HotelCenterLinkInvitationIdentifier) invitedAccount_,
getParentForChildren(),
isClean());
invitedAccount_ = null;
}
invitedAccountCase_ = 4;
onChanged();
return hotelCenterBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier, com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier.Builder, com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifierOrBuilder> merchantCenterBuilder_;
/**
*
* Output only. Merchant Center link invitation.
*
*
* .google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier merchant_center = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the merchantCenter field is set.
*/
@java.lang.Override
public boolean hasMerchantCenter() {
return invitedAccountCase_ == 5;
}
/**
*
* Output only. Merchant Center link invitation.
*
*
* .google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier merchant_center = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The merchantCenter.
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier getMerchantCenter() {
if (merchantCenterBuilder_ == null) {
if (invitedAccountCase_ == 5) {
return (com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier) invitedAccount_;
}
return com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier.getDefaultInstance();
} else {
if (invitedAccountCase_ == 5) {
return merchantCenterBuilder_.getMessage();
}
return com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier.getDefaultInstance();
}
}
/**
*
* Output only. Merchant Center link invitation.
*
*
* .google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier merchant_center = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setMerchantCenter(com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier value) {
if (merchantCenterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
invitedAccount_ = value;
onChanged();
} else {
merchantCenterBuilder_.setMessage(value);
}
invitedAccountCase_ = 5;
return this;
}
/**
*
* Output only. Merchant Center link invitation.
*
*
* .google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier merchant_center = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setMerchantCenter(
com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier.Builder builderForValue) {
if (merchantCenterBuilder_ == null) {
invitedAccount_ = builderForValue.build();
onChanged();
} else {
merchantCenterBuilder_.setMessage(builderForValue.build());
}
invitedAccountCase_ = 5;
return this;
}
/**
*
* Output only. Merchant Center link invitation.
*
*
* .google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier merchant_center = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeMerchantCenter(com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier value) {
if (merchantCenterBuilder_ == null) {
if (invitedAccountCase_ == 5 &&
invitedAccount_ != com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier.getDefaultInstance()) {
invitedAccount_ = com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier.newBuilder((com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier) invitedAccount_)
.mergeFrom(value).buildPartial();
} else {
invitedAccount_ = value;
}
onChanged();
} else {
if (invitedAccountCase_ == 5) {
merchantCenterBuilder_.mergeFrom(value);
} else {
merchantCenterBuilder_.setMessage(value);
}
}
invitedAccountCase_ = 5;
return this;
}
/**
*
* Output only. Merchant Center link invitation.
*
*
* .google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier merchant_center = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearMerchantCenter() {
if (merchantCenterBuilder_ == null) {
if (invitedAccountCase_ == 5) {
invitedAccountCase_ = 0;
invitedAccount_ = null;
onChanged();
}
} else {
if (invitedAccountCase_ == 5) {
invitedAccountCase_ = 0;
invitedAccount_ = null;
}
merchantCenterBuilder_.clear();
}
return this;
}
/**
*
* Output only. Merchant Center link invitation.
*
*
* .google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier merchant_center = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier.Builder getMerchantCenterBuilder() {
return getMerchantCenterFieldBuilder().getBuilder();
}
/**
*
* Output only. Merchant Center link invitation.
*
*
* .google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier merchant_center = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifierOrBuilder getMerchantCenterOrBuilder() {
if ((invitedAccountCase_ == 5) && (merchantCenterBuilder_ != null)) {
return merchantCenterBuilder_.getMessageOrBuilder();
} else {
if (invitedAccountCase_ == 5) {
return (com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier) invitedAccount_;
}
return com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier.getDefaultInstance();
}
}
/**
*
* Output only. Merchant Center link invitation.
*
*
* .google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier merchant_center = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier, com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier.Builder, com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifierOrBuilder>
getMerchantCenterFieldBuilder() {
if (merchantCenterBuilder_ == null) {
if (!(invitedAccountCase_ == 5)) {
invitedAccount_ = com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier.getDefaultInstance();
}
merchantCenterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier, com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier.Builder, com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifierOrBuilder>(
(com.google.ads.googleads.v17.resources.MerchantCenterLinkInvitationIdentifier) invitedAccount_,
getParentForChildren(),
isClean());
invitedAccount_ = null;
}
invitedAccountCase_ = 5;
onChanged();
return merchantCenterBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier, com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier.Builder, com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifierOrBuilder> advertisingPartnerBuilder_;
/**
*
* Output only. Advertising Partner link invitation.
*
*
* .google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier advertising_partner = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the advertisingPartner field is set.
*/
@java.lang.Override
public boolean hasAdvertisingPartner() {
return invitedAccountCase_ == 7;
}
/**
*
* Output only. Advertising Partner link invitation.
*
*
* .google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier advertising_partner = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The advertisingPartner.
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier getAdvertisingPartner() {
if (advertisingPartnerBuilder_ == null) {
if (invitedAccountCase_ == 7) {
return (com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier) invitedAccount_;
}
return com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier.getDefaultInstance();
} else {
if (invitedAccountCase_ == 7) {
return advertisingPartnerBuilder_.getMessage();
}
return com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier.getDefaultInstance();
}
}
/**
*
* Output only. Advertising Partner link invitation.
*
*
* .google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier advertising_partner = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setAdvertisingPartner(com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier value) {
if (advertisingPartnerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
invitedAccount_ = value;
onChanged();
} else {
advertisingPartnerBuilder_.setMessage(value);
}
invitedAccountCase_ = 7;
return this;
}
/**
*
* Output only. Advertising Partner link invitation.
*
*
* .google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier advertising_partner = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setAdvertisingPartner(
com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier.Builder builderForValue) {
if (advertisingPartnerBuilder_ == null) {
invitedAccount_ = builderForValue.build();
onChanged();
} else {
advertisingPartnerBuilder_.setMessage(builderForValue.build());
}
invitedAccountCase_ = 7;
return this;
}
/**
*
* Output only. Advertising Partner link invitation.
*
*
* .google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier advertising_partner = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeAdvertisingPartner(com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier value) {
if (advertisingPartnerBuilder_ == null) {
if (invitedAccountCase_ == 7 &&
invitedAccount_ != com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier.getDefaultInstance()) {
invitedAccount_ = com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier.newBuilder((com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier) invitedAccount_)
.mergeFrom(value).buildPartial();
} else {
invitedAccount_ = value;
}
onChanged();
} else {
if (invitedAccountCase_ == 7) {
advertisingPartnerBuilder_.mergeFrom(value);
} else {
advertisingPartnerBuilder_.setMessage(value);
}
}
invitedAccountCase_ = 7;
return this;
}
/**
*
* Output only. Advertising Partner link invitation.
*
*
* .google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier advertising_partner = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearAdvertisingPartner() {
if (advertisingPartnerBuilder_ == null) {
if (invitedAccountCase_ == 7) {
invitedAccountCase_ = 0;
invitedAccount_ = null;
onChanged();
}
} else {
if (invitedAccountCase_ == 7) {
invitedAccountCase_ = 0;
invitedAccount_ = null;
}
advertisingPartnerBuilder_.clear();
}
return this;
}
/**
*
* Output only. Advertising Partner link invitation.
*
*
* .google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier advertising_partner = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier.Builder getAdvertisingPartnerBuilder() {
return getAdvertisingPartnerFieldBuilder().getBuilder();
}
/**
*
* Output only. Advertising Partner link invitation.
*
*
* .google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier advertising_partner = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifierOrBuilder getAdvertisingPartnerOrBuilder() {
if ((invitedAccountCase_ == 7) && (advertisingPartnerBuilder_ != null)) {
return advertisingPartnerBuilder_.getMessageOrBuilder();
} else {
if (invitedAccountCase_ == 7) {
return (com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier) invitedAccount_;
}
return com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier.getDefaultInstance();
}
}
/**
*
* Output only. Advertising Partner link invitation.
*
*
* .google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier advertising_partner = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier, com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier.Builder, com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifierOrBuilder>
getAdvertisingPartnerFieldBuilder() {
if (advertisingPartnerBuilder_ == null) {
if (!(invitedAccountCase_ == 7)) {
invitedAccount_ = com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier.getDefaultInstance();
}
advertisingPartnerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier, com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier.Builder, com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifierOrBuilder>(
(com.google.ads.googleads.v17.resources.AdvertisingPartnerLinkInvitationIdentifier) invitedAccount_,
getParentForChildren(),
isClean());
invitedAccount_ = null;
}
invitedAccountCase_ = 7;
onChanged();
return advertisingPartnerBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.resources.ProductLinkInvitation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.resources.ProductLinkInvitation)
private static final com.google.ads.googleads.v17.resources.ProductLinkInvitation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.resources.ProductLinkInvitation();
}
public static com.google.ads.googleads.v17.resources.ProductLinkInvitation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProductLinkInvitation parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.ProductLinkInvitation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy