Class AndroidPrivacySharedKeyGoogleAdGroup.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<AndroidPrivacySharedKeyGoogleAdGroup.Builder>
com.google.ads.googleads.v18.resources.AndroidPrivacySharedKeyGoogleAdGroup.Builder
All Implemented Interfaces:
AndroidPrivacySharedKeyGoogleAdGroupOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AndroidPrivacySharedKeyGoogleAdGroup

public static final class AndroidPrivacySharedKeyGoogleAdGroup.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AndroidPrivacySharedKeyGoogleAdGroup.Builder> implements AndroidPrivacySharedKeyGoogleAdGroupOrBuilder
 An Android privacy shared key view for Google ad group key.
 
Protobuf type google.ads.googleads.v18.resources.AndroidPrivacySharedKeyGoogleAdGroup
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AndroidPrivacySharedKeyGoogleAdGroup.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<AndroidPrivacySharedKeyGoogleAdGroup.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AndroidPrivacySharedKeyGoogleAdGroup.Builder>
    • getDefaultInstanceForType

      public AndroidPrivacySharedKeyGoogleAdGroup getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AndroidPrivacySharedKeyGoogleAdGroup buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<AndroidPrivacySharedKeyGoogleAdGroup.Builder>
    • setField

      public AndroidPrivacySharedKeyGoogleAdGroup.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<AndroidPrivacySharedKeyGoogleAdGroup.Builder>
    • clearField

      public AndroidPrivacySharedKeyGoogleAdGroup.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AndroidPrivacySharedKeyGoogleAdGroup.Builder>
    • clearOneof

      public AndroidPrivacySharedKeyGoogleAdGroup.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AndroidPrivacySharedKeyGoogleAdGroup.Builder>
    • setRepeatedField

      public AndroidPrivacySharedKeyGoogleAdGroup.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AndroidPrivacySharedKeyGoogleAdGroup.Builder>
    • addRepeatedField

      public AndroidPrivacySharedKeyGoogleAdGroup.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AndroidPrivacySharedKeyGoogleAdGroup.Builder>
    • mergeFrom

      public AndroidPrivacySharedKeyGoogleAdGroup.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AndroidPrivacySharedKeyGoogleAdGroup.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AndroidPrivacySharedKeyGoogleAdGroup.Builder>
    • mergeFrom

      public AndroidPrivacySharedKeyGoogleAdGroup.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AndroidPrivacySharedKeyGoogleAdGroup.Builder>
      Throws:
      IOException
    • getResourceName

      public String getResourceName()
       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) = { ... }
      Specified by:
      getResourceName in interface AndroidPrivacySharedKeyGoogleAdGroupOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       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) = { ... }
      Specified by:
      getResourceNameBytes in interface AndroidPrivacySharedKeyGoogleAdGroupOrBuilder
      Returns:
      The bytes for resourceName.
    • setResourceName

      public AndroidPrivacySharedKeyGoogleAdGroup.Builder setResourceName(String value)
       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) = { ... }
      Parameters:
      value - The resourceName to set.
      Returns:
      This builder for chaining.
    • clearResourceName

       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) = { ... }
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public AndroidPrivacySharedKeyGoogleAdGroup.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       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) = { ... }
      Parameters:
      value - The bytes for resourceName to set.
      Returns:
      This builder for chaining.
    • getCampaignId

      public long getCampaignId()
       Output only. The campaign ID used in the share key encoding.
       
      int64 campaign_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCampaignId in interface AndroidPrivacySharedKeyGoogleAdGroupOrBuilder
      Returns:
      The campaignId.
    • setCampaignId

      public AndroidPrivacySharedKeyGoogleAdGroup.Builder setCampaignId(long value)
       Output only. The campaign ID used in the share key encoding.
       
      int64 campaign_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The campaignId to set.
      Returns:
      This builder for chaining.
    • clearCampaignId

       Output only. The campaign ID used in the share key encoding.
       
      int64 campaign_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getAndroidPrivacyInteractionTypeValue

      public int getAndroidPrivacyInteractionTypeValue()
       Output only. The interaction type enum used in the share key encoding.
       
      .google.ads.googleads.v18.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType android_privacy_interaction_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAndroidPrivacyInteractionTypeValue in interface AndroidPrivacySharedKeyGoogleAdGroupOrBuilder
      Returns:
      The enum numeric value on the wire for androidPrivacyInteractionType.
    • setAndroidPrivacyInteractionTypeValue

      public AndroidPrivacySharedKeyGoogleAdGroup.Builder setAndroidPrivacyInteractionTypeValue(int value)
       Output only. The interaction type enum used in the share key encoding.
       
      .google.ads.googleads.v18.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType android_privacy_interaction_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for androidPrivacyInteractionType to set.
      Returns:
      This builder for chaining.
    • getAndroidPrivacyInteractionType

      public AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType getAndroidPrivacyInteractionType()
       Output only. The interaction type enum used in the share key encoding.
       
      .google.ads.googleads.v18.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType android_privacy_interaction_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAndroidPrivacyInteractionType in interface AndroidPrivacySharedKeyGoogleAdGroupOrBuilder
      Returns:
      The androidPrivacyInteractionType.
    • setAndroidPrivacyInteractionType

       Output only. The interaction type enum used in the share key encoding.
       
      .google.ads.googleads.v18.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType android_privacy_interaction_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The androidPrivacyInteractionType to set.
      Returns:
      This builder for chaining.
    • clearAndroidPrivacyInteractionType

      public AndroidPrivacySharedKeyGoogleAdGroup.Builder clearAndroidPrivacyInteractionType()
       Output only. The interaction type enum used in the share key encoding.
       
      .google.ads.googleads.v18.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType android_privacy_interaction_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getAndroidPrivacyInteractionDate

      public String getAndroidPrivacyInteractionDate()
       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];
      Specified by:
      getAndroidPrivacyInteractionDate in interface AndroidPrivacySharedKeyGoogleAdGroupOrBuilder
      Returns:
      The androidPrivacyInteractionDate.
    • getAndroidPrivacyInteractionDateBytes

      public com.google.protobuf.ByteString getAndroidPrivacyInteractionDateBytes()
       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];
      Specified by:
      getAndroidPrivacyInteractionDateBytes in interface AndroidPrivacySharedKeyGoogleAdGroupOrBuilder
      Returns:
      The bytes for androidPrivacyInteractionDate.
    • setAndroidPrivacyInteractionDate

      public AndroidPrivacySharedKeyGoogleAdGroup.Builder setAndroidPrivacyInteractionDate(String value)
       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];
      Parameters:
      value - The androidPrivacyInteractionDate to set.
      Returns:
      This builder for chaining.
    • clearAndroidPrivacyInteractionDate

      public AndroidPrivacySharedKeyGoogleAdGroup.Builder clearAndroidPrivacyInteractionDate()
       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];
      Returns:
      This builder for chaining.
    • setAndroidPrivacyInteractionDateBytes

      public AndroidPrivacySharedKeyGoogleAdGroup.Builder setAndroidPrivacyInteractionDateBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for androidPrivacyInteractionDate to set.
      Returns:
      This builder for chaining.
    • getAndroidPrivacyNetworkTypeValue

      public int getAndroidPrivacyNetworkTypeValue()
       Output only. The network type enum used in the share key encoding.
       
      .google.ads.googleads.v18.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType android_privacy_network_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAndroidPrivacyNetworkTypeValue in interface AndroidPrivacySharedKeyGoogleAdGroupOrBuilder
      Returns:
      The enum numeric value on the wire for androidPrivacyNetworkType.
    • setAndroidPrivacyNetworkTypeValue

      public AndroidPrivacySharedKeyGoogleAdGroup.Builder setAndroidPrivacyNetworkTypeValue(int value)
       Output only. The network type enum used in the share key encoding.
       
      .google.ads.googleads.v18.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType android_privacy_network_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for androidPrivacyNetworkType to set.
      Returns:
      This builder for chaining.
    • getAndroidPrivacyNetworkType

      public AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType getAndroidPrivacyNetworkType()
       Output only. The network type enum used in the share key encoding.
       
      .google.ads.googleads.v18.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType android_privacy_network_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAndroidPrivacyNetworkType in interface AndroidPrivacySharedKeyGoogleAdGroupOrBuilder
      Returns:
      The androidPrivacyNetworkType.
    • setAndroidPrivacyNetworkType

       Output only. The network type enum used in the share key encoding.
       
      .google.ads.googleads.v18.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType android_privacy_network_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The androidPrivacyNetworkType to set.
      Returns:
      This builder for chaining.
    • clearAndroidPrivacyNetworkType

      public AndroidPrivacySharedKeyGoogleAdGroup.Builder clearAndroidPrivacyNetworkType()
       Output only. The network type enum used in the share key encoding.
       
      .google.ads.googleads.v18.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType android_privacy_network_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getAdGroupId

      public long getAdGroupId()
       Output only. The ad group ID used in the share key encoding.
       
      int64 ad_group_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdGroupId in interface AndroidPrivacySharedKeyGoogleAdGroupOrBuilder
      Returns:
      The adGroupId.
    • setAdGroupId

      public AndroidPrivacySharedKeyGoogleAdGroup.Builder setAdGroupId(long value)
       Output only. The ad group ID used in the share key encoding.
       
      int64 ad_group_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The adGroupId to set.
      Returns:
      This builder for chaining.
    • clearAdGroupId

       Output only. The ad group ID used in the share key encoding.
       
      int64 ad_group_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getSharedAdGroupKey

      public String getSharedAdGroupKey()
       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];
      Specified by:
      getSharedAdGroupKey in interface AndroidPrivacySharedKeyGoogleAdGroupOrBuilder
      Returns:
      The sharedAdGroupKey.
    • getSharedAdGroupKeyBytes

      public com.google.protobuf.ByteString getSharedAdGroupKeyBytes()
       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];
      Specified by:
      getSharedAdGroupKeyBytes in interface AndroidPrivacySharedKeyGoogleAdGroupOrBuilder
      Returns:
      The bytes for sharedAdGroupKey.
    • setSharedAdGroupKey

      public AndroidPrivacySharedKeyGoogleAdGroup.Builder setSharedAdGroupKey(String value)
       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];
      Parameters:
      value - The sharedAdGroupKey to set.
      Returns:
      This builder for chaining.
    • clearSharedAdGroupKey

      public AndroidPrivacySharedKeyGoogleAdGroup.Builder clearSharedAdGroupKey()
       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];
      Returns:
      This builder for chaining.
    • setSharedAdGroupKeyBytes

      public AndroidPrivacySharedKeyGoogleAdGroup.Builder setSharedAdGroupKeyBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for sharedAdGroupKey to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final AndroidPrivacySharedKeyGoogleAdGroup.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AndroidPrivacySharedKeyGoogleAdGroup.Builder>
    • mergeUnknownFields

      public final AndroidPrivacySharedKeyGoogleAdGroup.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AndroidPrivacySharedKeyGoogleAdGroup.Builder>