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 Summary
Modifier and TypeMethodDescriptionaddAffectedRegions(String value) Output only.addAffectedRegionsBytes(com.google.protobuf.ByteString value) Output only.addAllAffectedRegions(Iterable<String> values) Output only.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Output only.Output only.Output only.Output only.Output only.Output only.Output only.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()Output only.intOutput only.getAffectedRegions(int index) Output only.com.google.protobuf.ByteStringgetAffectedRegionsBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Output only.setAdsSeverityValue(int value) Output only.setAffectedRegions(int index, String value) Output only.setAttributeName(String value) Output only.setAttributeNameBytes(com.google.protobuf.ByteString value) Output only.setDescription(String value) Output only.setDescriptionBytes(com.google.protobuf.ByteString value) Output only.Output only.setDetailBytes(com.google.protobuf.ByteString value) Output only.setDocumentation(String value) Output only.setDocumentationBytes(com.google.protobuf.ByteString value) Output only.setErrorCode(String value) Output only.setErrorCodeBytes(com.google.protobuf.ByteString value) Output only.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ShoppingProduct.ProductIssue.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ShoppingProduct.ProductIssue.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ShoppingProduct.ProductIssue.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ShoppingProduct.ProductIssue.Builder>
-
setField
public ShoppingProduct.ProductIssue.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ShoppingProduct.ProductIssue.Builder>
-
clearField
public ShoppingProduct.ProductIssue.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ShoppingProduct.ProductIssue.Builder>
-
clearOneof
public ShoppingProduct.ProductIssue.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ShoppingProduct.ProductIssue.Builder>
-
addRepeatedField
public ShoppingProduct.ProductIssue.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ShoppingProduct.ProductIssue.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ShoppingProduct.ProductIssue.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ShoppingProduct.ProductIssue.Builder>- Throws:
IOException
-
getErrorCode
Output only. The error code that identifies the issue.
string error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getErrorCodein interfaceShoppingProduct.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:
getErrorCodeBytesin interfaceShoppingProduct.ProductIssueOrBuilder- Returns:
- The bytes for errorCode.
-
setErrorCode
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
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
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:
getAdsSeverityValuein interfaceShoppingProduct.ProductIssueOrBuilder- Returns:
- The enum numeric value on the wire for adsSeverity.
-
setAdsSeverityValue
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:
getAdsSeverityin interfaceShoppingProduct.ProductIssueOrBuilder- Returns:
- The adsSeverity.
-
setAdsSeverity
public ShoppingProduct.ProductIssue.Builder setAdsSeverity(ProductIssueSeverityEnum.ProductIssueSeverity 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 adsSeverity to set.- Returns:
- This builder for chaining.
-
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:
hasAttributeNamein interfaceShoppingProduct.ProductIssueOrBuilder- Returns:
- Whether the attributeName field is set.
-
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:
getAttributeNamein interfaceShoppingProduct.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:
getAttributeNameBytesin interfaceShoppingProduct.ProductIssueOrBuilder- Returns:
- The bytes for attributeName.
-
setAttributeName
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
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
Output only. The short description of the issue in English.
string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDescriptionin interfaceShoppingProduct.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:
getDescriptionBytesin interfaceShoppingProduct.ProductIssueOrBuilder- Returns:
- The bytes for description.
-
setDescription
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
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
Output only. The detailed description of the issue in English.
string detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDetailin interfaceShoppingProduct.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:
getDetailBytesin interfaceShoppingProduct.ProductIssueOrBuilder- Returns:
- The bytes for detail.
-
setDetail
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
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
Output only. The URL of the Help Center article for the issue.
string documentation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDocumentationin interfaceShoppingProduct.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:
getDocumentationBytesin interfaceShoppingProduct.ProductIssueOrBuilder- Returns:
- The bytes for documentation.
-
setDocumentation
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
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:
getAffectedRegionsListin interfaceShoppingProduct.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:
getAffectedRegionsCountin interfaceShoppingProduct.ProductIssueOrBuilder- Returns:
- The count of affectedRegions.
-
getAffectedRegions
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:
getAffectedRegionsin interfaceShoppingProduct.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:
getAffectedRegionsBytesin interfaceShoppingProduct.ProductIssueOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the affectedRegions at the given index.
-
setAffectedRegions
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
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
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ShoppingProduct.ProductIssue.Builder>
-
mergeUnknownFields
public final ShoppingProduct.ProductIssue.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ShoppingProduct.ProductIssue.Builder>
-