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

com.google.ads.googleads.v10.resources.GeoTargetConstant Maven / Gradle / Ivy

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

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

/**
 * 
 * A geo target constant.
 * 
* * Protobuf type {@code google.ads.googleads.v10.resources.GeoTargetConstant} */ public final class GeoTargetConstant extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.resources.GeoTargetConstant) GeoTargetConstantOrBuilder { private static final long serialVersionUID = 0L; // Use GeoTargetConstant.newBuilder() to construct. private GeoTargetConstant(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GeoTargetConstant() { resourceName_ = ""; name_ = ""; countryCode_ = ""; targetType_ = ""; status_ = 0; canonicalName_ = ""; parentGeoTarget_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GeoTargetConstant(); } @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.resources.GeoTargetConstantProto.internal_static_google_ads_googleads_v10_resources_GeoTargetConstant_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.GeoTargetConstantProto.internal_static_google_ads_googleads_v10_resources_GeoTargetConstant_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.GeoTargetConstant.class, com.google.ads.googleads.v10.resources.GeoTargetConstant.Builder.class); } private int bitField0_; public static final int RESOURCE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object resourceName_; /** *
   * Output only. The resource name of the geo target constant.
   * Geo target constant resource names have the form:
   * `geoTargetConstants/{geo_target_constant_id}`
   * 
* * string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; } } /** *
   * Output only. The resource name of the geo target constant.
   * Geo target constant resource names have the form:
   * `geoTargetConstants/{geo_target_constant_id}`
   * 
* * string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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 ID_FIELD_NUMBER = 10; private long id_; /** *
   * Output only. The ID of the geo target constant.
   * 
* * optional int64 id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Output only. The ID of the geo target constant.
   * 
* * optional int64 id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The id. */ @java.lang.Override public long getId() { return id_; } public static final int NAME_FIELD_NUMBER = 11; private volatile java.lang.Object name_; /** *
   * Output only. Geo target constant English name.
   * 
* * optional string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Output only. Geo target constant English name.
   * 
* * optional string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
   * Output only. Geo target constant English name.
   * 
* * optional string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COUNTRY_CODE_FIELD_NUMBER = 12; private volatile java.lang.Object countryCode_; /** *
   * Output only. The ISO-3166-1 alpha-2 country code that is associated with the target.
   * 
* * optional string country_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the countryCode field is set. */ @java.lang.Override public boolean hasCountryCode() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Output only. The ISO-3166-1 alpha-2 country code that is associated with the target.
   * 
* * optional string country_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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; } } /** *
   * Output only. The ISO-3166-1 alpha-2 country code that is associated with the target.
   * 
* * optional string country_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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 TARGET_TYPE_FIELD_NUMBER = 13; private volatile java.lang.Object targetType_; /** *
   * Output only. Geo target constant target type.
   * 
* * optional string target_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the targetType field is set. */ @java.lang.Override public boolean hasTargetType() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * Output only. Geo target constant target type.
   * 
* * optional string target_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetType. */ @java.lang.Override public java.lang.String getTargetType() { java.lang.Object ref = targetType_; 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(); targetType_ = s; return s; } } /** *
   * Output only. Geo target constant target type.
   * 
* * optional string target_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for targetType. */ @java.lang.Override public com.google.protobuf.ByteString getTargetTypeBytes() { java.lang.Object ref = targetType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATUS_FIELD_NUMBER = 7; private int status_; /** *
   * Output only. Geo target constant status.
   * 
* * .google.ads.googleads.v10.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus status = 7 [(.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. Geo target constant status.
   * 
* * .google.ads.googleads.v10.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ @java.lang.Override public com.google.ads.googleads.v10.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus getStatus() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus result = com.google.ads.googleads.v10.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus.valueOf(status_); return result == null ? com.google.ads.googleads.v10.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus.UNRECOGNIZED : result; } public static final int CANONICAL_NAME_FIELD_NUMBER = 14; private volatile java.lang.Object canonicalName_; /** *
   * Output only. The fully qualified English name, consisting of the target's name and that
   * of its parent and country.
   * 
* * optional string canonical_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the canonicalName field is set. */ @java.lang.Override public boolean hasCanonicalName() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * Output only. The fully qualified English name, consisting of the target's name and that
   * of its parent and country.
   * 
* * optional string canonical_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The canonicalName. */ @java.lang.Override public java.lang.String getCanonicalName() { java.lang.Object ref = canonicalName_; 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(); canonicalName_ = s; return s; } } /** *
   * Output only. The fully qualified English name, consisting of the target's name and that
   * of its parent and country.
   * 
* * optional string canonical_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for canonicalName. */ @java.lang.Override public com.google.protobuf.ByteString getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); canonicalName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARENT_GEO_TARGET_FIELD_NUMBER = 9; private volatile java.lang.Object parentGeoTarget_; /** *
   * Output only. The resource name of the parent geo target constant.
   * Geo target constant resource names have the form:
   * `geoTargetConstants/{parent_geo_target_constant_id}`
   * 
* * optional string parent_geo_target = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return Whether the parentGeoTarget field is set. */ @java.lang.Override public boolean hasParentGeoTarget() { return ((bitField0_ & 0x00000020) != 0); } /** *
   * Output only. The resource name of the parent geo target constant.
   * Geo target constant resource names have the form:
   * `geoTargetConstants/{parent_geo_target_constant_id}`
   * 
* * optional string parent_geo_target = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The parentGeoTarget. */ @java.lang.Override public java.lang.String getParentGeoTarget() { java.lang.Object ref = parentGeoTarget_; 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(); parentGeoTarget_ = s; return s; } } /** *
   * Output only. The resource name of the parent geo target constant.
   * Geo target constant resource names have the form:
   * `geoTargetConstants/{parent_geo_target_constant_id}`
   * 
* * optional string parent_geo_target = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for parentGeoTarget. */ @java.lang.Override public com.google.protobuf.ByteString getParentGeoTargetBytes() { java.lang.Object ref = parentGeoTarget_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); parentGeoTarget_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); } if (status_ != com.google.ads.googleads.v10.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus.UNSPECIFIED.getNumber()) { output.writeEnum(7, status_); } if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, parentGeoTarget_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(10, id_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, name_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, countryCode_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, targetType_); } if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, canonicalName_); } 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 (status_ != com.google.ads.googleads.v10.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, status_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, parentGeoTarget_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(10, id_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, name_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, countryCode_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, targetType_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, canonicalName_); } 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.resources.GeoTargetConstant)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.GeoTargetConstant other = (com.google.ads.googleads.v10.resources.GeoTargetConstant) obj; if (!getResourceName() .equals(other.getResourceName())) return false; if (hasId() != other.hasId()) return false; if (hasId()) { if (getId() != other.getId()) return false; } if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (hasCountryCode() != other.hasCountryCode()) return false; if (hasCountryCode()) { if (!getCountryCode() .equals(other.getCountryCode())) return false; } if (hasTargetType() != other.hasTargetType()) return false; if (hasTargetType()) { if (!getTargetType() .equals(other.getTargetType())) return false; } if (status_ != other.status_) return false; if (hasCanonicalName() != other.hasCanonicalName()) return false; if (hasCanonicalName()) { if (!getCanonicalName() .equals(other.getCanonicalName())) return false; } if (hasParentGeoTarget() != other.hasParentGeoTarget()) return false; if (hasParentGeoTarget()) { if (!getParentGeoTarget() .equals(other.getParentGeoTarget())) 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) + RESOURCE_NAME_FIELD_NUMBER; hash = (53 * hash) + getResourceName().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getId()); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasCountryCode()) { hash = (37 * hash) + COUNTRY_CODE_FIELD_NUMBER; hash = (53 * hash) + getCountryCode().hashCode(); } if (hasTargetType()) { hash = (37 * hash) + TARGET_TYPE_FIELD_NUMBER; hash = (53 * hash) + getTargetType().hashCode(); } hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (hasCanonicalName()) { hash = (37 * hash) + CANONICAL_NAME_FIELD_NUMBER; hash = (53 * hash) + getCanonicalName().hashCode(); } if (hasParentGeoTarget()) { hash = (37 * hash) + PARENT_GEO_TARGET_FIELD_NUMBER; hash = (53 * hash) + getParentGeoTarget().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v10.resources.GeoTargetConstant parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.GeoTargetConstant 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.resources.GeoTargetConstant parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.GeoTargetConstant 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.resources.GeoTargetConstant parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.GeoTargetConstant 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.resources.GeoTargetConstant parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.GeoTargetConstant 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.resources.GeoTargetConstant parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.GeoTargetConstant 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.resources.GeoTargetConstant 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.resources.GeoTargetConstant 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.resources.GeoTargetConstant 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; } /** *
   * A geo target constant.
   * 
* * Protobuf type {@code google.ads.googleads.v10.resources.GeoTargetConstant} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.GeoTargetConstant) com.google.ads.googleads.v10.resources.GeoTargetConstantOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.GeoTargetConstantProto.internal_static_google_ads_googleads_v10_resources_GeoTargetConstant_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.GeoTargetConstantProto.internal_static_google_ads_googleads_v10_resources_GeoTargetConstant_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.GeoTargetConstant.class, com.google.ads.googleads.v10.resources.GeoTargetConstant.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.GeoTargetConstant.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); resourceName_ = ""; id_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); countryCode_ = ""; bitField0_ = (bitField0_ & ~0x00000004); targetType_ = ""; bitField0_ = (bitField0_ & ~0x00000008); status_ = 0; canonicalName_ = ""; bitField0_ = (bitField0_ & ~0x00000010); parentGeoTarget_ = ""; bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.GeoTargetConstantProto.internal_static_google_ads_googleads_v10_resources_GeoTargetConstant_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.GeoTargetConstant getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.GeoTargetConstant.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.GeoTargetConstant build() { com.google.ads.googleads.v10.resources.GeoTargetConstant result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.GeoTargetConstant buildPartial() { com.google.ads.googleads.v10.resources.GeoTargetConstant result = new com.google.ads.googleads.v10.resources.GeoTargetConstant(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.resourceName_ = resourceName_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.countryCode_ = countryCode_; if (((from_bitField0_ & 0x00000008) != 0)) { to_bitField0_ |= 0x00000008; } result.targetType_ = targetType_; result.status_ = status_; if (((from_bitField0_ & 0x00000010) != 0)) { to_bitField0_ |= 0x00000010; } result.canonicalName_ = canonicalName_; if (((from_bitField0_ & 0x00000020) != 0)) { to_bitField0_ |= 0x00000020; } result.parentGeoTarget_ = parentGeoTarget_; 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.resources.GeoTargetConstant) { return mergeFrom((com.google.ads.googleads.v10.resources.GeoTargetConstant)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.GeoTargetConstant other) { if (other == com.google.ads.googleads.v10.resources.GeoTargetConstant.getDefaultInstance()) return this; if (!other.getResourceName().isEmpty()) { resourceName_ = other.resourceName_; onChanged(); } if (other.hasId()) { setId(other.getId()); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasCountryCode()) { bitField0_ |= 0x00000004; countryCode_ = other.countryCode_; onChanged(); } if (other.hasTargetType()) { bitField0_ |= 0x00000008; targetType_ = other.targetType_; onChanged(); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (other.hasCanonicalName()) { bitField0_ |= 0x00000010; canonicalName_ = other.canonicalName_; onChanged(); } if (other.hasParentGeoTarget()) { bitField0_ |= 0x00000020; parentGeoTarget_ = other.parentGeoTarget_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { resourceName_ = input.readStringRequireUtf8(); break; } // case 10 case 56: { status_ = input.readEnum(); break; } // case 56 case 74: { parentGeoTarget_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 74 case 80: { id_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 80 case 90: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 90 case 98: { countryCode_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 98 case 106: { targetType_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 106 case 114: { canonicalName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 114 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 resourceName_ = ""; /** *
     * Output only. The resource name of the geo target constant.
     * Geo target constant resource names have the form:
     * `geoTargetConstants/{geo_target_constant_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; } } /** *
     * Output only. The resource name of the geo target constant.
     * Geo target constant resource names have the form:
     * `geoTargetConstants/{geo_target_constant_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; } } /** *
     * Output only. The resource name of the geo target constant.
     * Geo target constant resource names have the form:
     * `geoTargetConstants/{geo_target_constant_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; onChanged(); return this; } /** *
     * Output only. The resource name of the geo target constant.
     * Geo target constant resource names have the form:
     * `geoTargetConstants/{geo_target_constant_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearResourceName() { resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** *
     * Output only. The resource name of the geo target constant.
     * Geo target constant resource names have the form:
     * `geoTargetConstants/{geo_target_constant_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; onChanged(); return this; } private long id_ ; /** *
     * Output only. The ID of the geo target constant.
     * 
* * optional int64 id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The ID of the geo target constant.
     * 
* * optional int64 id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The id. */ @java.lang.Override public long getId() { return id_; } /** *
     * Output only. The ID of the geo target constant.
     * 
* * optional int64 id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The id to set. * @return This builder for chaining. */ public Builder setId(long value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** *
     * Output only. The ID of the geo target constant.
     * 
* * optional int64 id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
     * Output only. Geo target constant English name.
     * 
* * optional string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Output only. Geo target constant English name.
     * 
* * optional string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Output only. Geo target constant English name.
     * 
* * optional string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Output only. Geo target constant English name.
     * 
* * optional string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** *
     * Output only. Geo target constant English name.
     * 
* * optional string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * Output only. Geo target constant English name.
     * 
* * optional string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } private java.lang.Object countryCode_ = ""; /** *
     * Output only. The ISO-3166-1 alpha-2 country code that is associated with the target.
     * 
* * optional string country_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the countryCode field is set. */ public boolean hasCountryCode() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Output only. The ISO-3166-1 alpha-2 country code that is associated with the target.
     * 
* * optional string country_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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; } } /** *
     * Output only. The ISO-3166-1 alpha-2 country code that is associated with the target.
     * 
* * optional string country_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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; } } /** *
     * Output only. The ISO-3166-1 alpha-2 country code that is associated with the target.
     * 
* * optional string country_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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_ |= 0x00000004; countryCode_ = value; onChanged(); return this; } /** *
     * Output only. The ISO-3166-1 alpha-2 country code that is associated with the target.
     * 
* * optional string country_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCountryCode() { bitField0_ = (bitField0_ & ~0x00000004); countryCode_ = getDefaultInstance().getCountryCode(); onChanged(); return this; } /** *
     * Output only. The ISO-3166-1 alpha-2 country code that is associated with the target.
     * 
* * optional string country_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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_ |= 0x00000004; countryCode_ = value; onChanged(); return this; } private java.lang.Object targetType_ = ""; /** *
     * Output only. Geo target constant target type.
     * 
* * optional string target_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the targetType field is set. */ public boolean hasTargetType() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Output only. Geo target constant target type.
     * 
* * optional string target_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetType. */ public java.lang.String getTargetType() { java.lang.Object ref = targetType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetType_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Output only. Geo target constant target type.
     * 
* * optional string target_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for targetType. */ public com.google.protobuf.ByteString getTargetTypeBytes() { java.lang.Object ref = targetType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Output only. Geo target constant target type.
     * 
* * optional string target_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The targetType to set. * @return This builder for chaining. */ public Builder setTargetType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; targetType_ = value; onChanged(); return this; } /** *
     * Output only. Geo target constant target type.
     * 
* * optional string target_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearTargetType() { bitField0_ = (bitField0_ & ~0x00000008); targetType_ = getDefaultInstance().getTargetType(); onChanged(); return this; } /** *
     * Output only. Geo target constant target type.
     * 
* * optional string target_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for targetType to set. * @return This builder for chaining. */ public Builder setTargetTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000008; targetType_ = value; onChanged(); return this; } private int status_ = 0; /** *
     * Output only. Geo target constant status.
     * 
* * .google.ads.googleads.v10.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus status = 7 [(.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. Geo target constant status.
     * 
* * .google.ads.googleads.v10.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus status = 7 [(.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; onChanged(); return this; } /** *
     * Output only. Geo target constant status.
     * 
* * .google.ads.googleads.v10.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ @java.lang.Override public com.google.ads.googleads.v10.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus getStatus() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus result = com.google.ads.googleads.v10.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus.valueOf(status_); return result == null ? com.google.ads.googleads.v10.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus.UNRECOGNIZED : result; } /** *
     * Output only. Geo target constant status.
     * 
* * .google.ads.googleads.v10.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(com.google.ads.googleads.v10.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. Geo target constant status.
     * 
* * .google.ads.googleads.v10.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private java.lang.Object canonicalName_ = ""; /** *
     * Output only. The fully qualified English name, consisting of the target's name and that
     * of its parent and country.
     * 
* * optional string canonical_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the canonicalName field is set. */ public boolean hasCanonicalName() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Output only. The fully qualified English name, consisting of the target's name and that
     * of its parent and country.
     * 
* * optional string canonical_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The canonicalName. */ public java.lang.String getCanonicalName() { java.lang.Object ref = canonicalName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Output only. The fully qualified English name, consisting of the target's name and that
     * of its parent and country.
     * 
* * optional string canonical_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for canonicalName. */ public com.google.protobuf.ByteString getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); canonicalName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Output only. The fully qualified English name, consisting of the target's name and that
     * of its parent and country.
     * 
* * optional string canonical_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The canonicalName to set. * @return This builder for chaining. */ public Builder setCanonicalName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; canonicalName_ = value; onChanged(); return this; } /** *
     * Output only. The fully qualified English name, consisting of the target's name and that
     * of its parent and country.
     * 
* * optional string canonical_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCanonicalName() { bitField0_ = (bitField0_ & ~0x00000010); canonicalName_ = getDefaultInstance().getCanonicalName(); onChanged(); return this; } /** *
     * Output only. The fully qualified English name, consisting of the target's name and that
     * of its parent and country.
     * 
* * optional string canonical_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for canonicalName to set. * @return This builder for chaining. */ public Builder setCanonicalNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000010; canonicalName_ = value; onChanged(); return this; } private java.lang.Object parentGeoTarget_ = ""; /** *
     * Output only. The resource name of the parent geo target constant.
     * Geo target constant resource names have the form:
     * `geoTargetConstants/{parent_geo_target_constant_id}`
     * 
* * optional string parent_geo_target = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return Whether the parentGeoTarget field is set. */ public boolean hasParentGeoTarget() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Output only. The resource name of the parent geo target constant.
     * Geo target constant resource names have the form:
     * `geoTargetConstants/{parent_geo_target_constant_id}`
     * 
* * optional string parent_geo_target = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The parentGeoTarget. */ public java.lang.String getParentGeoTarget() { java.lang.Object ref = parentGeoTarget_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentGeoTarget_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Output only. The resource name of the parent geo target constant.
     * Geo target constant resource names have the form:
     * `geoTargetConstants/{parent_geo_target_constant_id}`
     * 
* * optional string parent_geo_target = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for parentGeoTarget. */ public com.google.protobuf.ByteString getParentGeoTargetBytes() { java.lang.Object ref = parentGeoTarget_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); parentGeoTarget_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Output only. The resource name of the parent geo target constant.
     * Geo target constant resource names have the form:
     * `geoTargetConstants/{parent_geo_target_constant_id}`
     * 
* * optional string parent_geo_target = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The parentGeoTarget to set. * @return This builder for chaining. */ public Builder setParentGeoTarget( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; parentGeoTarget_ = value; onChanged(); return this; } /** *
     * Output only. The resource name of the parent geo target constant.
     * Geo target constant resource names have the form:
     * `geoTargetConstants/{parent_geo_target_constant_id}`
     * 
* * optional string parent_geo_target = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParentGeoTarget() { bitField0_ = (bitField0_ & ~0x00000020); parentGeoTarget_ = getDefaultInstance().getParentGeoTarget(); onChanged(); return this; } /** *
     * Output only. The resource name of the parent geo target constant.
     * Geo target constant resource names have the form:
     * `geoTargetConstants/{parent_geo_target_constant_id}`
     * 
* * optional string parent_geo_target = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for parentGeoTarget to set. * @return This builder for chaining. */ public Builder setParentGeoTargetBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000020; parentGeoTarget_ = value; 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.resources.GeoTargetConstant) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.GeoTargetConstant) private static final com.google.ads.googleads.v10.resources.GeoTargetConstant DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.GeoTargetConstant(); } public static com.google.ads.googleads.v10.resources.GeoTargetConstant getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GeoTargetConstant 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.resources.GeoTargetConstant getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy