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

com.google.ads.googleads.v10.common.CallFeedItem Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v10/common/extensions.proto

package com.google.ads.googleads.v10.common;

/**
 * 
 * Represents a Call extension.
 * 
* * Protobuf type {@code google.ads.googleads.v10.common.CallFeedItem} */ public final class CallFeedItem extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.common.CallFeedItem) CallFeedItemOrBuilder { private static final long serialVersionUID = 0L; // Use CallFeedItem.newBuilder() to construct. private CallFeedItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CallFeedItem() { phoneNumber_ = ""; countryCode_ = ""; callConversionAction_ = ""; callConversionReportingState_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CallFeedItem(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.common.ExtensionsProto.internal_static_google_ads_googleads_v10_common_CallFeedItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.common.ExtensionsProto.internal_static_google_ads_googleads_v10_common_CallFeedItem_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.common.CallFeedItem.class, com.google.ads.googleads.v10.common.CallFeedItem.Builder.class); } private int bitField0_; public static final int PHONE_NUMBER_FIELD_NUMBER = 7; private volatile java.lang.Object phoneNumber_; /** *
   * The advertiser's phone number to append to the ad.
   * This string must not be empty.
   * 
* * optional string phone_number = 7; * @return Whether the phoneNumber field is set. */ @java.lang.Override public boolean hasPhoneNumber() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The advertiser's phone number to append to the ad.
   * This string must not be empty.
   * 
* * optional string phone_number = 7; * @return The phoneNumber. */ @java.lang.Override public java.lang.String getPhoneNumber() { java.lang.Object ref = phoneNumber_; 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(); phoneNumber_ = s; return s; } } /** *
   * The advertiser's phone number to append to the ad.
   * This string must not be empty.
   * 
* * optional string phone_number = 7; * @return The bytes for phoneNumber. */ @java.lang.Override public com.google.protobuf.ByteString getPhoneNumberBytes() { java.lang.Object ref = phoneNumber_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); phoneNumber_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COUNTRY_CODE_FIELD_NUMBER = 8; private volatile java.lang.Object countryCode_; /** *
   * Uppercase two-letter country code of the advertiser's phone number.
   * This string must not be empty.
   * 
* * optional string country_code = 8; * @return Whether the countryCode field is set. */ @java.lang.Override public boolean hasCountryCode() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Uppercase two-letter country code of the advertiser's phone number.
   * This string must not be empty.
   * 
* * optional string country_code = 8; * @return The countryCode. */ @java.lang.Override public java.lang.String getCountryCode() { java.lang.Object ref = countryCode_; 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(); countryCode_ = s; return s; } } /** *
   * Uppercase two-letter country code of the advertiser's phone number.
   * This string must not be empty.
   * 
* * optional string country_code = 8; * @return The bytes for countryCode. */ @java.lang.Override public com.google.protobuf.ByteString getCountryCodeBytes() { java.lang.Object ref = countryCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); countryCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CALL_TRACKING_ENABLED_FIELD_NUMBER = 9; private boolean callTrackingEnabled_; /** *
   * Indicates whether call tracking is enabled. By default, call tracking is
   * not enabled.
   * 
* * optional bool call_tracking_enabled = 9; * @return Whether the callTrackingEnabled field is set. */ @java.lang.Override public boolean hasCallTrackingEnabled() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Indicates whether call tracking is enabled. By default, call tracking is
   * not enabled.
   * 
* * optional bool call_tracking_enabled = 9; * @return The callTrackingEnabled. */ @java.lang.Override public boolean getCallTrackingEnabled() { return callTrackingEnabled_; } public static final int CALL_CONVERSION_ACTION_FIELD_NUMBER = 10; private volatile java.lang.Object callConversionAction_; /** *
   * The conversion action to attribute a call conversion to. If not set a
   * default conversion action is used. This field only has effect if
   * call_tracking_enabled is set to true. Otherwise this field is ignored.
   * 
* * optional string call_conversion_action = 10; * @return Whether the callConversionAction field is set. */ @java.lang.Override public boolean hasCallConversionAction() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * The conversion action to attribute a call conversion to. If not set a
   * default conversion action is used. This field only has effect if
   * call_tracking_enabled is set to true. Otherwise this field is ignored.
   * 
* * optional string call_conversion_action = 10; * @return The callConversionAction. */ @java.lang.Override public java.lang.String getCallConversionAction() { java.lang.Object ref = callConversionAction_; 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(); callConversionAction_ = s; return s; } } /** *
   * The conversion action to attribute a call conversion to. If not set a
   * default conversion action is used. This field only has effect if
   * call_tracking_enabled is set to true. Otherwise this field is ignored.
   * 
* * optional string call_conversion_action = 10; * @return The bytes for callConversionAction. */ @java.lang.Override public com.google.protobuf.ByteString getCallConversionActionBytes() { java.lang.Object ref = callConversionAction_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); callConversionAction_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CALL_CONVERSION_TRACKING_DISABLED_FIELD_NUMBER = 11; private boolean callConversionTrackingDisabled_; /** *
   * If true, disable call conversion tracking. call_conversion_action should
   * not be set if this is true. Optional.
   * 
* * optional bool call_conversion_tracking_disabled = 11; * @return Whether the callConversionTrackingDisabled field is set. */ @java.lang.Override public boolean hasCallConversionTrackingDisabled() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * If true, disable call conversion tracking. call_conversion_action should
   * not be set if this is true. Optional.
   * 
* * optional bool call_conversion_tracking_disabled = 11; * @return The callConversionTrackingDisabled. */ @java.lang.Override public boolean getCallConversionTrackingDisabled() { return callConversionTrackingDisabled_; } public static final int CALL_CONVERSION_REPORTING_STATE_FIELD_NUMBER = 6; private int callConversionReportingState_; /** *
   * Enum value that indicates whether this call extension uses its own call
   * conversion setting (or just have call conversion disabled), or following
   * the account level setting.
   * 
* * .google.ads.googleads.v10.enums.CallConversionReportingStateEnum.CallConversionReportingState call_conversion_reporting_state = 6; * @return The enum numeric value on the wire for callConversionReportingState. */ @java.lang.Override public int getCallConversionReportingStateValue() { return callConversionReportingState_; } /** *
   * Enum value that indicates whether this call extension uses its own call
   * conversion setting (or just have call conversion disabled), or following
   * the account level setting.
   * 
* * .google.ads.googleads.v10.enums.CallConversionReportingStateEnum.CallConversionReportingState call_conversion_reporting_state = 6; * @return The callConversionReportingState. */ @java.lang.Override public com.google.ads.googleads.v10.enums.CallConversionReportingStateEnum.CallConversionReportingState getCallConversionReportingState() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.CallConversionReportingStateEnum.CallConversionReportingState result = com.google.ads.googleads.v10.enums.CallConversionReportingStateEnum.CallConversionReportingState.valueOf(callConversionReportingState_); return result == null ? com.google.ads.googleads.v10.enums.CallConversionReportingStateEnum.CallConversionReportingState.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (callConversionReportingState_ != com.google.ads.googleads.v10.enums.CallConversionReportingStateEnum.CallConversionReportingState.UNSPECIFIED.getNumber()) { output.writeEnum(6, callConversionReportingState_); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, phoneNumber_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, countryCode_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(9, callTrackingEnabled_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, callConversionAction_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(11, callConversionTrackingDisabled_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (callConversionReportingState_ != com.google.ads.googleads.v10.enums.CallConversionReportingStateEnum.CallConversionReportingState.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, callConversionReportingState_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, phoneNumber_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, countryCode_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, callTrackingEnabled_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, callConversionAction_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, callConversionTrackingDisabled_); } 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.v10.common.CallFeedItem)) { return super.equals(obj); } com.google.ads.googleads.v10.common.CallFeedItem other = (com.google.ads.googleads.v10.common.CallFeedItem) obj; if (hasPhoneNumber() != other.hasPhoneNumber()) return false; if (hasPhoneNumber()) { if (!getPhoneNumber() .equals(other.getPhoneNumber())) return false; } if (hasCountryCode() != other.hasCountryCode()) return false; if (hasCountryCode()) { if (!getCountryCode() .equals(other.getCountryCode())) return false; } if (hasCallTrackingEnabled() != other.hasCallTrackingEnabled()) return false; if (hasCallTrackingEnabled()) { if (getCallTrackingEnabled() != other.getCallTrackingEnabled()) return false; } if (hasCallConversionAction() != other.hasCallConversionAction()) return false; if (hasCallConversionAction()) { if (!getCallConversionAction() .equals(other.getCallConversionAction())) return false; } if (hasCallConversionTrackingDisabled() != other.hasCallConversionTrackingDisabled()) return false; if (hasCallConversionTrackingDisabled()) { if (getCallConversionTrackingDisabled() != other.getCallConversionTrackingDisabled()) return false; } if (callConversionReportingState_ != other.callConversionReportingState_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPhoneNumber()) { hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getPhoneNumber().hashCode(); } if (hasCountryCode()) { hash = (37 * hash) + COUNTRY_CODE_FIELD_NUMBER; hash = (53 * hash) + getCountryCode().hashCode(); } if (hasCallTrackingEnabled()) { hash = (37 * hash) + CALL_TRACKING_ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCallTrackingEnabled()); } if (hasCallConversionAction()) { hash = (37 * hash) + CALL_CONVERSION_ACTION_FIELD_NUMBER; hash = (53 * hash) + getCallConversionAction().hashCode(); } if (hasCallConversionTrackingDisabled()) { hash = (37 * hash) + CALL_CONVERSION_TRACKING_DISABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCallConversionTrackingDisabled()); } hash = (37 * hash) + CALL_CONVERSION_REPORTING_STATE_FIELD_NUMBER; hash = (53 * hash) + callConversionReportingState_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v10.common.CallFeedItem parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.common.CallFeedItem 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.v10.common.CallFeedItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.common.CallFeedItem 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.v10.common.CallFeedItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.common.CallFeedItem parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.common.CallFeedItem parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.common.CallFeedItem 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.v10.common.CallFeedItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.common.CallFeedItem 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.v10.common.CallFeedItem parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.common.CallFeedItem 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.v10.common.CallFeedItem 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 a Call extension.
   * 
* * Protobuf type {@code google.ads.googleads.v10.common.CallFeedItem} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.common.CallFeedItem) com.google.ads.googleads.v10.common.CallFeedItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.common.ExtensionsProto.internal_static_google_ads_googleads_v10_common_CallFeedItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.common.ExtensionsProto.internal_static_google_ads_googleads_v10_common_CallFeedItem_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.common.CallFeedItem.class, com.google.ads.googleads.v10.common.CallFeedItem.Builder.class); } // Construct using com.google.ads.googleads.v10.common.CallFeedItem.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); phoneNumber_ = ""; bitField0_ = (bitField0_ & ~0x00000001); countryCode_ = ""; bitField0_ = (bitField0_ & ~0x00000002); callTrackingEnabled_ = false; bitField0_ = (bitField0_ & ~0x00000004); callConversionAction_ = ""; bitField0_ = (bitField0_ & ~0x00000008); callConversionTrackingDisabled_ = false; bitField0_ = (bitField0_ & ~0x00000010); callConversionReportingState_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.common.ExtensionsProto.internal_static_google_ads_googleads_v10_common_CallFeedItem_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.common.CallFeedItem getDefaultInstanceForType() { return com.google.ads.googleads.v10.common.CallFeedItem.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.common.CallFeedItem build() { com.google.ads.googleads.v10.common.CallFeedItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.common.CallFeedItem buildPartial() { com.google.ads.googleads.v10.common.CallFeedItem result = new com.google.ads.googleads.v10.common.CallFeedItem(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.phoneNumber_ = phoneNumber_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.countryCode_ = countryCode_; if (((from_bitField0_ & 0x00000004) != 0)) { result.callTrackingEnabled_ = callTrackingEnabled_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { to_bitField0_ |= 0x00000008; } result.callConversionAction_ = callConversionAction_; if (((from_bitField0_ & 0x00000010) != 0)) { result.callConversionTrackingDisabled_ = callConversionTrackingDisabled_; to_bitField0_ |= 0x00000010; } result.callConversionReportingState_ = callConversionReportingState_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @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.v10.common.CallFeedItem) { return mergeFrom((com.google.ads.googleads.v10.common.CallFeedItem)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.common.CallFeedItem other) { if (other == com.google.ads.googleads.v10.common.CallFeedItem.getDefaultInstance()) return this; if (other.hasPhoneNumber()) { bitField0_ |= 0x00000001; phoneNumber_ = other.phoneNumber_; onChanged(); } if (other.hasCountryCode()) { bitField0_ |= 0x00000002; countryCode_ = other.countryCode_; onChanged(); } if (other.hasCallTrackingEnabled()) { setCallTrackingEnabled(other.getCallTrackingEnabled()); } if (other.hasCallConversionAction()) { bitField0_ |= 0x00000008; callConversionAction_ = other.callConversionAction_; onChanged(); } if (other.hasCallConversionTrackingDisabled()) { setCallConversionTrackingDisabled(other.getCallConversionTrackingDisabled()); } if (other.callConversionReportingState_ != 0) { setCallConversionReportingStateValue(other.getCallConversionReportingStateValue()); } 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 48: { callConversionReportingState_ = input.readEnum(); break; } // case 48 case 58: { phoneNumber_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 58 case 66: { countryCode_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 66 case 72: { callTrackingEnabled_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 72 case 82: { callConversionAction_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 82 case 88: { callConversionTrackingDisabled_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 88 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 phoneNumber_ = ""; /** *
     * The advertiser's phone number to append to the ad.
     * This string must not be empty.
     * 
* * optional string phone_number = 7; * @return Whether the phoneNumber field is set. */ public boolean hasPhoneNumber() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The advertiser's phone number to append to the ad.
     * This string must not be empty.
     * 
* * optional string phone_number = 7; * @return The phoneNumber. */ public java.lang.String getPhoneNumber() { java.lang.Object ref = phoneNumber_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phoneNumber_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The advertiser's phone number to append to the ad.
     * This string must not be empty.
     * 
* * optional string phone_number = 7; * @return The bytes for phoneNumber. */ public com.google.protobuf.ByteString getPhoneNumberBytes() { java.lang.Object ref = phoneNumber_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); phoneNumber_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The advertiser's phone number to append to the ad.
     * This string must not be empty.
     * 
* * optional string phone_number = 7; * @param value The phoneNumber to set. * @return This builder for chaining. */ public Builder setPhoneNumber( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; phoneNumber_ = value; onChanged(); return this; } /** *
     * The advertiser's phone number to append to the ad.
     * This string must not be empty.
     * 
* * optional string phone_number = 7; * @return This builder for chaining. */ public Builder clearPhoneNumber() { bitField0_ = (bitField0_ & ~0x00000001); phoneNumber_ = getDefaultInstance().getPhoneNumber(); onChanged(); return this; } /** *
     * The advertiser's phone number to append to the ad.
     * This string must not be empty.
     * 
* * optional string phone_number = 7; * @param value The bytes for phoneNumber to set. * @return This builder for chaining. */ public Builder setPhoneNumberBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000001; phoneNumber_ = value; onChanged(); return this; } private java.lang.Object countryCode_ = ""; /** *
     * Uppercase two-letter country code of the advertiser's phone number.
     * This string must not be empty.
     * 
* * optional string country_code = 8; * @return Whether the countryCode field is set. */ public boolean hasCountryCode() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Uppercase two-letter country code of the advertiser's phone number.
     * This string must not be empty.
     * 
* * optional string country_code = 8; * @return The countryCode. */ public java.lang.String getCountryCode() { java.lang.Object ref = countryCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); countryCode_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Uppercase two-letter country code of the advertiser's phone number.
     * This string must not be empty.
     * 
* * optional string country_code = 8; * @return The bytes for countryCode. */ public com.google.protobuf.ByteString getCountryCodeBytes() { java.lang.Object ref = countryCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); countryCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Uppercase two-letter country code of the advertiser's phone number.
     * This string must not be empty.
     * 
* * optional string country_code = 8; * @param value The countryCode to set. * @return This builder for chaining. */ public Builder setCountryCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; countryCode_ = value; onChanged(); return this; } /** *
     * Uppercase two-letter country code of the advertiser's phone number.
     * This string must not be empty.
     * 
* * optional string country_code = 8; * @return This builder for chaining. */ public Builder clearCountryCode() { bitField0_ = (bitField0_ & ~0x00000002); countryCode_ = getDefaultInstance().getCountryCode(); onChanged(); return this; } /** *
     * Uppercase two-letter country code of the advertiser's phone number.
     * This string must not be empty.
     * 
* * optional string country_code = 8; * @param value The bytes for countryCode to set. * @return This builder for chaining. */ public Builder setCountryCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000002; countryCode_ = value; onChanged(); return this; } private boolean callTrackingEnabled_ ; /** *
     * Indicates whether call tracking is enabled. By default, call tracking is
     * not enabled.
     * 
* * optional bool call_tracking_enabled = 9; * @return Whether the callTrackingEnabled field is set. */ @java.lang.Override public boolean hasCallTrackingEnabled() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Indicates whether call tracking is enabled. By default, call tracking is
     * not enabled.
     * 
* * optional bool call_tracking_enabled = 9; * @return The callTrackingEnabled. */ @java.lang.Override public boolean getCallTrackingEnabled() { return callTrackingEnabled_; } /** *
     * Indicates whether call tracking is enabled. By default, call tracking is
     * not enabled.
     * 
* * optional bool call_tracking_enabled = 9; * @param value The callTrackingEnabled to set. * @return This builder for chaining. */ public Builder setCallTrackingEnabled(boolean value) { bitField0_ |= 0x00000004; callTrackingEnabled_ = value; onChanged(); return this; } /** *
     * Indicates whether call tracking is enabled. By default, call tracking is
     * not enabled.
     * 
* * optional bool call_tracking_enabled = 9; * @return This builder for chaining. */ public Builder clearCallTrackingEnabled() { bitField0_ = (bitField0_ & ~0x00000004); callTrackingEnabled_ = false; onChanged(); return this; } private java.lang.Object callConversionAction_ = ""; /** *
     * The conversion action to attribute a call conversion to. If not set a
     * default conversion action is used. This field only has effect if
     * call_tracking_enabled is set to true. Otherwise this field is ignored.
     * 
* * optional string call_conversion_action = 10; * @return Whether the callConversionAction field is set. */ public boolean hasCallConversionAction() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * The conversion action to attribute a call conversion to. If not set a
     * default conversion action is used. This field only has effect if
     * call_tracking_enabled is set to true. Otherwise this field is ignored.
     * 
* * optional string call_conversion_action = 10; * @return The callConversionAction. */ public java.lang.String getCallConversionAction() { java.lang.Object ref = callConversionAction_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); callConversionAction_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The conversion action to attribute a call conversion to. If not set a
     * default conversion action is used. This field only has effect if
     * call_tracking_enabled is set to true. Otherwise this field is ignored.
     * 
* * optional string call_conversion_action = 10; * @return The bytes for callConversionAction. */ public com.google.protobuf.ByteString getCallConversionActionBytes() { java.lang.Object ref = callConversionAction_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); callConversionAction_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The conversion action to attribute a call conversion to. If not set a
     * default conversion action is used. This field only has effect if
     * call_tracking_enabled is set to true. Otherwise this field is ignored.
     * 
* * optional string call_conversion_action = 10; * @param value The callConversionAction to set. * @return This builder for chaining. */ public Builder setCallConversionAction( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; callConversionAction_ = value; onChanged(); return this; } /** *
     * The conversion action to attribute a call conversion to. If not set a
     * default conversion action is used. This field only has effect if
     * call_tracking_enabled is set to true. Otherwise this field is ignored.
     * 
* * optional string call_conversion_action = 10; * @return This builder for chaining. */ public Builder clearCallConversionAction() { bitField0_ = (bitField0_ & ~0x00000008); callConversionAction_ = getDefaultInstance().getCallConversionAction(); onChanged(); return this; } /** *
     * The conversion action to attribute a call conversion to. If not set a
     * default conversion action is used. This field only has effect if
     * call_tracking_enabled is set to true. Otherwise this field is ignored.
     * 
* * optional string call_conversion_action = 10; * @param value The bytes for callConversionAction to set. * @return This builder for chaining. */ public Builder setCallConversionActionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000008; callConversionAction_ = value; onChanged(); return this; } private boolean callConversionTrackingDisabled_ ; /** *
     * If true, disable call conversion tracking. call_conversion_action should
     * not be set if this is true. Optional.
     * 
* * optional bool call_conversion_tracking_disabled = 11; * @return Whether the callConversionTrackingDisabled field is set. */ @java.lang.Override public boolean hasCallConversionTrackingDisabled() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * If true, disable call conversion tracking. call_conversion_action should
     * not be set if this is true. Optional.
     * 
* * optional bool call_conversion_tracking_disabled = 11; * @return The callConversionTrackingDisabled. */ @java.lang.Override public boolean getCallConversionTrackingDisabled() { return callConversionTrackingDisabled_; } /** *
     * If true, disable call conversion tracking. call_conversion_action should
     * not be set if this is true. Optional.
     * 
* * optional bool call_conversion_tracking_disabled = 11; * @param value The callConversionTrackingDisabled to set. * @return This builder for chaining. */ public Builder setCallConversionTrackingDisabled(boolean value) { bitField0_ |= 0x00000010; callConversionTrackingDisabled_ = value; onChanged(); return this; } /** *
     * If true, disable call conversion tracking. call_conversion_action should
     * not be set if this is true. Optional.
     * 
* * optional bool call_conversion_tracking_disabled = 11; * @return This builder for chaining. */ public Builder clearCallConversionTrackingDisabled() { bitField0_ = (bitField0_ & ~0x00000010); callConversionTrackingDisabled_ = false; onChanged(); return this; } private int callConversionReportingState_ = 0; /** *
     * Enum value that indicates whether this call extension uses its own call
     * conversion setting (or just have call conversion disabled), or following
     * the account level setting.
     * 
* * .google.ads.googleads.v10.enums.CallConversionReportingStateEnum.CallConversionReportingState call_conversion_reporting_state = 6; * @return The enum numeric value on the wire for callConversionReportingState. */ @java.lang.Override public int getCallConversionReportingStateValue() { return callConversionReportingState_; } /** *
     * Enum value that indicates whether this call extension uses its own call
     * conversion setting (or just have call conversion disabled), or following
     * the account level setting.
     * 
* * .google.ads.googleads.v10.enums.CallConversionReportingStateEnum.CallConversionReportingState call_conversion_reporting_state = 6; * @param value The enum numeric value on the wire for callConversionReportingState to set. * @return This builder for chaining. */ public Builder setCallConversionReportingStateValue(int value) { callConversionReportingState_ = value; onChanged(); return this; } /** *
     * Enum value that indicates whether this call extension uses its own call
     * conversion setting (or just have call conversion disabled), or following
     * the account level setting.
     * 
* * .google.ads.googleads.v10.enums.CallConversionReportingStateEnum.CallConversionReportingState call_conversion_reporting_state = 6; * @return The callConversionReportingState. */ @java.lang.Override public com.google.ads.googleads.v10.enums.CallConversionReportingStateEnum.CallConversionReportingState getCallConversionReportingState() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.CallConversionReportingStateEnum.CallConversionReportingState result = com.google.ads.googleads.v10.enums.CallConversionReportingStateEnum.CallConversionReportingState.valueOf(callConversionReportingState_); return result == null ? com.google.ads.googleads.v10.enums.CallConversionReportingStateEnum.CallConversionReportingState.UNRECOGNIZED : result; } /** *
     * Enum value that indicates whether this call extension uses its own call
     * conversion setting (or just have call conversion disabled), or following
     * the account level setting.
     * 
* * .google.ads.googleads.v10.enums.CallConversionReportingStateEnum.CallConversionReportingState call_conversion_reporting_state = 6; * @param value The callConversionReportingState to set. * @return This builder for chaining. */ public Builder setCallConversionReportingState(com.google.ads.googleads.v10.enums.CallConversionReportingStateEnum.CallConversionReportingState value) { if (value == null) { throw new NullPointerException(); } callConversionReportingState_ = value.getNumber(); onChanged(); return this; } /** *
     * Enum value that indicates whether this call extension uses its own call
     * conversion setting (or just have call conversion disabled), or following
     * the account level setting.
     * 
* * .google.ads.googleads.v10.enums.CallConversionReportingStateEnum.CallConversionReportingState call_conversion_reporting_state = 6; * @return This builder for chaining. */ public Builder clearCallConversionReportingState() { callConversionReportingState_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.common.CallFeedItem) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.common.CallFeedItem) private static final com.google.ads.googleads.v10.common.CallFeedItem DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.common.CallFeedItem(); } public static com.google.ads.googleads.v10.common.CallFeedItem getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CallFeedItem 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.v10.common.CallFeedItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy