Class ProductCategoryConstant.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ProductCategoryConstant.Builder>
-
- com.google.ads.googleads.v15.resources.ProductCategoryConstant.Builder
-
- All Implemented Interfaces:
ProductCategoryConstantOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- ProductCategoryConstant
public static final class ProductCategoryConstant.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ProductCategoryConstant.Builder> implements ProductCategoryConstantOrBuilder
A Product Category.
Protobuf typegoogle.ads.googleads.v15.resources.ProductCategoryConstant
-
-
Method Summary
-
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, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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<ProductCategoryConstant.Builder>
-
clear
public ProductCategoryConstant.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<ProductCategoryConstant.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<ProductCategoryConstant.Builder>
-
getDefaultInstanceForType
public ProductCategoryConstant getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ProductCategoryConstant build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ProductCategoryConstant buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ProductCategoryConstant.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<ProductCategoryConstant.Builder>
-
setField
public ProductCategoryConstant.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductCategoryConstant.Builder>
-
clearField
public ProductCategoryConstant.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductCategoryConstant.Builder>
-
clearOneof
public ProductCategoryConstant.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductCategoryConstant.Builder>
-
setRepeatedField
public ProductCategoryConstant.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductCategoryConstant.Builder>
-
addRepeatedField
public ProductCategoryConstant.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductCategoryConstant.Builder>
-
mergeFrom
public ProductCategoryConstant.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProductCategoryConstant.Builder>
-
mergeFrom
public ProductCategoryConstant.Builder mergeFrom(ProductCategoryConstant other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductCategoryConstant.Builder>
-
mergeFrom
public ProductCategoryConstant.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProductCategoryConstant.Builder>- Throws:
java.io.IOException
-
getResourceName
public java.lang.String getResourceName()
Output only. The resource name of the product category. Product category resource names have the form: `productCategoryConstants/{level}~{category_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceProductCategoryConstantOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()
Output only. The resource name of the product category. Product category resource names have the form: `productCategoryConstants/{level}~{category_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceProductCategoryConstantOrBuilder- Returns:
- The bytes for resourceName.
-
setResourceName
public ProductCategoryConstant.Builder setResourceName(java.lang.String value)
Output only. The resource name of the product category. Product category resource names have the form: `productCategoryConstants/{level}~{category_id}`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 ProductCategoryConstant.Builder clearResourceName()
Output only. The resource name of the product category. Product category resource names have the form: `productCategoryConstants/{level}~{category_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setResourceNameBytes
public ProductCategoryConstant.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
Output only. The resource name of the product category. Product category resource names have the form: `productCategoryConstants/{level}~{category_id}`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.
-
getCategoryId
public long getCategoryId()
Output only. The ID of the product category. This ID is equivalent to the google_product_category ID as described in this article: https://support.google.com/merchants/answer/6324436.
int64 category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCategoryIdin interfaceProductCategoryConstantOrBuilder- Returns:
- The categoryId.
-
setCategoryId
public ProductCategoryConstant.Builder setCategoryId(long value)
Output only. The ID of the product category. This ID is equivalent to the google_product_category ID as described in this article: https://support.google.com/merchants/answer/6324436.
int64 category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The categoryId to set.- Returns:
- This builder for chaining.
-
clearCategoryId
public ProductCategoryConstant.Builder clearCategoryId()
Output only. The ID of the product category. This ID is equivalent to the google_product_category ID as described in this article: https://support.google.com/merchants/answer/6324436.
int64 category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasProductCategoryConstantParent
public boolean hasProductCategoryConstantParent()
Output only. Resource name of the parent product category.
optional string product_category_constant_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
hasProductCategoryConstantParentin interfaceProductCategoryConstantOrBuilder- Returns:
- Whether the productCategoryConstantParent field is set.
-
getProductCategoryConstantParent
public java.lang.String getProductCategoryConstantParent()
Output only. Resource name of the parent product category.
optional string product_category_constant_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getProductCategoryConstantParentin interfaceProductCategoryConstantOrBuilder- Returns:
- The productCategoryConstantParent.
-
getProductCategoryConstantParentBytes
public com.google.protobuf.ByteString getProductCategoryConstantParentBytes()
Output only. Resource name of the parent product category.
optional string product_category_constant_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getProductCategoryConstantParentBytesin interfaceProductCategoryConstantOrBuilder- Returns:
- The bytes for productCategoryConstantParent.
-
setProductCategoryConstantParent
public ProductCategoryConstant.Builder setProductCategoryConstantParent(java.lang.String value)
Output only. Resource name of the parent product category.
optional string product_category_constant_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The productCategoryConstantParent to set.- Returns:
- This builder for chaining.
-
clearProductCategoryConstantParent
public ProductCategoryConstant.Builder clearProductCategoryConstantParent()
Output only. Resource name of the parent product category.
optional string product_category_constant_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setProductCategoryConstantParentBytes
public ProductCategoryConstant.Builder setProductCategoryConstantParentBytes(com.google.protobuf.ByteString value)
Output only. Resource name of the parent product category.
optional string product_category_constant_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for productCategoryConstantParent to set.- Returns:
- This builder for chaining.
-
getLevelValue
public int getLevelValue()
Output only. Level of the product category.
.google.ads.googleads.v15.enums.ProductCategoryLevelEnum.ProductCategoryLevel level = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLevelValuein interfaceProductCategoryConstantOrBuilder- Returns:
- The enum numeric value on the wire for level.
-
setLevelValue
public ProductCategoryConstant.Builder setLevelValue(int value)
Output only. Level of the product category.
.google.ads.googleads.v15.enums.ProductCategoryLevelEnum.ProductCategoryLevel level = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for level to set.- Returns:
- This builder for chaining.
-
getLevel
public ProductCategoryLevelEnum.ProductCategoryLevel getLevel()
Output only. Level of the product category.
.google.ads.googleads.v15.enums.ProductCategoryLevelEnum.ProductCategoryLevel level = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLevelin interfaceProductCategoryConstantOrBuilder- Returns:
- The level.
-
setLevel
public ProductCategoryConstant.Builder setLevel(ProductCategoryLevelEnum.ProductCategoryLevel value)
Output only. Level of the product category.
.google.ads.googleads.v15.enums.ProductCategoryLevelEnum.ProductCategoryLevel level = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The level to set.- Returns:
- This builder for chaining.
-
clearLevel
public ProductCategoryConstant.Builder clearLevel()
Output only. Level of the product category.
.google.ads.googleads.v15.enums.ProductCategoryLevelEnum.ProductCategoryLevel level = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getStateValue
public int getStateValue()
Output only. State of the product category.
.google.ads.googleads.v15.enums.ProductCategoryStateEnum.ProductCategoryState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceProductCategoryConstantOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
public ProductCategoryConstant.Builder setStateValue(int value)
Output only. State of the product category.
.google.ads.googleads.v15.enums.ProductCategoryStateEnum.ProductCategoryState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
public ProductCategoryStateEnum.ProductCategoryState getState()
Output only. State of the product category.
.google.ads.googleads.v15.enums.ProductCategoryStateEnum.ProductCategoryState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceProductCategoryConstantOrBuilder- Returns:
- The state.
-
setState
public ProductCategoryConstant.Builder setState(ProductCategoryStateEnum.ProductCategoryState value)
Output only. State of the product category.
.google.ads.googleads.v15.enums.ProductCategoryStateEnum.ProductCategoryState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
public ProductCategoryConstant.Builder clearState()
Output only. State of the product category.
.google.ads.googleads.v15.enums.ProductCategoryStateEnum.ProductCategoryState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getLocalizationsList
public java.util.List<ProductCategoryConstant.ProductCategoryLocalization> getLocalizationsList()
Output only. List of all available localizations of the product category.
repeated .google.ads.googleads.v15.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLocalizationsListin interfaceProductCategoryConstantOrBuilder
-
getLocalizationsCount
public int getLocalizationsCount()
Output only. List of all available localizations of the product category.
repeated .google.ads.googleads.v15.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLocalizationsCountin interfaceProductCategoryConstantOrBuilder
-
getLocalizations
public ProductCategoryConstant.ProductCategoryLocalization getLocalizations(int index)
Output only. List of all available localizations of the product category.
repeated .google.ads.googleads.v15.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLocalizationsin interfaceProductCategoryConstantOrBuilder
-
setLocalizations
public ProductCategoryConstant.Builder setLocalizations(int index, ProductCategoryConstant.ProductCategoryLocalization value)
Output only. List of all available localizations of the product category.
repeated .google.ads.googleads.v15.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setLocalizations
public ProductCategoryConstant.Builder setLocalizations(int index, ProductCategoryConstant.ProductCategoryLocalization.Builder builderForValue)
Output only. List of all available localizations of the product category.
repeated .google.ads.googleads.v15.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addLocalizations
public ProductCategoryConstant.Builder addLocalizations(ProductCategoryConstant.ProductCategoryLocalization value)
Output only. List of all available localizations of the product category.
repeated .google.ads.googleads.v15.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addLocalizations
public ProductCategoryConstant.Builder addLocalizations(int index, ProductCategoryConstant.ProductCategoryLocalization value)
Output only. List of all available localizations of the product category.
repeated .google.ads.googleads.v15.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addLocalizations
public ProductCategoryConstant.Builder addLocalizations(ProductCategoryConstant.ProductCategoryLocalization.Builder builderForValue)
Output only. List of all available localizations of the product category.
repeated .google.ads.googleads.v15.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addLocalizations
public ProductCategoryConstant.Builder addLocalizations(int index, ProductCategoryConstant.ProductCategoryLocalization.Builder builderForValue)
Output only. List of all available localizations of the product category.
repeated .google.ads.googleads.v15.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addAllLocalizations
public ProductCategoryConstant.Builder addAllLocalizations(java.lang.Iterable<? extends ProductCategoryConstant.ProductCategoryLocalization> values)
Output only. List of all available localizations of the product category.
repeated .google.ads.googleads.v15.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearLocalizations
public ProductCategoryConstant.Builder clearLocalizations()
Output only. List of all available localizations of the product category.
repeated .google.ads.googleads.v15.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
removeLocalizations
public ProductCategoryConstant.Builder removeLocalizations(int index)
Output only. List of all available localizations of the product category.
repeated .google.ads.googleads.v15.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getLocalizationsBuilder
public ProductCategoryConstant.ProductCategoryLocalization.Builder getLocalizationsBuilder(int index)
Output only. List of all available localizations of the product category.
repeated .google.ads.googleads.v15.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getLocalizationsOrBuilder
public ProductCategoryConstant.ProductCategoryLocalizationOrBuilder getLocalizationsOrBuilder(int index)
Output only. List of all available localizations of the product category.
repeated .google.ads.googleads.v15.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLocalizationsOrBuilderin interfaceProductCategoryConstantOrBuilder
-
getLocalizationsOrBuilderList
public java.util.List<? extends ProductCategoryConstant.ProductCategoryLocalizationOrBuilder> getLocalizationsOrBuilderList()
Output only. List of all available localizations of the product category.
repeated .google.ads.googleads.v15.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLocalizationsOrBuilderListin interfaceProductCategoryConstantOrBuilder
-
addLocalizationsBuilder
public ProductCategoryConstant.ProductCategoryLocalization.Builder addLocalizationsBuilder()
Output only. List of all available localizations of the product category.
repeated .google.ads.googleads.v15.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addLocalizationsBuilder
public ProductCategoryConstant.ProductCategoryLocalization.Builder addLocalizationsBuilder(int index)
Output only. List of all available localizations of the product category.
repeated .google.ads.googleads.v15.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getLocalizationsBuilderList
public java.util.List<ProductCategoryConstant.ProductCategoryLocalization.Builder> getLocalizationsBuilderList()
Output only. List of all available localizations of the product category.
repeated .google.ads.googleads.v15.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setUnknownFields
public final ProductCategoryConstant.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductCategoryConstant.Builder>
-
mergeUnknownFields
public final ProductCategoryConstant.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductCategoryConstant.Builder>
-
-