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

com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink 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/conversions/v1beta/conversionsources.proto

// Protobuf Java Version: 3.25.5
package com.google.shopping.merchant.conversions.v1beta;

/**
 *
 *
 * 
 * "Google Analytics Link" sources can be used to get conversion data from an
 * existing Google Analytics property into the linked Merchant Center account.
 * 
* * Protobuf type {@code google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink} */ public final class GoogleAnalyticsLink extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink) GoogleAnalyticsLinkOrBuilder { private static final long serialVersionUID = 0L; // Use GoogleAnalyticsLink.newBuilder() to construct. private GoogleAnalyticsLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GoogleAnalyticsLink() { property_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GoogleAnalyticsLink(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.conversions.v1beta.ConversionSourcesProto .internal_static_google_shopping_merchant_conversions_v1beta_GoogleAnalyticsLink_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.merchant.conversions.v1beta.ConversionSourcesProto .internal_static_google_shopping_merchant_conversions_v1beta_GoogleAnalyticsLink_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink.class, com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink.Builder.class); } private int bitField0_; public static final int PROPERTY_ID_FIELD_NUMBER = 1; private long propertyId_ = 0L; /** * * *
   * Required. Immutable. ID of the Google Analytics property the merchant is
   * linked to.
   * 
* * * int64 property_id = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The propertyId. */ @java.lang.Override public long getPropertyId() { return propertyId_; } public static final int ATTRIBUTION_SETTINGS_FIELD_NUMBER = 2; private com.google.shopping.merchant.conversions.v1beta.AttributionSettings attributionSettings_; /** * * *
   * Output only. Attribution settings for the linked Google Analytics property.
   * 
* * * .google.shopping.merchant.conversions.v1beta.AttributionSettings attribution_settings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the attributionSettings field is set. */ @java.lang.Override public boolean hasAttributionSettings() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Output only. Attribution settings for the linked Google Analytics property.
   * 
* * * .google.shopping.merchant.conversions.v1beta.AttributionSettings attribution_settings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The attributionSettings. */ @java.lang.Override public com.google.shopping.merchant.conversions.v1beta.AttributionSettings getAttributionSettings() { return attributionSettings_ == null ? com.google.shopping.merchant.conversions.v1beta.AttributionSettings.getDefaultInstance() : attributionSettings_; } /** * * *
   * Output only. Attribution settings for the linked Google Analytics property.
   * 
* * * .google.shopping.merchant.conversions.v1beta.AttributionSettings attribution_settings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.shopping.merchant.conversions.v1beta.AttributionSettingsOrBuilder getAttributionSettingsOrBuilder() { return attributionSettings_ == null ? com.google.shopping.merchant.conversions.v1beta.AttributionSettings.getDefaultInstance() : attributionSettings_; } public static final int PROPERTY_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object property_ = ""; /** * * *
   * Output only. Name of the Google Analytics property the merchant is linked
   * to.
   * 
* * string property = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The property. */ @java.lang.Override public java.lang.String getProperty() { java.lang.Object ref = property_; 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(); property_ = s; return s; } } /** * * *
   * Output only. Name of the Google Analytics property the merchant is linked
   * to.
   * 
* * string property = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for property. */ @java.lang.Override public com.google.protobuf.ByteString getPropertyBytes() { java.lang.Object ref = property_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); property_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (propertyId_ != 0L) { output.writeInt64(1, propertyId_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getAttributionSettings()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, property_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (propertyId_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, propertyId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAttributionSettings()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, property_); } 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.conversions.v1beta.GoogleAnalyticsLink)) { return super.equals(obj); } com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink other = (com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink) obj; if (getPropertyId() != other.getPropertyId()) return false; if (hasAttributionSettings() != other.hasAttributionSettings()) return false; if (hasAttributionSettings()) { if (!getAttributionSettings().equals(other.getAttributionSettings())) return false; } if (!getProperty().equals(other.getProperty())) 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) + PROPERTY_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPropertyId()); if (hasAttributionSettings()) { hash = (37 * hash) + ATTRIBUTION_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getAttributionSettings().hashCode(); } hash = (37 * hash) + PROPERTY_FIELD_NUMBER; hash = (53 * hash) + getProperty().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink 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.conversions.v1beta.GoogleAnalyticsLink parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink 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.conversions.v1beta.GoogleAnalyticsLink parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink 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.conversions.v1beta.GoogleAnalyticsLink parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink 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.conversions.v1beta.GoogleAnalyticsLink parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink 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.conversions.v1beta.GoogleAnalyticsLink 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; } /** * * *
   * "Google Analytics Link" sources can be used to get conversion data from an
   * existing Google Analytics property into the linked Merchant Center account.
   * 
* * Protobuf type {@code google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink) com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLinkOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.conversions.v1beta.ConversionSourcesProto .internal_static_google_shopping_merchant_conversions_v1beta_GoogleAnalyticsLink_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.merchant.conversions.v1beta.ConversionSourcesProto .internal_static_google_shopping_merchant_conversions_v1beta_GoogleAnalyticsLink_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink.class, com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink.Builder.class); } // Construct using // com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAttributionSettingsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; propertyId_ = 0L; attributionSettings_ = null; if (attributionSettingsBuilder_ != null) { attributionSettingsBuilder_.dispose(); attributionSettingsBuilder_ = null; } property_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.shopping.merchant.conversions.v1beta.ConversionSourcesProto .internal_static_google_shopping_merchant_conversions_v1beta_GoogleAnalyticsLink_descriptor; } @java.lang.Override public com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink getDefaultInstanceForType() { return com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink .getDefaultInstance(); } @java.lang.Override public com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink build() { com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink buildPartial() { com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink result = new com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.propertyId_ = propertyId_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.attributionSettings_ = attributionSettingsBuilder_ == null ? attributionSettings_ : attributionSettingsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.property_ = property_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink) { return mergeFrom( (com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink other) { if (other == com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink .getDefaultInstance()) return this; if (other.getPropertyId() != 0L) { setPropertyId(other.getPropertyId()); } if (other.hasAttributionSettings()) { mergeAttributionSettings(other.getAttributionSettings()); } if (!other.getProperty().isEmpty()) { property_ = other.property_; bitField0_ |= 0x00000004; 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 8: { propertyId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getAttributionSettingsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { property_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; 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 long propertyId_; /** * * *
     * Required. Immutable. ID of the Google Analytics property the merchant is
     * linked to.
     * 
* * * int64 property_id = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The propertyId. */ @java.lang.Override public long getPropertyId() { return propertyId_; } /** * * *
     * Required. Immutable. ID of the Google Analytics property the merchant is
     * linked to.
     * 
* * * int64 property_id = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The propertyId to set. * @return This builder for chaining. */ public Builder setPropertyId(long value) { propertyId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Required. Immutable. ID of the Google Analytics property the merchant is
     * linked to.
     * 
* * * int64 property_id = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return This builder for chaining. */ public Builder clearPropertyId() { bitField0_ = (bitField0_ & ~0x00000001); propertyId_ = 0L; onChanged(); return this; } private com.google.shopping.merchant.conversions.v1beta.AttributionSettings attributionSettings_; private com.google.protobuf.SingleFieldBuilderV3< com.google.shopping.merchant.conversions.v1beta.AttributionSettings, com.google.shopping.merchant.conversions.v1beta.AttributionSettings.Builder, com.google.shopping.merchant.conversions.v1beta.AttributionSettingsOrBuilder> attributionSettingsBuilder_; /** * * *
     * Output only. Attribution settings for the linked Google Analytics property.
     * 
* * * .google.shopping.merchant.conversions.v1beta.AttributionSettings attribution_settings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the attributionSettings field is set. */ public boolean hasAttributionSettings() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Output only. Attribution settings for the linked Google Analytics property.
     * 
* * * .google.shopping.merchant.conversions.v1beta.AttributionSettings attribution_settings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The attributionSettings. */ public com.google.shopping.merchant.conversions.v1beta.AttributionSettings getAttributionSettings() { if (attributionSettingsBuilder_ == null) { return attributionSettings_ == null ? com.google.shopping.merchant.conversions.v1beta.AttributionSettings .getDefaultInstance() : attributionSettings_; } else { return attributionSettingsBuilder_.getMessage(); } } /** * * *
     * Output only. Attribution settings for the linked Google Analytics property.
     * 
* * * .google.shopping.merchant.conversions.v1beta.AttributionSettings attribution_settings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setAttributionSettings( com.google.shopping.merchant.conversions.v1beta.AttributionSettings value) { if (attributionSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } attributionSettings_ = value; } else { attributionSettingsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Output only. Attribution settings for the linked Google Analytics property.
     * 
* * * .google.shopping.merchant.conversions.v1beta.AttributionSettings attribution_settings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setAttributionSettings( com.google.shopping.merchant.conversions.v1beta.AttributionSettings.Builder builderForValue) { if (attributionSettingsBuilder_ == null) { attributionSettings_ = builderForValue.build(); } else { attributionSettingsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Output only. Attribution settings for the linked Google Analytics property.
     * 
* * * .google.shopping.merchant.conversions.v1beta.AttributionSettings attribution_settings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeAttributionSettings( com.google.shopping.merchant.conversions.v1beta.AttributionSettings value) { if (attributionSettingsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && attributionSettings_ != null && attributionSettings_ != com.google.shopping.merchant.conversions.v1beta.AttributionSettings .getDefaultInstance()) { getAttributionSettingsBuilder().mergeFrom(value); } else { attributionSettings_ = value; } } else { attributionSettingsBuilder_.mergeFrom(value); } if (attributionSettings_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * Output only. Attribution settings for the linked Google Analytics property.
     * 
* * * .google.shopping.merchant.conversions.v1beta.AttributionSettings attribution_settings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearAttributionSettings() { bitField0_ = (bitField0_ & ~0x00000002); attributionSettings_ = null; if (attributionSettingsBuilder_ != null) { attributionSettingsBuilder_.dispose(); attributionSettingsBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. Attribution settings for the linked Google Analytics property.
     * 
* * * .google.shopping.merchant.conversions.v1beta.AttributionSettings attribution_settings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.shopping.merchant.conversions.v1beta.AttributionSettings.Builder getAttributionSettingsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getAttributionSettingsFieldBuilder().getBuilder(); } /** * * *
     * Output only. Attribution settings for the linked Google Analytics property.
     * 
* * * .google.shopping.merchant.conversions.v1beta.AttributionSettings attribution_settings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.shopping.merchant.conversions.v1beta.AttributionSettingsOrBuilder getAttributionSettingsOrBuilder() { if (attributionSettingsBuilder_ != null) { return attributionSettingsBuilder_.getMessageOrBuilder(); } else { return attributionSettings_ == null ? com.google.shopping.merchant.conversions.v1beta.AttributionSettings .getDefaultInstance() : attributionSettings_; } } /** * * *
     * Output only. Attribution settings for the linked Google Analytics property.
     * 
* * * .google.shopping.merchant.conversions.v1beta.AttributionSettings attribution_settings = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.shopping.merchant.conversions.v1beta.AttributionSettings, com.google.shopping.merchant.conversions.v1beta.AttributionSettings.Builder, com.google.shopping.merchant.conversions.v1beta.AttributionSettingsOrBuilder> getAttributionSettingsFieldBuilder() { if (attributionSettingsBuilder_ == null) { attributionSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.shopping.merchant.conversions.v1beta.AttributionSettings, com.google.shopping.merchant.conversions.v1beta.AttributionSettings.Builder, com.google.shopping.merchant.conversions.v1beta.AttributionSettingsOrBuilder>( getAttributionSettings(), getParentForChildren(), isClean()); attributionSettings_ = null; } return attributionSettingsBuilder_; } private java.lang.Object property_ = ""; /** * * *
     * Output only. Name of the Google Analytics property the merchant is linked
     * to.
     * 
* * string property = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The property. */ public java.lang.String getProperty() { java.lang.Object ref = property_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); property_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. Name of the Google Analytics property the merchant is linked
     * to.
     * 
* * string property = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for property. */ public com.google.protobuf.ByteString getPropertyBytes() { java.lang.Object ref = property_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); property_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. Name of the Google Analytics property the merchant is linked
     * to.
     * 
* * string property = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The property to set. * @return This builder for chaining. */ public Builder setProperty(java.lang.String value) { if (value == null) { throw new NullPointerException(); } property_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. Name of the Google Analytics property the merchant is linked
     * to.
     * 
* * string property = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearProperty() { property_ = getDefaultInstance().getProperty(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * Output only. Name of the Google Analytics property the merchant is linked
     * to.
     * 
* * string property = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for property to set. * @return This builder for chaining. */ public Builder setPropertyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); property_ = 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.conversions.v1beta.GoogleAnalyticsLink) } // @@protoc_insertion_point(class_scope:google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink) private static final com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink(); } public static com.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GoogleAnalyticsLink 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.conversions.v1beta.GoogleAnalyticsLink getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy