Class DetailPlacementView.Builder

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

public static final class DetailPlacementView.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DetailPlacementView.Builder> implements DetailPlacementViewOrBuilder
 A view with metrics aggregated by ad group and URL or YouTube video.
 
Protobuf type google.ads.googleads.v18.resources.DetailPlacementView
  • 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<DetailPlacementView.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<DetailPlacementView.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<DetailPlacementView.Builder>
    • getDefaultInstanceForType

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

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

      public DetailPlacementView 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<DetailPlacementView.Builder>
    • setField

      public DetailPlacementView.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<DetailPlacementView.Builder>
    • clearField

      public DetailPlacementView.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<DetailPlacementView.Builder>
    • clearOneof

      public DetailPlacementView.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<DetailPlacementView.Builder>
    • setRepeatedField

      public DetailPlacementView.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<DetailPlacementView.Builder>
    • addRepeatedField

      public DetailPlacementView.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<DetailPlacementView.Builder>
    • mergeFrom

      public DetailPlacementView.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<DetailPlacementView.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<DetailPlacementView.Builder>
    • mergeFrom

      public DetailPlacementView.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<DetailPlacementView.Builder>
      Throws:
      IOException
    • getResourceName

      public String getResourceName()
       Output only. The resource name of the detail placement view.
       Detail placement view resource names have the form:
      
       `customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceName in interface DetailPlacementViewOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       Output only. The resource name of the detail placement view.
       Detail placement view resource names have the form:
      
       `customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceNameBytes in interface DetailPlacementViewOrBuilder
      Returns:
      The bytes for resourceName.
    • setResourceName

      public DetailPlacementView.Builder setResourceName(String value)
       Output only. The resource name of the detail placement view.
       Detail placement view resource names have the form:
      
       `customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement}`
       
      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

      public DetailPlacementView.Builder clearResourceName()
       Output only. The resource name of the detail placement view.
       Detail placement view resource names have the form:
      
       `customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public DetailPlacementView.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       Output only. The resource name of the detail placement view.
       Detail placement view resource names have the form:
      
       `customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement}`
       
      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.
    • hasPlacement

      public boolean hasPlacement()
       Output only. The automatic placement string at detail level, e. g. website
       URL, mobile application ID, or a YouTube video ID.
       
      optional string placement = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasPlacement in interface DetailPlacementViewOrBuilder
      Returns:
      Whether the placement field is set.
    • getPlacement

      public String getPlacement()
       Output only. The automatic placement string at detail level, e. g. website
       URL, mobile application ID, or a YouTube video ID.
       
      optional string placement = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPlacement in interface DetailPlacementViewOrBuilder
      Returns:
      The placement.
    • getPlacementBytes

      public com.google.protobuf.ByteString getPlacementBytes()
       Output only. The automatic placement string at detail level, e. g. website
       URL, mobile application ID, or a YouTube video ID.
       
      optional string placement = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPlacementBytes in interface DetailPlacementViewOrBuilder
      Returns:
      The bytes for placement.
    • setPlacement

      public DetailPlacementView.Builder setPlacement(String value)
       Output only. The automatic placement string at detail level, e. g. website
       URL, mobile application ID, or a YouTube video ID.
       
      optional string placement = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The placement to set.
      Returns:
      This builder for chaining.
    • clearPlacement

      public DetailPlacementView.Builder clearPlacement()
       Output only. The automatic placement string at detail level, e. g. website
       URL, mobile application ID, or a YouTube video ID.
       
      optional string placement = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setPlacementBytes

      public DetailPlacementView.Builder setPlacementBytes(com.google.protobuf.ByteString value)
       Output only. The automatic placement string at detail level, e. g. website
       URL, mobile application ID, or a YouTube video ID.
       
      optional string placement = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for placement to set.
      Returns:
      This builder for chaining.
    • hasDisplayName

      public boolean hasDisplayName()
       Output only. The display name is URL name for websites, YouTube video name
       for YouTube videos, and translated mobile app name for mobile apps.
       
      optional string display_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasDisplayName in interface DetailPlacementViewOrBuilder
      Returns:
      Whether the displayName field is set.
    • getDisplayName

      public String getDisplayName()
       Output only. The display name is URL name for websites, YouTube video name
       for YouTube videos, and translated mobile app name for mobile apps.
       
      optional string display_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDisplayName in interface DetailPlacementViewOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Output only. The display name is URL name for websites, YouTube video name
       for YouTube videos, and translated mobile app name for mobile apps.
       
      optional string display_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDisplayNameBytes in interface DetailPlacementViewOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public DetailPlacementView.Builder setDisplayName(String value)
       Output only. The display name is URL name for websites, YouTube video name
       for YouTube videos, and translated mobile app name for mobile apps.
       
      optional string display_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public DetailPlacementView.Builder clearDisplayName()
       Output only. The display name is URL name for websites, YouTube video name
       for YouTube videos, and translated mobile app name for mobile apps.
       
      optional string display_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public DetailPlacementView.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Output only. The display name is URL name for websites, YouTube video name
       for YouTube videos, and translated mobile app name for mobile apps.
       
      optional string display_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • hasGroupPlacementTargetUrl

      public boolean hasGroupPlacementTargetUrl()
       Output only. URL of the group placement, for example, domain, link to the
       mobile application in app store, or a YouTube channel URL.
       
      optional string group_placement_target_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasGroupPlacementTargetUrl in interface DetailPlacementViewOrBuilder
      Returns:
      Whether the groupPlacementTargetUrl field is set.
    • getGroupPlacementTargetUrl

      public String getGroupPlacementTargetUrl()
       Output only. URL of the group placement, for example, domain, link to the
       mobile application in app store, or a YouTube channel URL.
       
      optional string group_placement_target_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getGroupPlacementTargetUrl in interface DetailPlacementViewOrBuilder
      Returns:
      The groupPlacementTargetUrl.
    • getGroupPlacementTargetUrlBytes

      public com.google.protobuf.ByteString getGroupPlacementTargetUrlBytes()
       Output only. URL of the group placement, for example, domain, link to the
       mobile application in app store, or a YouTube channel URL.
       
      optional string group_placement_target_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getGroupPlacementTargetUrlBytes in interface DetailPlacementViewOrBuilder
      Returns:
      The bytes for groupPlacementTargetUrl.
    • setGroupPlacementTargetUrl

      public DetailPlacementView.Builder setGroupPlacementTargetUrl(String value)
       Output only. URL of the group placement, for example, domain, link to the
       mobile application in app store, or a YouTube channel URL.
       
      optional string group_placement_target_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The groupPlacementTargetUrl to set.
      Returns:
      This builder for chaining.
    • clearGroupPlacementTargetUrl

      public DetailPlacementView.Builder clearGroupPlacementTargetUrl()
       Output only. URL of the group placement, for example, domain, link to the
       mobile application in app store, or a YouTube channel URL.
       
      optional string group_placement_target_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setGroupPlacementTargetUrlBytes

      public DetailPlacementView.Builder setGroupPlacementTargetUrlBytes(com.google.protobuf.ByteString value)
       Output only. URL of the group placement, for example, domain, link to the
       mobile application in app store, or a YouTube channel URL.
       
      optional string group_placement_target_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for groupPlacementTargetUrl to set.
      Returns:
      This builder for chaining.
    • hasTargetUrl

      public boolean hasTargetUrl()
       Output only. URL of the placement, for example, website, link to the mobile
       application in app store, or a YouTube video URL.
       
      optional string target_url = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasTargetUrl in interface DetailPlacementViewOrBuilder
      Returns:
      Whether the targetUrl field is set.
    • getTargetUrl

      public String getTargetUrl()
       Output only. URL of the placement, for example, website, link to the mobile
       application in app store, or a YouTube video URL.
       
      optional string target_url = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTargetUrl in interface DetailPlacementViewOrBuilder
      Returns:
      The targetUrl.
    • getTargetUrlBytes

      public com.google.protobuf.ByteString getTargetUrlBytes()
       Output only. URL of the placement, for example, website, link to the mobile
       application in app store, or a YouTube video URL.
       
      optional string target_url = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTargetUrlBytes in interface DetailPlacementViewOrBuilder
      Returns:
      The bytes for targetUrl.
    • setTargetUrl

      public DetailPlacementView.Builder setTargetUrl(String value)
       Output only. URL of the placement, for example, website, link to the mobile
       application in app store, or a YouTube video URL.
       
      optional string target_url = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The targetUrl to set.
      Returns:
      This builder for chaining.
    • clearTargetUrl

      public DetailPlacementView.Builder clearTargetUrl()
       Output only. URL of the placement, for example, website, link to the mobile
       application in app store, or a YouTube video URL.
       
      optional string target_url = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setTargetUrlBytes

      public DetailPlacementView.Builder setTargetUrlBytes(com.google.protobuf.ByteString value)
       Output only. URL of the placement, for example, website, link to the mobile
       application in app store, or a YouTube video URL.
       
      optional string target_url = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for targetUrl to set.
      Returns:
      This builder for chaining.
    • getPlacementTypeValue

      public int getPlacementTypeValue()
       Output only. Type of the placement, for example, Website, YouTube Video,
       and Mobile Application.
       
      .google.ads.googleads.v18.enums.PlacementTypeEnum.PlacementType placement_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPlacementTypeValue in interface DetailPlacementViewOrBuilder
      Returns:
      The enum numeric value on the wire for placementType.
    • setPlacementTypeValue

      public DetailPlacementView.Builder setPlacementTypeValue(int value)
       Output only. Type of the placement, for example, Website, YouTube Video,
       and Mobile Application.
       
      .google.ads.googleads.v18.enums.PlacementTypeEnum.PlacementType placement_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for placementType to set.
      Returns:
      This builder for chaining.
    • getPlacementType

      public PlacementTypeEnum.PlacementType getPlacementType()
       Output only. Type of the placement, for example, Website, YouTube Video,
       and Mobile Application.
       
      .google.ads.googleads.v18.enums.PlacementTypeEnum.PlacementType placement_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPlacementType in interface DetailPlacementViewOrBuilder
      Returns:
      The placementType.
    • setPlacementType

       Output only. Type of the placement, for example, Website, YouTube Video,
       and Mobile Application.
       
      .google.ads.googleads.v18.enums.PlacementTypeEnum.PlacementType placement_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The placementType to set.
      Returns:
      This builder for chaining.
    • clearPlacementType

      public DetailPlacementView.Builder clearPlacementType()
       Output only. Type of the placement, for example, Website, YouTube Video,
       and Mobile Application.
       
      .google.ads.googleads.v18.enums.PlacementTypeEnum.PlacementType placement_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final DetailPlacementView.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<DetailPlacementView.Builder>
    • mergeUnknownFields

      public final DetailPlacementView.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<DetailPlacementView.Builder>