com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v17/resources/android_privacy_shared_key_google_ad_group.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.resources;
/**
*
* An Android privacy shared key view for Google ad group key.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup}
*/
public final class AndroidPrivacySharedKeyGoogleAdGroup extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup)
AndroidPrivacySharedKeyGoogleAdGroupOrBuilder {
private static final long serialVersionUID = 0L;
// Use AndroidPrivacySharedKeyGoogleAdGroup.newBuilder() to construct.
private AndroidPrivacySharedKeyGoogleAdGroup(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AndroidPrivacySharedKeyGoogleAdGroup() {
resourceName_ = "";
androidPrivacyInteractionType_ = 0;
androidPrivacyInteractionDate_ = "";
androidPrivacyNetworkType_ = 0;
sharedAdGroupKey_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AndroidPrivacySharedKeyGoogleAdGroup();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroupProto.internal_static_google_ads_googleads_v17_resources_AndroidPrivacySharedKeyGoogleAdGroup_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroupProto.internal_static_google_ads_googleads_v17_resources_AndroidPrivacySharedKeyGoogleAdGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup.class, com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup.Builder.class);
}
public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object resourceName_ = "";
/**
*
* Output only. The resource name of the Android privacy shared key.
* Android privacy shared key resource names have the form:
*
* `customers/{customer_id}/androidPrivacySharedKeyGoogleAdGroups/{campaign_id}~{ad_group_id}~{android_privacy_interaction_type}~{android_privacy_network_type}~{android_privacy_interaction_date(yyyy-mm-dd)}`
*
*
* 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 Android privacy shared key.
* Android privacy shared key resource names have the form:
*
* `customers/{customer_id}/androidPrivacySharedKeyGoogleAdGroups/{campaign_id}~{ad_group_id}~{android_privacy_interaction_type}~{android_privacy_network_type}~{android_privacy_interaction_date(yyyy-mm-dd)}`
*
*
* 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 CAMPAIGN_ID_FIELD_NUMBER = 2;
private long campaignId_ = 0L;
/**
*
* Output only. The campaign ID used in the share key encoding.
*
*
* int64 campaign_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The campaignId.
*/
@java.lang.Override
public long getCampaignId() {
return campaignId_;
}
public static final int ANDROID_PRIVACY_INTERACTION_TYPE_FIELD_NUMBER = 3;
private int androidPrivacyInteractionType_ = 0;
/**
*
* Output only. The interaction type enum used in the share key encoding.
*
*
* .google.ads.googleads.v17.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType android_privacy_interaction_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for androidPrivacyInteractionType.
*/
@java.lang.Override public int getAndroidPrivacyInteractionTypeValue() {
return androidPrivacyInteractionType_;
}
/**
*
* Output only. The interaction type enum used in the share key encoding.
*
*
* .google.ads.googleads.v17.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType android_privacy_interaction_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The androidPrivacyInteractionType.
*/
@java.lang.Override public com.google.ads.googleads.v17.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType getAndroidPrivacyInteractionType() {
com.google.ads.googleads.v17.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType result = com.google.ads.googleads.v17.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType.forNumber(androidPrivacyInteractionType_);
return result == null ? com.google.ads.googleads.v17.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType.UNRECOGNIZED : result;
}
public static final int ANDROID_PRIVACY_INTERACTION_DATE_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object androidPrivacyInteractionDate_ = "";
/**
*
* Output only. The interaction date used in the shared key encoding in the
* format of "YYYY-MM-DD" in UTC timezone.
*
*
* string android_privacy_interaction_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The androidPrivacyInteractionDate.
*/
@java.lang.Override
public java.lang.String getAndroidPrivacyInteractionDate() {
java.lang.Object ref = androidPrivacyInteractionDate_;
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();
androidPrivacyInteractionDate_ = s;
return s;
}
}
/**
*
* Output only. The interaction date used in the shared key encoding in the
* format of "YYYY-MM-DD" in UTC timezone.
*
*
* string android_privacy_interaction_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for androidPrivacyInteractionDate.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAndroidPrivacyInteractionDateBytes() {
java.lang.Object ref = androidPrivacyInteractionDate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
androidPrivacyInteractionDate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ANDROID_PRIVACY_NETWORK_TYPE_FIELD_NUMBER = 5;
private int androidPrivacyNetworkType_ = 0;
/**
*
* Output only. The network type enum used in the share key encoding.
*
*
* .google.ads.googleads.v17.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType android_privacy_network_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for androidPrivacyNetworkType.
*/
@java.lang.Override public int getAndroidPrivacyNetworkTypeValue() {
return androidPrivacyNetworkType_;
}
/**
*
* Output only. The network type enum used in the share key encoding.
*
*
* .google.ads.googleads.v17.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType android_privacy_network_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The androidPrivacyNetworkType.
*/
@java.lang.Override public com.google.ads.googleads.v17.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType getAndroidPrivacyNetworkType() {
com.google.ads.googleads.v17.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType result = com.google.ads.googleads.v17.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType.forNumber(androidPrivacyNetworkType_);
return result == null ? com.google.ads.googleads.v17.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType.UNRECOGNIZED : result;
}
public static final int AD_GROUP_ID_FIELD_NUMBER = 6;
private long adGroupId_ = 0L;
/**
*
* Output only. The ad group ID used in the share key encoding.
*
*
* int64 ad_group_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The adGroupId.
*/
@java.lang.Override
public long getAdGroupId() {
return adGroupId_;
}
public static final int SHARED_AD_GROUP_KEY_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object sharedAdGroupKey_ = "";
/**
*
* Output only. 128 bit hex string of the encoded shared ad group key,
* including a '0x' prefix. This key can be used to do a bitwise OR operator
* with the aggregate conversion key to create a full aggregation key to
* retrieve the Aggregate API Report in Android Privacy Sandbox.
*
*
* string shared_ad_group_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The sharedAdGroupKey.
*/
@java.lang.Override
public java.lang.String getSharedAdGroupKey() {
java.lang.Object ref = sharedAdGroupKey_;
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();
sharedAdGroupKey_ = s;
return s;
}
}
/**
*
* Output only. 128 bit hex string of the encoded shared ad group key,
* including a '0x' prefix. This key can be used to do a bitwise OR operator
* with the aggregate conversion key to create a full aggregation key to
* retrieve the Aggregate API Report in Android Privacy Sandbox.
*
*
* string shared_ad_group_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for sharedAdGroupKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSharedAdGroupKeyBytes() {
java.lang.Object ref = sharedAdGroupKey_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sharedAdGroupKey_ = 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 (campaignId_ != 0L) {
output.writeInt64(2, campaignId_);
}
if (androidPrivacyInteractionType_ != com.google.ads.googleads.v17.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType.UNSPECIFIED.getNumber()) {
output.writeEnum(3, androidPrivacyInteractionType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(androidPrivacyInteractionDate_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, androidPrivacyInteractionDate_);
}
if (androidPrivacyNetworkType_ != com.google.ads.googleads.v17.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType.UNSPECIFIED.getNumber()) {
output.writeEnum(5, androidPrivacyNetworkType_);
}
if (adGroupId_ != 0L) {
output.writeInt64(6, adGroupId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sharedAdGroupKey_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, sharedAdGroupKey_);
}
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 (campaignId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, campaignId_);
}
if (androidPrivacyInteractionType_ != com.google.ads.googleads.v17.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, androidPrivacyInteractionType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(androidPrivacyInteractionDate_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, androidPrivacyInteractionDate_);
}
if (androidPrivacyNetworkType_ != com.google.ads.googleads.v17.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, androidPrivacyNetworkType_);
}
if (adGroupId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, adGroupId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sharedAdGroupKey_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, sharedAdGroupKey_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup other = (com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup) obj;
if (!getResourceName()
.equals(other.getResourceName())) return false;
if (getCampaignId()
!= other.getCampaignId()) return false;
if (androidPrivacyInteractionType_ != other.androidPrivacyInteractionType_) return false;
if (!getAndroidPrivacyInteractionDate()
.equals(other.getAndroidPrivacyInteractionDate())) return false;
if (androidPrivacyNetworkType_ != other.androidPrivacyNetworkType_) return false;
if (getAdGroupId()
!= other.getAdGroupId()) return false;
if (!getSharedAdGroupKey()
.equals(other.getSharedAdGroupKey())) 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();
hash = (37 * hash) + CAMPAIGN_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCampaignId());
hash = (37 * hash) + ANDROID_PRIVACY_INTERACTION_TYPE_FIELD_NUMBER;
hash = (53 * hash) + androidPrivacyInteractionType_;
hash = (37 * hash) + ANDROID_PRIVACY_INTERACTION_DATE_FIELD_NUMBER;
hash = (53 * hash) + getAndroidPrivacyInteractionDate().hashCode();
hash = (37 * hash) + ANDROID_PRIVACY_NETWORK_TYPE_FIELD_NUMBER;
hash = (53 * hash) + androidPrivacyNetworkType_;
hash = (37 * hash) + AD_GROUP_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAdGroupId());
hash = (37 * hash) + SHARED_AD_GROUP_KEY_FIELD_NUMBER;
hash = (53 * hash) + getSharedAdGroupKey().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup 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;
}
/**
*
* An Android privacy shared key view for Google ad group key.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup)
com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroupOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroupProto.internal_static_google_ads_googleads_v17_resources_AndroidPrivacySharedKeyGoogleAdGroup_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroupProto.internal_static_google_ads_googleads_v17_resources_AndroidPrivacySharedKeyGoogleAdGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup.class, com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup.Builder.class);
}
// Construct using com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
resourceName_ = "";
campaignId_ = 0L;
androidPrivacyInteractionType_ = 0;
androidPrivacyInteractionDate_ = "";
androidPrivacyNetworkType_ = 0;
adGroupId_ = 0L;
sharedAdGroupKey_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroupProto.internal_static_google_ads_googleads_v17_resources_AndroidPrivacySharedKeyGoogleAdGroup_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup getDefaultInstanceForType() {
return com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup build() {
com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup buildPartial() {
com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup result = new com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.resourceName_ = resourceName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.campaignId_ = campaignId_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.androidPrivacyInteractionType_ = androidPrivacyInteractionType_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.androidPrivacyInteractionDate_ = androidPrivacyInteractionDate_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.androidPrivacyNetworkType_ = androidPrivacyNetworkType_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.adGroupId_ = adGroupId_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.sharedAdGroupKey_ = sharedAdGroupKey_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup) {
return mergeFrom((com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup other) {
if (other == com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup.getDefaultInstance()) return this;
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getCampaignId() != 0L) {
setCampaignId(other.getCampaignId());
}
if (other.androidPrivacyInteractionType_ != 0) {
setAndroidPrivacyInteractionTypeValue(other.getAndroidPrivacyInteractionTypeValue());
}
if (!other.getAndroidPrivacyInteractionDate().isEmpty()) {
androidPrivacyInteractionDate_ = other.androidPrivacyInteractionDate_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.androidPrivacyNetworkType_ != 0) {
setAndroidPrivacyNetworkTypeValue(other.getAndroidPrivacyNetworkTypeValue());
}
if (other.getAdGroupId() != 0L) {
setAdGroupId(other.getAdGroupId());
}
if (!other.getSharedAdGroupKey().isEmpty()) {
sharedAdGroupKey_ = other.sharedAdGroupKey_;
bitField0_ |= 0x00000040;
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();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
campaignId_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
androidPrivacyInteractionType_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
androidPrivacyInteractionDate_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
androidPrivacyNetworkType_ = input.readEnum();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
adGroupId_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 48
case 58: {
sharedAdGroupKey_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 58
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object resourceName_ = "";
/**
*
* Output only. The resource name of the Android privacy shared key.
* Android privacy shared key resource names have the form:
*
* `customers/{customer_id}/androidPrivacySharedKeyGoogleAdGroups/{campaign_id}~{ad_group_id}~{android_privacy_interaction_type}~{android_privacy_network_type}~{android_privacy_interaction_date(yyyy-mm-dd)}`
*
*
* 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 Android privacy shared key.
* Android privacy shared key resource names have the form:
*
* `customers/{customer_id}/androidPrivacySharedKeyGoogleAdGroups/{campaign_id}~{ad_group_id}~{android_privacy_interaction_type}~{android_privacy_network_type}~{android_privacy_interaction_date(yyyy-mm-dd)}`
*
*
* 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 Android privacy shared key.
* Android privacy shared key resource names have the form:
*
* `customers/{customer_id}/androidPrivacySharedKeyGoogleAdGroups/{campaign_id}~{ad_group_id}~{android_privacy_interaction_type}~{android_privacy_network_type}~{android_privacy_interaction_date(yyyy-mm-dd)}`
*
*
* 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The resource name of the Android privacy shared key.
* Android privacy shared key resource names have the form:
*
* `customers/{customer_id}/androidPrivacySharedKeyGoogleAdGroups/{campaign_id}~{ad_group_id}~{android_privacy_interaction_type}~{android_privacy_network_type}~{android_privacy_interaction_date(yyyy-mm-dd)}`
*
*
* 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();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Output only. The resource name of the Android privacy shared key.
* Android privacy shared key resource names have the form:
*
* `customers/{customer_id}/androidPrivacySharedKeyGoogleAdGroups/{campaign_id}~{ad_group_id}~{android_privacy_interaction_type}~{android_privacy_network_type}~{android_privacy_interaction_date(yyyy-mm-dd)}`
*
*
* 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long campaignId_ ;
/**
*
* Output only. The campaign ID used in the share key encoding.
*
*
* int64 campaign_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The campaignId.
*/
@java.lang.Override
public long getCampaignId() {
return campaignId_;
}
/**
*
* Output only. The campaign ID used in the share key encoding.
*
*
* int64 campaign_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The campaignId to set.
* @return This builder for chaining.
*/
public Builder setCampaignId(long value) {
campaignId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The campaign ID used in the share key encoding.
*
*
* int64 campaign_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearCampaignId() {
bitField0_ = (bitField0_ & ~0x00000002);
campaignId_ = 0L;
onChanged();
return this;
}
private int androidPrivacyInteractionType_ = 0;
/**
*
* Output only. The interaction type enum used in the share key encoding.
*
*
* .google.ads.googleads.v17.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType android_privacy_interaction_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for androidPrivacyInteractionType.
*/
@java.lang.Override public int getAndroidPrivacyInteractionTypeValue() {
return androidPrivacyInteractionType_;
}
/**
*
* Output only. The interaction type enum used in the share key encoding.
*
*
* .google.ads.googleads.v17.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType android_privacy_interaction_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for androidPrivacyInteractionType to set.
* @return This builder for chaining.
*/
public Builder setAndroidPrivacyInteractionTypeValue(int value) {
androidPrivacyInteractionType_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Output only. The interaction type enum used in the share key encoding.
*
*
* .google.ads.googleads.v17.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType android_privacy_interaction_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The androidPrivacyInteractionType.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType getAndroidPrivacyInteractionType() {
com.google.ads.googleads.v17.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType result = com.google.ads.googleads.v17.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType.forNumber(androidPrivacyInteractionType_);
return result == null ? com.google.ads.googleads.v17.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType.UNRECOGNIZED : result;
}
/**
*
* Output only. The interaction type enum used in the share key encoding.
*
*
* .google.ads.googleads.v17.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType android_privacy_interaction_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The androidPrivacyInteractionType to set.
* @return This builder for chaining.
*/
public Builder setAndroidPrivacyInteractionType(com.google.ads.googleads.v17.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
androidPrivacyInteractionType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. The interaction type enum used in the share key encoding.
*
*
* .google.ads.googleads.v17.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType android_privacy_interaction_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearAndroidPrivacyInteractionType() {
bitField0_ = (bitField0_ & ~0x00000004);
androidPrivacyInteractionType_ = 0;
onChanged();
return this;
}
private java.lang.Object androidPrivacyInteractionDate_ = "";
/**
*
* Output only. The interaction date used in the shared key encoding in the
* format of "YYYY-MM-DD" in UTC timezone.
*
*
* string android_privacy_interaction_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The androidPrivacyInteractionDate.
*/
public java.lang.String getAndroidPrivacyInteractionDate() {
java.lang.Object ref = androidPrivacyInteractionDate_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
androidPrivacyInteractionDate_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The interaction date used in the shared key encoding in the
* format of "YYYY-MM-DD" in UTC timezone.
*
*
* string android_privacy_interaction_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for androidPrivacyInteractionDate.
*/
public com.google.protobuf.ByteString
getAndroidPrivacyInteractionDateBytes() {
java.lang.Object ref = androidPrivacyInteractionDate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
androidPrivacyInteractionDate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The interaction date used in the shared key encoding in the
* format of "YYYY-MM-DD" in UTC timezone.
*
*
* string android_privacy_interaction_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The androidPrivacyInteractionDate to set.
* @return This builder for chaining.
*/
public Builder setAndroidPrivacyInteractionDate(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
androidPrivacyInteractionDate_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Output only. The interaction date used in the shared key encoding in the
* format of "YYYY-MM-DD" in UTC timezone.
*
*
* string android_privacy_interaction_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearAndroidPrivacyInteractionDate() {
androidPrivacyInteractionDate_ = getDefaultInstance().getAndroidPrivacyInteractionDate();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* Output only. The interaction date used in the shared key encoding in the
* format of "YYYY-MM-DD" in UTC timezone.
*
*
* string android_privacy_interaction_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for androidPrivacyInteractionDate to set.
* @return This builder for chaining.
*/
public Builder setAndroidPrivacyInteractionDateBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
androidPrivacyInteractionDate_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private int androidPrivacyNetworkType_ = 0;
/**
*
* Output only. The network type enum used in the share key encoding.
*
*
* .google.ads.googleads.v17.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType android_privacy_network_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for androidPrivacyNetworkType.
*/
@java.lang.Override public int getAndroidPrivacyNetworkTypeValue() {
return androidPrivacyNetworkType_;
}
/**
*
* Output only. The network type enum used in the share key encoding.
*
*
* .google.ads.googleads.v17.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType android_privacy_network_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for androidPrivacyNetworkType to set.
* @return This builder for chaining.
*/
public Builder setAndroidPrivacyNetworkTypeValue(int value) {
androidPrivacyNetworkType_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Output only. The network type enum used in the share key encoding.
*
*
* .google.ads.googleads.v17.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType android_privacy_network_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The androidPrivacyNetworkType.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType getAndroidPrivacyNetworkType() {
com.google.ads.googleads.v17.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType result = com.google.ads.googleads.v17.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType.forNumber(androidPrivacyNetworkType_);
return result == null ? com.google.ads.googleads.v17.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType.UNRECOGNIZED : result;
}
/**
*
* Output only. The network type enum used in the share key encoding.
*
*
* .google.ads.googleads.v17.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType android_privacy_network_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The androidPrivacyNetworkType to set.
* @return This builder for chaining.
*/
public Builder setAndroidPrivacyNetworkType(com.google.ads.googleads.v17.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
androidPrivacyNetworkType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. The network type enum used in the share key encoding.
*
*
* .google.ads.googleads.v17.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType android_privacy_network_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearAndroidPrivacyNetworkType() {
bitField0_ = (bitField0_ & ~0x00000010);
androidPrivacyNetworkType_ = 0;
onChanged();
return this;
}
private long adGroupId_ ;
/**
*
* Output only. The ad group ID used in the share key encoding.
*
*
* int64 ad_group_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The adGroupId.
*/
@java.lang.Override
public long getAdGroupId() {
return adGroupId_;
}
/**
*
* Output only. The ad group ID used in the share key encoding.
*
*
* int64 ad_group_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The adGroupId to set.
* @return This builder for chaining.
*/
public Builder setAdGroupId(long value) {
adGroupId_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Output only. The ad group ID used in the share key encoding.
*
*
* int64 ad_group_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearAdGroupId() {
bitField0_ = (bitField0_ & ~0x00000020);
adGroupId_ = 0L;
onChanged();
return this;
}
private java.lang.Object sharedAdGroupKey_ = "";
/**
*
* Output only. 128 bit hex string of the encoded shared ad group key,
* including a '0x' prefix. This key can be used to do a bitwise OR operator
* with the aggregate conversion key to create a full aggregation key to
* retrieve the Aggregate API Report in Android Privacy Sandbox.
*
*
* string shared_ad_group_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The sharedAdGroupKey.
*/
public java.lang.String getSharedAdGroupKey() {
java.lang.Object ref = sharedAdGroupKey_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sharedAdGroupKey_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. 128 bit hex string of the encoded shared ad group key,
* including a '0x' prefix. This key can be used to do a bitwise OR operator
* with the aggregate conversion key to create a full aggregation key to
* retrieve the Aggregate API Report in Android Privacy Sandbox.
*
*
* string shared_ad_group_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for sharedAdGroupKey.
*/
public com.google.protobuf.ByteString
getSharedAdGroupKeyBytes() {
java.lang.Object ref = sharedAdGroupKey_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sharedAdGroupKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. 128 bit hex string of the encoded shared ad group key,
* including a '0x' prefix. This key can be used to do a bitwise OR operator
* with the aggregate conversion key to create a full aggregation key to
* retrieve the Aggregate API Report in Android Privacy Sandbox.
*
*
* string shared_ad_group_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The sharedAdGroupKey to set.
* @return This builder for chaining.
*/
public Builder setSharedAdGroupKey(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
sharedAdGroupKey_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Output only. 128 bit hex string of the encoded shared ad group key,
* including a '0x' prefix. This key can be used to do a bitwise OR operator
* with the aggregate conversion key to create a full aggregation key to
* retrieve the Aggregate API Report in Android Privacy Sandbox.
*
*
* string shared_ad_group_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearSharedAdGroupKey() {
sharedAdGroupKey_ = getDefaultInstance().getSharedAdGroupKey();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
* Output only. 128 bit hex string of the encoded shared ad group key,
* including a '0x' prefix. This key can be used to do a bitwise OR operator
* with the aggregate conversion key to create a full aggregation key to
* retrieve the Aggregate API Report in Android Privacy Sandbox.
*
*
* string shared_ad_group_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for sharedAdGroupKey to set.
* @return This builder for chaining.
*/
public Builder setSharedAdGroupKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
sharedAdGroupKey_ = value;
bitField0_ |= 0x00000040;
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.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup)
private static final com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup();
}
public static com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AndroidPrivacySharedKeyGoogleAdGroup parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleAdGroup getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy