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

com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign Maven / Gradle / Ivy

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

// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.resources;

/**
 * 
 * An Android privacy shared key view for Google campaign key.
 * 
* * Protobuf type {@code google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign} */ public final class AndroidPrivacySharedKeyGoogleCampaign extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign) AndroidPrivacySharedKeyGoogleCampaignOrBuilder { private static final long serialVersionUID = 0L; // Use AndroidPrivacySharedKeyGoogleCampaign.newBuilder() to construct. private AndroidPrivacySharedKeyGoogleCampaign(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AndroidPrivacySharedKeyGoogleCampaign() { resourceName_ = ""; androidPrivacyInteractionType_ = 0; androidPrivacyInteractionDate_ = ""; sharedCampaignKey_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AndroidPrivacySharedKeyGoogleCampaign(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaignProto.internal_static_google_ads_googleads_v17_resources_AndroidPrivacySharedKeyGoogleCampaign_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaignProto.internal_static_google_ads_googleads_v17_resources_AndroidPrivacySharedKeyGoogleCampaign_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign.class, com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign.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}/androidPrivacySharedKeyGoogleCampaigns/{campaign_id}~{android_privacy_interaction_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}/androidPrivacySharedKeyGoogleCampaigns/{campaign_id}~{android_privacy_interaction_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 SHARED_CAMPAIGN_KEY_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object sharedCampaignKey_ = ""; /** *
   * Output only. 128 bit hex string of the encoded shared campaign 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_campaign_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sharedCampaignKey. */ @java.lang.Override public java.lang.String getSharedCampaignKey() { java.lang.Object ref = sharedCampaignKey_; 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(); sharedCampaignKey_ = s; return s; } } /** *
   * Output only. 128 bit hex string of the encoded shared campaign 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_campaign_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for sharedCampaignKey. */ @java.lang.Override public com.google.protobuf.ByteString getSharedCampaignKeyBytes() { java.lang.Object ref = sharedCampaignKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sharedCampaignKey_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sharedCampaignKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, sharedCampaignKey_); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sharedCampaignKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sharedCampaignKey_); } 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.AndroidPrivacySharedKeyGoogleCampaign)) { return super.equals(obj); } com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign other = (com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign) 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 (!getSharedCampaignKey() .equals(other.getSharedCampaignKey())) 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) + SHARED_CAMPAIGN_KEY_FIELD_NUMBER; hash = (53 * hash) + getSharedCampaignKey().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign 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.AndroidPrivacySharedKeyGoogleCampaign parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign 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.AndroidPrivacySharedKeyGoogleCampaign parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign 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.AndroidPrivacySharedKeyGoogleCampaign 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.AndroidPrivacySharedKeyGoogleCampaign 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.AndroidPrivacySharedKeyGoogleCampaign 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.AndroidPrivacySharedKeyGoogleCampaign 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.AndroidPrivacySharedKeyGoogleCampaign 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.AndroidPrivacySharedKeyGoogleCampaign 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.AndroidPrivacySharedKeyGoogleCampaign 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 campaign key.
   * 
* * Protobuf type {@code google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign) com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaignOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaignProto.internal_static_google_ads_googleads_v17_resources_AndroidPrivacySharedKeyGoogleCampaign_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaignProto.internal_static_google_ads_googleads_v17_resources_AndroidPrivacySharedKeyGoogleCampaign_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign.class, com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign.Builder.class); } // Construct using com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign.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_ = ""; sharedCampaignKey_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaignProto.internal_static_google_ads_googleads_v17_resources_AndroidPrivacySharedKeyGoogleCampaign_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign getDefaultInstanceForType() { return com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign build() { com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign buildPartial() { com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign result = new com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign 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.sharedCampaignKey_ = sharedCampaignKey_; } } @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.AndroidPrivacySharedKeyGoogleCampaign) { return mergeFrom((com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign other) { if (other == com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign.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.getSharedCampaignKey().isEmpty()) { sharedCampaignKey_ = other.sharedCampaignKey_; bitField0_ |= 0x00000010; 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 42: { sharedCampaignKey_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; 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 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}/androidPrivacySharedKeyGoogleCampaigns/{campaign_id}~{android_privacy_interaction_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}/androidPrivacySharedKeyGoogleCampaigns/{campaign_id}~{android_privacy_interaction_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}/androidPrivacySharedKeyGoogleCampaigns/{campaign_id}~{android_privacy_interaction_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}/androidPrivacySharedKeyGoogleCampaigns/{campaign_id}~{android_privacy_interaction_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}/androidPrivacySharedKeyGoogleCampaigns/{campaign_id}~{android_privacy_interaction_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 java.lang.Object sharedCampaignKey_ = ""; /** *
     * Output only. 128 bit hex string of the encoded shared campaign 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_campaign_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sharedCampaignKey. */ public java.lang.String getSharedCampaignKey() { java.lang.Object ref = sharedCampaignKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sharedCampaignKey_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Output only. 128 bit hex string of the encoded shared campaign 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_campaign_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for sharedCampaignKey. */ public com.google.protobuf.ByteString getSharedCampaignKeyBytes() { java.lang.Object ref = sharedCampaignKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sharedCampaignKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Output only. 128 bit hex string of the encoded shared campaign 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_campaign_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The sharedCampaignKey to set. * @return This builder for chaining. */ public Builder setSharedCampaignKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sharedCampaignKey_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Output only. 128 bit hex string of the encoded shared campaign 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_campaign_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearSharedCampaignKey() { sharedCampaignKey_ = getDefaultInstance().getSharedCampaignKey(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     * Output only. 128 bit hex string of the encoded shared campaign 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_campaign_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for sharedCampaignKey to set. * @return This builder for chaining. */ public Builder setSharedCampaignKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sharedCampaignKey_ = value; bitField0_ |= 0x00000010; 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.AndroidPrivacySharedKeyGoogleCampaign) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign) private static final com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign(); } public static com.google.ads.googleads.v17.resources.AndroidPrivacySharedKeyGoogleCampaign getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AndroidPrivacySharedKeyGoogleCampaign 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.AndroidPrivacySharedKeyGoogleCampaign getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy