com.google.ads.googleads.v17.common.LocationSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v17/common/asset_set_types.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.common;
/**
*
* Data related to location set. One of the Google Business Profile (previously
* known as Google My Business) data, Chain data, and map location data need to
* be specified.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.LocationSet}
*/
public final class LocationSet extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.LocationSet)
LocationSetOrBuilder {
private static final long serialVersionUID = 0L;
// Use LocationSet.newBuilder() to construct.
private LocationSet(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LocationSet() {
locationOwnershipType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LocationSet();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.AssetSetTypesProto.internal_static_google_ads_googleads_v17_common_LocationSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.AssetSetTypesProto.internal_static_google_ads_googleads_v17_common_LocationSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.LocationSet.class, com.google.ads.googleads.v17.common.LocationSet.Builder.class);
}
private int sourceCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object source_;
public enum SourceCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
BUSINESS_PROFILE_LOCATION_SET(1),
CHAIN_LOCATION_SET(2),
MAPS_LOCATION_SET(5),
SOURCE_NOT_SET(0);
private final int value;
private SourceCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SourceCase valueOf(int value) {
return forNumber(value);
}
public static SourceCase forNumber(int value) {
switch (value) {
case 1: return BUSINESS_PROFILE_LOCATION_SET;
case 2: return CHAIN_LOCATION_SET;
case 5: return MAPS_LOCATION_SET;
case 0: return SOURCE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public SourceCase
getSourceCase() {
return SourceCase.forNumber(
sourceCase_);
}
public static final int LOCATION_OWNERSHIP_TYPE_FIELD_NUMBER = 3;
private int locationOwnershipType_ = 0;
/**
*
* Required. Immutable. Location Ownership Type (owned location or affiliate
* location).
*
*
* .google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
* @return The enum numeric value on the wire for locationOwnershipType.
*/
@java.lang.Override public int getLocationOwnershipTypeValue() {
return locationOwnershipType_;
}
/**
*
* Required. Immutable. Location Ownership Type (owned location or affiliate
* location).
*
*
* .google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
* @return The locationOwnershipType.
*/
@java.lang.Override public com.google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType getLocationOwnershipType() {
com.google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType result = com.google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType.forNumber(locationOwnershipType_);
return result == null ? com.google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType.UNRECOGNIZED : result;
}
public static final int BUSINESS_PROFILE_LOCATION_SET_FIELD_NUMBER = 1;
/**
*
* Data used to configure a location set populated from Google Business
* Profile locations.
*
*
* .google.ads.googleads.v17.common.BusinessProfileLocationSet business_profile_location_set = 1;
* @return Whether the businessProfileLocationSet field is set.
*/
@java.lang.Override
public boolean hasBusinessProfileLocationSet() {
return sourceCase_ == 1;
}
/**
*
* Data used to configure a location set populated from Google Business
* Profile locations.
*
*
* .google.ads.googleads.v17.common.BusinessProfileLocationSet business_profile_location_set = 1;
* @return The businessProfileLocationSet.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.BusinessProfileLocationSet getBusinessProfileLocationSet() {
if (sourceCase_ == 1) {
return (com.google.ads.googleads.v17.common.BusinessProfileLocationSet) source_;
}
return com.google.ads.googleads.v17.common.BusinessProfileLocationSet.getDefaultInstance();
}
/**
*
* Data used to configure a location set populated from Google Business
* Profile locations.
*
*
* .google.ads.googleads.v17.common.BusinessProfileLocationSet business_profile_location_set = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.BusinessProfileLocationSetOrBuilder getBusinessProfileLocationSetOrBuilder() {
if (sourceCase_ == 1) {
return (com.google.ads.googleads.v17.common.BusinessProfileLocationSet) source_;
}
return com.google.ads.googleads.v17.common.BusinessProfileLocationSet.getDefaultInstance();
}
public static final int CHAIN_LOCATION_SET_FIELD_NUMBER = 2;
/**
*
* Data used to configure a location on chain set populated with the
* specified chains.
*
*
* .google.ads.googleads.v17.common.ChainSet chain_location_set = 2;
* @return Whether the chainLocationSet field is set.
*/
@java.lang.Override
public boolean hasChainLocationSet() {
return sourceCase_ == 2;
}
/**
*
* Data used to configure a location on chain set populated with the
* specified chains.
*
*
* .google.ads.googleads.v17.common.ChainSet chain_location_set = 2;
* @return The chainLocationSet.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.ChainSet getChainLocationSet() {
if (sourceCase_ == 2) {
return (com.google.ads.googleads.v17.common.ChainSet) source_;
}
return com.google.ads.googleads.v17.common.ChainSet.getDefaultInstance();
}
/**
*
* Data used to configure a location on chain set populated with the
* specified chains.
*
*
* .google.ads.googleads.v17.common.ChainSet chain_location_set = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.ChainSetOrBuilder getChainLocationSetOrBuilder() {
if (sourceCase_ == 2) {
return (com.google.ads.googleads.v17.common.ChainSet) source_;
}
return com.google.ads.googleads.v17.common.ChainSet.getDefaultInstance();
}
public static final int MAPS_LOCATION_SET_FIELD_NUMBER = 5;
/**
*
* Only set if locations are synced based on selected maps locations
*
*
* .google.ads.googleads.v17.common.MapsLocationSet maps_location_set = 5;
* @return Whether the mapsLocationSet field is set.
*/
@java.lang.Override
public boolean hasMapsLocationSet() {
return sourceCase_ == 5;
}
/**
*
* Only set if locations are synced based on selected maps locations
*
*
* .google.ads.googleads.v17.common.MapsLocationSet maps_location_set = 5;
* @return The mapsLocationSet.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MapsLocationSet getMapsLocationSet() {
if (sourceCase_ == 5) {
return (com.google.ads.googleads.v17.common.MapsLocationSet) source_;
}
return com.google.ads.googleads.v17.common.MapsLocationSet.getDefaultInstance();
}
/**
*
* Only set if locations are synced based on selected maps locations
*
*
* .google.ads.googleads.v17.common.MapsLocationSet maps_location_set = 5;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MapsLocationSetOrBuilder getMapsLocationSetOrBuilder() {
if (sourceCase_ == 5) {
return (com.google.ads.googleads.v17.common.MapsLocationSet) source_;
}
return com.google.ads.googleads.v17.common.MapsLocationSet.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (sourceCase_ == 1) {
output.writeMessage(1, (com.google.ads.googleads.v17.common.BusinessProfileLocationSet) source_);
}
if (sourceCase_ == 2) {
output.writeMessage(2, (com.google.ads.googleads.v17.common.ChainSet) source_);
}
if (locationOwnershipType_ != com.google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType.UNSPECIFIED.getNumber()) {
output.writeEnum(3, locationOwnershipType_);
}
if (sourceCase_ == 5) {
output.writeMessage(5, (com.google.ads.googleads.v17.common.MapsLocationSet) source_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (sourceCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.google.ads.googleads.v17.common.BusinessProfileLocationSet) source_);
}
if (sourceCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.google.ads.googleads.v17.common.ChainSet) source_);
}
if (locationOwnershipType_ != com.google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, locationOwnershipType_);
}
if (sourceCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (com.google.ads.googleads.v17.common.MapsLocationSet) source_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v17.common.LocationSet)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.common.LocationSet other = (com.google.ads.googleads.v17.common.LocationSet) obj;
if (locationOwnershipType_ != other.locationOwnershipType_) return false;
if (!getSourceCase().equals(other.getSourceCase())) return false;
switch (sourceCase_) {
case 1:
if (!getBusinessProfileLocationSet()
.equals(other.getBusinessProfileLocationSet())) return false;
break;
case 2:
if (!getChainLocationSet()
.equals(other.getChainLocationSet())) return false;
break;
case 5:
if (!getMapsLocationSet()
.equals(other.getMapsLocationSet())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + LOCATION_OWNERSHIP_TYPE_FIELD_NUMBER;
hash = (53 * hash) + locationOwnershipType_;
switch (sourceCase_) {
case 1:
hash = (37 * hash) + BUSINESS_PROFILE_LOCATION_SET_FIELD_NUMBER;
hash = (53 * hash) + getBusinessProfileLocationSet().hashCode();
break;
case 2:
hash = (37 * hash) + CHAIN_LOCATION_SET_FIELD_NUMBER;
hash = (53 * hash) + getChainLocationSet().hashCode();
break;
case 5:
hash = (37 * hash) + MAPS_LOCATION_SET_FIELD_NUMBER;
hash = (53 * hash) + getMapsLocationSet().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.common.LocationSet parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.LocationSet parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.LocationSet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.LocationSet parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.LocationSet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.LocationSet parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.LocationSet parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.common.LocationSet parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.LocationSet parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.common.LocationSet parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.LocationSet parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.common.LocationSet parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v17.common.LocationSet 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;
}
/**
*
* Data related to location set. One of the Google Business Profile (previously
* known as Google My Business) data, Chain data, and map location data need to
* be specified.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.LocationSet}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.LocationSet)
com.google.ads.googleads.v17.common.LocationSetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.AssetSetTypesProto.internal_static_google_ads_googleads_v17_common_LocationSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.AssetSetTypesProto.internal_static_google_ads_googleads_v17_common_LocationSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.LocationSet.class, com.google.ads.googleads.v17.common.LocationSet.Builder.class);
}
// Construct using com.google.ads.googleads.v17.common.LocationSet.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
locationOwnershipType_ = 0;
if (businessProfileLocationSetBuilder_ != null) {
businessProfileLocationSetBuilder_.clear();
}
if (chainLocationSetBuilder_ != null) {
chainLocationSetBuilder_.clear();
}
if (mapsLocationSetBuilder_ != null) {
mapsLocationSetBuilder_.clear();
}
sourceCase_ = 0;
source_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.common.AssetSetTypesProto.internal_static_google_ads_googleads_v17_common_LocationSet_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.LocationSet getDefaultInstanceForType() {
return com.google.ads.googleads.v17.common.LocationSet.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.common.LocationSet build() {
com.google.ads.googleads.v17.common.LocationSet result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.LocationSet buildPartial() {
com.google.ads.googleads.v17.common.LocationSet result = new com.google.ads.googleads.v17.common.LocationSet(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.common.LocationSet result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.locationOwnershipType_ = locationOwnershipType_;
}
}
private void buildPartialOneofs(com.google.ads.googleads.v17.common.LocationSet result) {
result.sourceCase_ = sourceCase_;
result.source_ = this.source_;
if (sourceCase_ == 1 &&
businessProfileLocationSetBuilder_ != null) {
result.source_ = businessProfileLocationSetBuilder_.build();
}
if (sourceCase_ == 2 &&
chainLocationSetBuilder_ != null) {
result.source_ = chainLocationSetBuilder_.build();
}
if (sourceCase_ == 5 &&
mapsLocationSetBuilder_ != null) {
result.source_ = mapsLocationSetBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v17.common.LocationSet) {
return mergeFrom((com.google.ads.googleads.v17.common.LocationSet)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.common.LocationSet other) {
if (other == com.google.ads.googleads.v17.common.LocationSet.getDefaultInstance()) return this;
if (other.locationOwnershipType_ != 0) {
setLocationOwnershipTypeValue(other.getLocationOwnershipTypeValue());
}
switch (other.getSourceCase()) {
case BUSINESS_PROFILE_LOCATION_SET: {
mergeBusinessProfileLocationSet(other.getBusinessProfileLocationSet());
break;
}
case CHAIN_LOCATION_SET: {
mergeChainLocationSet(other.getChainLocationSet());
break;
}
case MAPS_LOCATION_SET: {
mergeMapsLocationSet(other.getMapsLocationSet());
break;
}
case SOURCE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getBusinessProfileLocationSetFieldBuilder().getBuilder(),
extensionRegistry);
sourceCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getChainLocationSetFieldBuilder().getBuilder(),
extensionRegistry);
sourceCase_ = 2;
break;
} // case 18
case 24: {
locationOwnershipType_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 24
case 42: {
input.readMessage(
getMapsLocationSetFieldBuilder().getBuilder(),
extensionRegistry);
sourceCase_ = 5;
break;
} // case 42
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int sourceCase_ = 0;
private java.lang.Object source_;
public SourceCase
getSourceCase() {
return SourceCase.forNumber(
sourceCase_);
}
public Builder clearSource() {
sourceCase_ = 0;
source_ = null;
onChanged();
return this;
}
private int bitField0_;
private int locationOwnershipType_ = 0;
/**
*
* Required. Immutable. Location Ownership Type (owned location or affiliate
* location).
*
*
* .google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
* @return The enum numeric value on the wire for locationOwnershipType.
*/
@java.lang.Override public int getLocationOwnershipTypeValue() {
return locationOwnershipType_;
}
/**
*
* Required. Immutable. Location Ownership Type (owned location or affiliate
* location).
*
*
* .google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
* @param value The enum numeric value on the wire for locationOwnershipType to set.
* @return This builder for chaining.
*/
public Builder setLocationOwnershipTypeValue(int value) {
locationOwnershipType_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Required. Immutable. Location Ownership Type (owned location or affiliate
* location).
*
*
* .google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
* @return The locationOwnershipType.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType getLocationOwnershipType() {
com.google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType result = com.google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType.forNumber(locationOwnershipType_);
return result == null ? com.google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType.UNRECOGNIZED : result;
}
/**
*
* Required. Immutable. Location Ownership Type (owned location or affiliate
* location).
*
*
* .google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
* @param value The locationOwnershipType to set.
* @return This builder for chaining.
*/
public Builder setLocationOwnershipType(com.google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
locationOwnershipType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Required. Immutable. Location Ownership Type (owned location or affiliate
* location).
*
*
* .google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
* @return This builder for chaining.
*/
public Builder clearLocationOwnershipType() {
bitField0_ = (bitField0_ & ~0x00000001);
locationOwnershipType_ = 0;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.BusinessProfileLocationSet, com.google.ads.googleads.v17.common.BusinessProfileLocationSet.Builder, com.google.ads.googleads.v17.common.BusinessProfileLocationSetOrBuilder> businessProfileLocationSetBuilder_;
/**
*
* Data used to configure a location set populated from Google Business
* Profile locations.
*
*
* .google.ads.googleads.v17.common.BusinessProfileLocationSet business_profile_location_set = 1;
* @return Whether the businessProfileLocationSet field is set.
*/
@java.lang.Override
public boolean hasBusinessProfileLocationSet() {
return sourceCase_ == 1;
}
/**
*
* Data used to configure a location set populated from Google Business
* Profile locations.
*
*
* .google.ads.googleads.v17.common.BusinessProfileLocationSet business_profile_location_set = 1;
* @return The businessProfileLocationSet.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.BusinessProfileLocationSet getBusinessProfileLocationSet() {
if (businessProfileLocationSetBuilder_ == null) {
if (sourceCase_ == 1) {
return (com.google.ads.googleads.v17.common.BusinessProfileLocationSet) source_;
}
return com.google.ads.googleads.v17.common.BusinessProfileLocationSet.getDefaultInstance();
} else {
if (sourceCase_ == 1) {
return businessProfileLocationSetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.BusinessProfileLocationSet.getDefaultInstance();
}
}
/**
*
* Data used to configure a location set populated from Google Business
* Profile locations.
*
*
* .google.ads.googleads.v17.common.BusinessProfileLocationSet business_profile_location_set = 1;
*/
public Builder setBusinessProfileLocationSet(com.google.ads.googleads.v17.common.BusinessProfileLocationSet value) {
if (businessProfileLocationSetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
source_ = value;
onChanged();
} else {
businessProfileLocationSetBuilder_.setMessage(value);
}
sourceCase_ = 1;
return this;
}
/**
*
* Data used to configure a location set populated from Google Business
* Profile locations.
*
*
* .google.ads.googleads.v17.common.BusinessProfileLocationSet business_profile_location_set = 1;
*/
public Builder setBusinessProfileLocationSet(
com.google.ads.googleads.v17.common.BusinessProfileLocationSet.Builder builderForValue) {
if (businessProfileLocationSetBuilder_ == null) {
source_ = builderForValue.build();
onChanged();
} else {
businessProfileLocationSetBuilder_.setMessage(builderForValue.build());
}
sourceCase_ = 1;
return this;
}
/**
*
* Data used to configure a location set populated from Google Business
* Profile locations.
*
*
* .google.ads.googleads.v17.common.BusinessProfileLocationSet business_profile_location_set = 1;
*/
public Builder mergeBusinessProfileLocationSet(com.google.ads.googleads.v17.common.BusinessProfileLocationSet value) {
if (businessProfileLocationSetBuilder_ == null) {
if (sourceCase_ == 1 &&
source_ != com.google.ads.googleads.v17.common.BusinessProfileLocationSet.getDefaultInstance()) {
source_ = com.google.ads.googleads.v17.common.BusinessProfileLocationSet.newBuilder((com.google.ads.googleads.v17.common.BusinessProfileLocationSet) source_)
.mergeFrom(value).buildPartial();
} else {
source_ = value;
}
onChanged();
} else {
if (sourceCase_ == 1) {
businessProfileLocationSetBuilder_.mergeFrom(value);
} else {
businessProfileLocationSetBuilder_.setMessage(value);
}
}
sourceCase_ = 1;
return this;
}
/**
*
* Data used to configure a location set populated from Google Business
* Profile locations.
*
*
* .google.ads.googleads.v17.common.BusinessProfileLocationSet business_profile_location_set = 1;
*/
public Builder clearBusinessProfileLocationSet() {
if (businessProfileLocationSetBuilder_ == null) {
if (sourceCase_ == 1) {
sourceCase_ = 0;
source_ = null;
onChanged();
}
} else {
if (sourceCase_ == 1) {
sourceCase_ = 0;
source_ = null;
}
businessProfileLocationSetBuilder_.clear();
}
return this;
}
/**
*
* Data used to configure a location set populated from Google Business
* Profile locations.
*
*
* .google.ads.googleads.v17.common.BusinessProfileLocationSet business_profile_location_set = 1;
*/
public com.google.ads.googleads.v17.common.BusinessProfileLocationSet.Builder getBusinessProfileLocationSetBuilder() {
return getBusinessProfileLocationSetFieldBuilder().getBuilder();
}
/**
*
* Data used to configure a location set populated from Google Business
* Profile locations.
*
*
* .google.ads.googleads.v17.common.BusinessProfileLocationSet business_profile_location_set = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.BusinessProfileLocationSetOrBuilder getBusinessProfileLocationSetOrBuilder() {
if ((sourceCase_ == 1) && (businessProfileLocationSetBuilder_ != null)) {
return businessProfileLocationSetBuilder_.getMessageOrBuilder();
} else {
if (sourceCase_ == 1) {
return (com.google.ads.googleads.v17.common.BusinessProfileLocationSet) source_;
}
return com.google.ads.googleads.v17.common.BusinessProfileLocationSet.getDefaultInstance();
}
}
/**
*
* Data used to configure a location set populated from Google Business
* Profile locations.
*
*
* .google.ads.googleads.v17.common.BusinessProfileLocationSet business_profile_location_set = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.BusinessProfileLocationSet, com.google.ads.googleads.v17.common.BusinessProfileLocationSet.Builder, com.google.ads.googleads.v17.common.BusinessProfileLocationSetOrBuilder>
getBusinessProfileLocationSetFieldBuilder() {
if (businessProfileLocationSetBuilder_ == null) {
if (!(sourceCase_ == 1)) {
source_ = com.google.ads.googleads.v17.common.BusinessProfileLocationSet.getDefaultInstance();
}
businessProfileLocationSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.BusinessProfileLocationSet, com.google.ads.googleads.v17.common.BusinessProfileLocationSet.Builder, com.google.ads.googleads.v17.common.BusinessProfileLocationSetOrBuilder>(
(com.google.ads.googleads.v17.common.BusinessProfileLocationSet) source_,
getParentForChildren(),
isClean());
source_ = null;
}
sourceCase_ = 1;
onChanged();
return businessProfileLocationSetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.ChainSet, com.google.ads.googleads.v17.common.ChainSet.Builder, com.google.ads.googleads.v17.common.ChainSetOrBuilder> chainLocationSetBuilder_;
/**
*
* Data used to configure a location on chain set populated with the
* specified chains.
*
*
* .google.ads.googleads.v17.common.ChainSet chain_location_set = 2;
* @return Whether the chainLocationSet field is set.
*/
@java.lang.Override
public boolean hasChainLocationSet() {
return sourceCase_ == 2;
}
/**
*
* Data used to configure a location on chain set populated with the
* specified chains.
*
*
* .google.ads.googleads.v17.common.ChainSet chain_location_set = 2;
* @return The chainLocationSet.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.ChainSet getChainLocationSet() {
if (chainLocationSetBuilder_ == null) {
if (sourceCase_ == 2) {
return (com.google.ads.googleads.v17.common.ChainSet) source_;
}
return com.google.ads.googleads.v17.common.ChainSet.getDefaultInstance();
} else {
if (sourceCase_ == 2) {
return chainLocationSetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.ChainSet.getDefaultInstance();
}
}
/**
*
* Data used to configure a location on chain set populated with the
* specified chains.
*
*
* .google.ads.googleads.v17.common.ChainSet chain_location_set = 2;
*/
public Builder setChainLocationSet(com.google.ads.googleads.v17.common.ChainSet value) {
if (chainLocationSetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
source_ = value;
onChanged();
} else {
chainLocationSetBuilder_.setMessage(value);
}
sourceCase_ = 2;
return this;
}
/**
*
* Data used to configure a location on chain set populated with the
* specified chains.
*
*
* .google.ads.googleads.v17.common.ChainSet chain_location_set = 2;
*/
public Builder setChainLocationSet(
com.google.ads.googleads.v17.common.ChainSet.Builder builderForValue) {
if (chainLocationSetBuilder_ == null) {
source_ = builderForValue.build();
onChanged();
} else {
chainLocationSetBuilder_.setMessage(builderForValue.build());
}
sourceCase_ = 2;
return this;
}
/**
*
* Data used to configure a location on chain set populated with the
* specified chains.
*
*
* .google.ads.googleads.v17.common.ChainSet chain_location_set = 2;
*/
public Builder mergeChainLocationSet(com.google.ads.googleads.v17.common.ChainSet value) {
if (chainLocationSetBuilder_ == null) {
if (sourceCase_ == 2 &&
source_ != com.google.ads.googleads.v17.common.ChainSet.getDefaultInstance()) {
source_ = com.google.ads.googleads.v17.common.ChainSet.newBuilder((com.google.ads.googleads.v17.common.ChainSet) source_)
.mergeFrom(value).buildPartial();
} else {
source_ = value;
}
onChanged();
} else {
if (sourceCase_ == 2) {
chainLocationSetBuilder_.mergeFrom(value);
} else {
chainLocationSetBuilder_.setMessage(value);
}
}
sourceCase_ = 2;
return this;
}
/**
*
* Data used to configure a location on chain set populated with the
* specified chains.
*
*
* .google.ads.googleads.v17.common.ChainSet chain_location_set = 2;
*/
public Builder clearChainLocationSet() {
if (chainLocationSetBuilder_ == null) {
if (sourceCase_ == 2) {
sourceCase_ = 0;
source_ = null;
onChanged();
}
} else {
if (sourceCase_ == 2) {
sourceCase_ = 0;
source_ = null;
}
chainLocationSetBuilder_.clear();
}
return this;
}
/**
*
* Data used to configure a location on chain set populated with the
* specified chains.
*
*
* .google.ads.googleads.v17.common.ChainSet chain_location_set = 2;
*/
public com.google.ads.googleads.v17.common.ChainSet.Builder getChainLocationSetBuilder() {
return getChainLocationSetFieldBuilder().getBuilder();
}
/**
*
* Data used to configure a location on chain set populated with the
* specified chains.
*
*
* .google.ads.googleads.v17.common.ChainSet chain_location_set = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.ChainSetOrBuilder getChainLocationSetOrBuilder() {
if ((sourceCase_ == 2) && (chainLocationSetBuilder_ != null)) {
return chainLocationSetBuilder_.getMessageOrBuilder();
} else {
if (sourceCase_ == 2) {
return (com.google.ads.googleads.v17.common.ChainSet) source_;
}
return com.google.ads.googleads.v17.common.ChainSet.getDefaultInstance();
}
}
/**
*
* Data used to configure a location on chain set populated with the
* specified chains.
*
*
* .google.ads.googleads.v17.common.ChainSet chain_location_set = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.ChainSet, com.google.ads.googleads.v17.common.ChainSet.Builder, com.google.ads.googleads.v17.common.ChainSetOrBuilder>
getChainLocationSetFieldBuilder() {
if (chainLocationSetBuilder_ == null) {
if (!(sourceCase_ == 2)) {
source_ = com.google.ads.googleads.v17.common.ChainSet.getDefaultInstance();
}
chainLocationSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.ChainSet, com.google.ads.googleads.v17.common.ChainSet.Builder, com.google.ads.googleads.v17.common.ChainSetOrBuilder>(
(com.google.ads.googleads.v17.common.ChainSet) source_,
getParentForChildren(),
isClean());
source_ = null;
}
sourceCase_ = 2;
onChanged();
return chainLocationSetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.MapsLocationSet, com.google.ads.googleads.v17.common.MapsLocationSet.Builder, com.google.ads.googleads.v17.common.MapsLocationSetOrBuilder> mapsLocationSetBuilder_;
/**
*
* Only set if locations are synced based on selected maps locations
*
*
* .google.ads.googleads.v17.common.MapsLocationSet maps_location_set = 5;
* @return Whether the mapsLocationSet field is set.
*/
@java.lang.Override
public boolean hasMapsLocationSet() {
return sourceCase_ == 5;
}
/**
*
* Only set if locations are synced based on selected maps locations
*
*
* .google.ads.googleads.v17.common.MapsLocationSet maps_location_set = 5;
* @return The mapsLocationSet.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MapsLocationSet getMapsLocationSet() {
if (mapsLocationSetBuilder_ == null) {
if (sourceCase_ == 5) {
return (com.google.ads.googleads.v17.common.MapsLocationSet) source_;
}
return com.google.ads.googleads.v17.common.MapsLocationSet.getDefaultInstance();
} else {
if (sourceCase_ == 5) {
return mapsLocationSetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.MapsLocationSet.getDefaultInstance();
}
}
/**
*
* Only set if locations are synced based on selected maps locations
*
*
* .google.ads.googleads.v17.common.MapsLocationSet maps_location_set = 5;
*/
public Builder setMapsLocationSet(com.google.ads.googleads.v17.common.MapsLocationSet value) {
if (mapsLocationSetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
source_ = value;
onChanged();
} else {
mapsLocationSetBuilder_.setMessage(value);
}
sourceCase_ = 5;
return this;
}
/**
*
* Only set if locations are synced based on selected maps locations
*
*
* .google.ads.googleads.v17.common.MapsLocationSet maps_location_set = 5;
*/
public Builder setMapsLocationSet(
com.google.ads.googleads.v17.common.MapsLocationSet.Builder builderForValue) {
if (mapsLocationSetBuilder_ == null) {
source_ = builderForValue.build();
onChanged();
} else {
mapsLocationSetBuilder_.setMessage(builderForValue.build());
}
sourceCase_ = 5;
return this;
}
/**
*
* Only set if locations are synced based on selected maps locations
*
*
* .google.ads.googleads.v17.common.MapsLocationSet maps_location_set = 5;
*/
public Builder mergeMapsLocationSet(com.google.ads.googleads.v17.common.MapsLocationSet value) {
if (mapsLocationSetBuilder_ == null) {
if (sourceCase_ == 5 &&
source_ != com.google.ads.googleads.v17.common.MapsLocationSet.getDefaultInstance()) {
source_ = com.google.ads.googleads.v17.common.MapsLocationSet.newBuilder((com.google.ads.googleads.v17.common.MapsLocationSet) source_)
.mergeFrom(value).buildPartial();
} else {
source_ = value;
}
onChanged();
} else {
if (sourceCase_ == 5) {
mapsLocationSetBuilder_.mergeFrom(value);
} else {
mapsLocationSetBuilder_.setMessage(value);
}
}
sourceCase_ = 5;
return this;
}
/**
*
* Only set if locations are synced based on selected maps locations
*
*
* .google.ads.googleads.v17.common.MapsLocationSet maps_location_set = 5;
*/
public Builder clearMapsLocationSet() {
if (mapsLocationSetBuilder_ == null) {
if (sourceCase_ == 5) {
sourceCase_ = 0;
source_ = null;
onChanged();
}
} else {
if (sourceCase_ == 5) {
sourceCase_ = 0;
source_ = null;
}
mapsLocationSetBuilder_.clear();
}
return this;
}
/**
*
* Only set if locations are synced based on selected maps locations
*
*
* .google.ads.googleads.v17.common.MapsLocationSet maps_location_set = 5;
*/
public com.google.ads.googleads.v17.common.MapsLocationSet.Builder getMapsLocationSetBuilder() {
return getMapsLocationSetFieldBuilder().getBuilder();
}
/**
*
* Only set if locations are synced based on selected maps locations
*
*
* .google.ads.googleads.v17.common.MapsLocationSet maps_location_set = 5;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MapsLocationSetOrBuilder getMapsLocationSetOrBuilder() {
if ((sourceCase_ == 5) && (mapsLocationSetBuilder_ != null)) {
return mapsLocationSetBuilder_.getMessageOrBuilder();
} else {
if (sourceCase_ == 5) {
return (com.google.ads.googleads.v17.common.MapsLocationSet) source_;
}
return com.google.ads.googleads.v17.common.MapsLocationSet.getDefaultInstance();
}
}
/**
*
* Only set if locations are synced based on selected maps locations
*
*
* .google.ads.googleads.v17.common.MapsLocationSet maps_location_set = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.MapsLocationSet, com.google.ads.googleads.v17.common.MapsLocationSet.Builder, com.google.ads.googleads.v17.common.MapsLocationSetOrBuilder>
getMapsLocationSetFieldBuilder() {
if (mapsLocationSetBuilder_ == null) {
if (!(sourceCase_ == 5)) {
source_ = com.google.ads.googleads.v17.common.MapsLocationSet.getDefaultInstance();
}
mapsLocationSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.MapsLocationSet, com.google.ads.googleads.v17.common.MapsLocationSet.Builder, com.google.ads.googleads.v17.common.MapsLocationSetOrBuilder>(
(com.google.ads.googleads.v17.common.MapsLocationSet) source_,
getParentForChildren(),
isClean());
source_ = null;
}
sourceCase_ = 5;
onChanged();
return mapsLocationSetBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.common.LocationSet)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.LocationSet)
private static final com.google.ads.googleads.v17.common.LocationSet DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.LocationSet();
}
public static com.google.ads.googleads.v17.common.LocationSet getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LocationSet parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.LocationSet getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy