Class ShoppingProduct.ProductIssue.Builder

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

public static final class ShoppingProduct.ProductIssue.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ShoppingProduct.ProductIssue.Builder> implements ShoppingProduct.ProductIssueOrBuilder
 An issue affecting whether a product can show in ads.
 
Protobuf type google.ads.googleads.v18.resources.ShoppingProduct.ProductIssue
  • 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<ShoppingProduct.ProductIssue.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<ShoppingProduct.ProductIssue.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<ShoppingProduct.ProductIssue.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

      public ShoppingProduct.ProductIssue.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<ShoppingProduct.ProductIssue.Builder>
      Throws:
      IOException
    • getErrorCode

      public String getErrorCode()
       Output only. The error code that identifies the issue.
       
      string error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getErrorCode in interface ShoppingProduct.ProductIssueOrBuilder
      Returns:
      The errorCode.
    • getErrorCodeBytes

      public com.google.protobuf.ByteString getErrorCodeBytes()
       Output only. The error code that identifies the issue.
       
      string error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getErrorCodeBytes in interface ShoppingProduct.ProductIssueOrBuilder
      Returns:
      The bytes for errorCode.
    • setErrorCode

      public ShoppingProduct.ProductIssue.Builder setErrorCode(String value)
       Output only. The error code that identifies the issue.
       
      string error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The errorCode to set.
      Returns:
      This builder for chaining.
    • clearErrorCode

      public ShoppingProduct.ProductIssue.Builder clearErrorCode()
       Output only. The error code that identifies the issue.
       
      string error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setErrorCodeBytes

      public ShoppingProduct.ProductIssue.Builder setErrorCodeBytes(com.google.protobuf.ByteString value)
       Output only. The error code that identifies the issue.
       
      string error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for errorCode to set.
      Returns:
      This builder for chaining.
    • getAdsSeverityValue

      public int getAdsSeverityValue()
       Output only. The severity of the issue in Google Ads.
       
      .google.ads.googleads.v18.enums.ProductIssueSeverityEnum.ProductIssueSeverity ads_severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdsSeverityValue in interface ShoppingProduct.ProductIssueOrBuilder
      Returns:
      The enum numeric value on the wire for adsSeverity.
    • setAdsSeverityValue

      public ShoppingProduct.ProductIssue.Builder setAdsSeverityValue(int value)
       Output only. The severity of the issue in Google Ads.
       
      .google.ads.googleads.v18.enums.ProductIssueSeverityEnum.ProductIssueSeverity ads_severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for adsSeverity to set.
      Returns:
      This builder for chaining.
    • getAdsSeverity

       Output only. The severity of the issue in Google Ads.
       
      .google.ads.googleads.v18.enums.ProductIssueSeverityEnum.ProductIssueSeverity ads_severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdsSeverity in interface ShoppingProduct.ProductIssueOrBuilder
      Returns:
      The adsSeverity.
    • setAdsSeverity

       Output only. The severity of the issue in Google Ads.
       
      .google.ads.googleads.v18.enums.ProductIssueSeverityEnum.ProductIssueSeverity ads_severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The adsSeverity to set.
      Returns:
      This builder for chaining.
    • clearAdsSeverity

      public ShoppingProduct.ProductIssue.Builder clearAdsSeverity()
       Output only. The severity of the issue in Google Ads.
       
      .google.ads.googleads.v18.enums.ProductIssueSeverityEnum.ProductIssueSeverity ads_severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasAttributeName

      public boolean hasAttributeName()
       Output only. The name of the product's attribute, if any, that triggered
       the issue.
       
      optional string attribute_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasAttributeName in interface ShoppingProduct.ProductIssueOrBuilder
      Returns:
      Whether the attributeName field is set.
    • getAttributeName

      public String getAttributeName()
       Output only. The name of the product's attribute, if any, that triggered
       the issue.
       
      optional string attribute_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAttributeName in interface ShoppingProduct.ProductIssueOrBuilder
      Returns:
      The attributeName.
    • getAttributeNameBytes

      public com.google.protobuf.ByteString getAttributeNameBytes()
       Output only. The name of the product's attribute, if any, that triggered
       the issue.
       
      optional string attribute_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAttributeNameBytes in interface ShoppingProduct.ProductIssueOrBuilder
      Returns:
      The bytes for attributeName.
    • setAttributeName

      public ShoppingProduct.ProductIssue.Builder setAttributeName(String value)
       Output only. The name of the product's attribute, if any, that triggered
       the issue.
       
      optional string attribute_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The attributeName to set.
      Returns:
      This builder for chaining.
    • clearAttributeName

      public ShoppingProduct.ProductIssue.Builder clearAttributeName()
       Output only. The name of the product's attribute, if any, that triggered
       the issue.
       
      optional string attribute_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setAttributeNameBytes

      public ShoppingProduct.ProductIssue.Builder setAttributeNameBytes(com.google.protobuf.ByteString value)
       Output only. The name of the product's attribute, if any, that triggered
       the issue.
       
      optional string attribute_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for attributeName to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Output only. The short description of the issue in English.
       
      string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDescription in interface ShoppingProduct.ProductIssueOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Output only. The short description of the issue in English.
       
      string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDescriptionBytes in interface ShoppingProduct.ProductIssueOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public ShoppingProduct.ProductIssue.Builder setDescription(String value)
       Output only. The short description of the issue in English.
       
      string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public ShoppingProduct.ProductIssue.Builder clearDescription()
       Output only. The short description of the issue in English.
       
      string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public ShoppingProduct.ProductIssue.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Output only. The short description of the issue in English.
       
      string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getDetail

      public String getDetail()
       Output only. The detailed description of the issue in English.
       
      string detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDetail in interface ShoppingProduct.ProductIssueOrBuilder
      Returns:
      The detail.
    • getDetailBytes

      public com.google.protobuf.ByteString getDetailBytes()
       Output only. The detailed description of the issue in English.
       
      string detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDetailBytes in interface ShoppingProduct.ProductIssueOrBuilder
      Returns:
      The bytes for detail.
    • setDetail

      public ShoppingProduct.ProductIssue.Builder setDetail(String value)
       Output only. The detailed description of the issue in English.
       
      string detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The detail to set.
      Returns:
      This builder for chaining.
    • clearDetail

       Output only. The detailed description of the issue in English.
       
      string detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDetailBytes

      public ShoppingProduct.ProductIssue.Builder setDetailBytes(com.google.protobuf.ByteString value)
       Output only. The detailed description of the issue in English.
       
      string detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for detail to set.
      Returns:
      This builder for chaining.
    • getDocumentation

      public String getDocumentation()
       Output only. The URL of the Help Center article for the issue.
       
      string documentation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDocumentation in interface ShoppingProduct.ProductIssueOrBuilder
      Returns:
      The documentation.
    • getDocumentationBytes

      public com.google.protobuf.ByteString getDocumentationBytes()
       Output only. The URL of the Help Center article for the issue.
       
      string documentation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDocumentationBytes in interface ShoppingProduct.ProductIssueOrBuilder
      Returns:
      The bytes for documentation.
    • setDocumentation

      public ShoppingProduct.ProductIssue.Builder setDocumentation(String value)
       Output only. The URL of the Help Center article for the issue.
       
      string documentation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The documentation to set.
      Returns:
      This builder for chaining.
    • clearDocumentation

      public ShoppingProduct.ProductIssue.Builder clearDocumentation()
       Output only. The URL of the Help Center article for the issue.
       
      string documentation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDocumentationBytes

      public ShoppingProduct.ProductIssue.Builder setDocumentationBytes(com.google.protobuf.ByteString value)
       Output only. The URL of the Help Center article for the issue.
       
      string documentation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for documentation to set.
      Returns:
      This builder for chaining.
    • getAffectedRegionsList

      public com.google.protobuf.ProtocolStringList getAffectedRegionsList()
       Output only. List of upper-case two-letter ISO 3166-1 codes of the
       regions affected by the issue. If empty, all regions are affected.
       
      repeated string affected_regions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAffectedRegionsList in interface ShoppingProduct.ProductIssueOrBuilder
      Returns:
      A list containing the affectedRegions.
    • getAffectedRegionsCount

      public int getAffectedRegionsCount()
       Output only. List of upper-case two-letter ISO 3166-1 codes of the
       regions affected by the issue. If empty, all regions are affected.
       
      repeated string affected_regions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAffectedRegionsCount in interface ShoppingProduct.ProductIssueOrBuilder
      Returns:
      The count of affectedRegions.
    • getAffectedRegions

      public String getAffectedRegions(int index)
       Output only. List of upper-case two-letter ISO 3166-1 codes of the
       regions affected by the issue. If empty, all regions are affected.
       
      repeated string affected_regions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAffectedRegions in interface ShoppingProduct.ProductIssueOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The affectedRegions at the given index.
    • getAffectedRegionsBytes

      public com.google.protobuf.ByteString getAffectedRegionsBytes(int index)
       Output only. List of upper-case two-letter ISO 3166-1 codes of the
       regions affected by the issue. If empty, all regions are affected.
       
      repeated string affected_regions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAffectedRegionsBytes in interface ShoppingProduct.ProductIssueOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the affectedRegions at the given index.
    • setAffectedRegions

      public ShoppingProduct.ProductIssue.Builder setAffectedRegions(int index, String value)
       Output only. List of upper-case two-letter ISO 3166-1 codes of the
       regions affected by the issue. If empty, all regions are affected.
       
      repeated string affected_regions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The affectedRegions to set.
      Returns:
      This builder for chaining.
    • addAffectedRegions

      public ShoppingProduct.ProductIssue.Builder addAffectedRegions(String value)
       Output only. List of upper-case two-letter ISO 3166-1 codes of the
       regions affected by the issue. If empty, all regions are affected.
       
      repeated string affected_regions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The affectedRegions to add.
      Returns:
      This builder for chaining.
    • addAllAffectedRegions

      public ShoppingProduct.ProductIssue.Builder addAllAffectedRegions(Iterable<String> values)
       Output only. List of upper-case two-letter ISO 3166-1 codes of the
       regions affected by the issue. If empty, all regions are affected.
       
      repeated string affected_regions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The affectedRegions to add.
      Returns:
      This builder for chaining.
    • clearAffectedRegions

      public ShoppingProduct.ProductIssue.Builder clearAffectedRegions()
       Output only. List of upper-case two-letter ISO 3166-1 codes of the
       regions affected by the issue. If empty, all regions are affected.
       
      repeated string affected_regions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • addAffectedRegionsBytes

      public ShoppingProduct.ProductIssue.Builder addAffectedRegionsBytes(com.google.protobuf.ByteString value)
       Output only. List of upper-case two-letter ISO 3166-1 codes of the
       regions affected by the issue. If empty, all regions are affected.
       
      repeated string affected_regions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes of the affectedRegions to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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