Class AssetPolicySummary.Builder

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

public static final class AssetPolicySummary.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AssetPolicySummary.Builder> implements AssetPolicySummaryOrBuilder
 Contains policy information for an asset.
 
Protobuf type google.ads.googleads.v18.resources.AssetPolicySummary
  • 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<AssetPolicySummary.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<AssetPolicySummary.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<AssetPolicySummary.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

      public AssetPolicySummary.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<AssetPolicySummary.Builder>
      Throws:
      IOException
    • getPolicyTopicEntriesList

      public List<PolicyTopicEntry> getPolicyTopicEntriesList()
       Output only. The list of policy findings for this asset.
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEntry policy_topic_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPolicyTopicEntriesList in interface AssetPolicySummaryOrBuilder
    • getPolicyTopicEntriesCount

      public int getPolicyTopicEntriesCount()
       Output only. The list of policy findings for this asset.
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEntry policy_topic_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPolicyTopicEntriesCount in interface AssetPolicySummaryOrBuilder
    • getPolicyTopicEntries

      public PolicyTopicEntry getPolicyTopicEntries(int index)
       Output only. The list of policy findings for this asset.
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEntry policy_topic_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPolicyTopicEntries in interface AssetPolicySummaryOrBuilder
    • setPolicyTopicEntries

      public AssetPolicySummary.Builder setPolicyTopicEntries(int index, PolicyTopicEntry value)
       Output only. The list of policy findings for this asset.
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEntry policy_topic_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setPolicyTopicEntries

      public AssetPolicySummary.Builder setPolicyTopicEntries(int index, PolicyTopicEntry.Builder builderForValue)
       Output only. The list of policy findings for this asset.
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEntry policy_topic_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addPolicyTopicEntries

      public AssetPolicySummary.Builder addPolicyTopicEntries(PolicyTopicEntry value)
       Output only. The list of policy findings for this asset.
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEntry policy_topic_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addPolicyTopicEntries

      public AssetPolicySummary.Builder addPolicyTopicEntries(int index, PolicyTopicEntry value)
       Output only. The list of policy findings for this asset.
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEntry policy_topic_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addPolicyTopicEntries

      public AssetPolicySummary.Builder addPolicyTopicEntries(PolicyTopicEntry.Builder builderForValue)
       Output only. The list of policy findings for this asset.
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEntry policy_topic_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addPolicyTopicEntries

      public AssetPolicySummary.Builder addPolicyTopicEntries(int index, PolicyTopicEntry.Builder builderForValue)
       Output only. The list of policy findings for this asset.
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEntry policy_topic_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllPolicyTopicEntries

      public AssetPolicySummary.Builder addAllPolicyTopicEntries(Iterable<? extends PolicyTopicEntry> values)
       Output only. The list of policy findings for this asset.
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEntry policy_topic_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearPolicyTopicEntries

      public AssetPolicySummary.Builder clearPolicyTopicEntries()
       Output only. The list of policy findings for this asset.
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEntry policy_topic_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removePolicyTopicEntries

      public AssetPolicySummary.Builder removePolicyTopicEntries(int index)
       Output only. The list of policy findings for this asset.
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEntry policy_topic_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getPolicyTopicEntriesBuilder

      public PolicyTopicEntry.Builder getPolicyTopicEntriesBuilder(int index)
       Output only. The list of policy findings for this asset.
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEntry policy_topic_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getPolicyTopicEntriesOrBuilder

      public PolicyTopicEntryOrBuilder getPolicyTopicEntriesOrBuilder(int index)
       Output only. The list of policy findings for this asset.
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEntry policy_topic_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPolicyTopicEntriesOrBuilder in interface AssetPolicySummaryOrBuilder
    • getPolicyTopicEntriesOrBuilderList

      public List<? extends PolicyTopicEntryOrBuilder> getPolicyTopicEntriesOrBuilderList()
       Output only. The list of policy findings for this asset.
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEntry policy_topic_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPolicyTopicEntriesOrBuilderList in interface AssetPolicySummaryOrBuilder
    • addPolicyTopicEntriesBuilder

      public PolicyTopicEntry.Builder addPolicyTopicEntriesBuilder()
       Output only. The list of policy findings for this asset.
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEntry policy_topic_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addPolicyTopicEntriesBuilder

      public PolicyTopicEntry.Builder addPolicyTopicEntriesBuilder(int index)
       Output only. The list of policy findings for this asset.
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEntry policy_topic_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getPolicyTopicEntriesBuilderList

      public List<PolicyTopicEntry.Builder> getPolicyTopicEntriesBuilderList()
       Output only. The list of policy findings for this asset.
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEntry policy_topic_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getReviewStatusValue

      public int getReviewStatusValue()
       Output only. Where in the review process this asset is.
       
      .google.ads.googleads.v18.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReviewStatusValue in interface AssetPolicySummaryOrBuilder
      Returns:
      The enum numeric value on the wire for reviewStatus.
    • setReviewStatusValue

      public AssetPolicySummary.Builder setReviewStatusValue(int value)
       Output only. Where in the review process this asset is.
       
      .google.ads.googleads.v18.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for reviewStatus to set.
      Returns:
      This builder for chaining.
    • getReviewStatus

       Output only. Where in the review process this asset is.
       
      .google.ads.googleads.v18.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReviewStatus in interface AssetPolicySummaryOrBuilder
      Returns:
      The reviewStatus.
    • setReviewStatus

       Output only. Where in the review process this asset is.
       
      .google.ads.googleads.v18.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The reviewStatus to set.
      Returns:
      This builder for chaining.
    • clearReviewStatus

      public AssetPolicySummary.Builder clearReviewStatus()
       Output only. Where in the review process this asset is.
       
      .google.ads.googleads.v18.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getApprovalStatusValue

      public int getApprovalStatusValue()
       Output only. The overall approval status of this asset, calculated based on
       the status of its individual policy topic entries.
       
      .google.ads.googleads.v18.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getApprovalStatusValue in interface AssetPolicySummaryOrBuilder
      Returns:
      The enum numeric value on the wire for approvalStatus.
    • setApprovalStatusValue

      public AssetPolicySummary.Builder setApprovalStatusValue(int value)
       Output only. The overall approval status of this asset, calculated based on
       the status of its individual policy topic entries.
       
      .google.ads.googleads.v18.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for approvalStatus to set.
      Returns:
      This builder for chaining.
    • getApprovalStatus

       Output only. The overall approval status of this asset, calculated based on
       the status of its individual policy topic entries.
       
      .google.ads.googleads.v18.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getApprovalStatus in interface AssetPolicySummaryOrBuilder
      Returns:
      The approvalStatus.
    • setApprovalStatus

       Output only. The overall approval status of this asset, calculated based on
       the status of its individual policy topic entries.
       
      .google.ads.googleads.v18.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The approvalStatus to set.
      Returns:
      This builder for chaining.
    • clearApprovalStatus

      public AssetPolicySummary.Builder clearApprovalStatus()
       Output only. The overall approval status of this asset, calculated based on
       the status of its individual policy topic entries.
       
      .google.ads.googleads.v18.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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