Class SuggestBrandsRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SuggestBrandsRequest.Builder>
com.google.ads.googleads.v22.services.SuggestBrandsRequest.Builder
- All Implemented Interfaces:
SuggestBrandsRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SuggestBrandsRequest
public static final class SuggestBrandsRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SuggestBrandsRequest.Builder>
implements SuggestBrandsRequestOrBuilder
Request message for [BrandSuggestionService.SuggestBrands][google.ads.googleads.v22.services.BrandSuggestionService.SuggestBrands].Protobuf type
google.ads.googleads.v22.services.SuggestBrandsRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllSelectedBrands(Iterable<String> values) Optional.addSelectedBrands(String value) Optional.addSelectedBrandsBytes(com.google.protobuf.ByteString value) Optional.build()clear()Required.Required.Optional.Required.com.google.protobuf.ByteStringRequired.Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetSelectedBrands(int index) Optional.com.google.protobuf.ByteStringgetSelectedBrandsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SuggestBrandsRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setBrandPrefix(String value) Required.setBrandPrefixBytes(com.google.protobuf.ByteString value) Required.setCustomerId(String value) Required.setCustomerIdBytes(com.google.protobuf.ByteString value) Required.setSelectedBrands(int index, String value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SuggestBrandsRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SuggestBrandsRequest.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.GeneratedMessage.Builder<SuggestBrandsRequest.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SuggestBrandsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SuggestBrandsRequest.Builder>
-
mergeFrom
public SuggestBrandsRequest.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<SuggestBrandsRequest.Builder>- Throws:
IOException
-
getCustomerId
Required. The ID of the customer onto which to apply the brand suggestion operation.
string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getCustomerIdin interfaceSuggestBrandsRequestOrBuilder- Returns:
- The customerId.
-
getCustomerIdBytes
public com.google.protobuf.ByteString getCustomerIdBytes()Required. The ID of the customer onto which to apply the brand suggestion operation.
string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getCustomerIdBytesin interfaceSuggestBrandsRequestOrBuilder- Returns:
- The bytes for customerId.
-
setCustomerId
Required. The ID of the customer onto which to apply the brand suggestion operation.
string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The customerId to set.- Returns:
- This builder for chaining.
-
clearCustomerId
Required. The ID of the customer onto which to apply the brand suggestion operation.
string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setCustomerIdBytes
Required. The ID of the customer onto which to apply the brand suggestion operation.
string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for customerId to set.- Returns:
- This builder for chaining.
-
hasBrandPrefix
public boolean hasBrandPrefix()Required. The prefix of a brand name.
optional string brand_prefix = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasBrandPrefixin interfaceSuggestBrandsRequestOrBuilder- Returns:
- Whether the brandPrefix field is set.
-
getBrandPrefix
Required. The prefix of a brand name.
optional string brand_prefix = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getBrandPrefixin interfaceSuggestBrandsRequestOrBuilder- Returns:
- The brandPrefix.
-
getBrandPrefixBytes
public com.google.protobuf.ByteString getBrandPrefixBytes()Required. The prefix of a brand name.
optional string brand_prefix = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getBrandPrefixBytesin interfaceSuggestBrandsRequestOrBuilder- Returns:
- The bytes for brandPrefix.
-
setBrandPrefix
Required. The prefix of a brand name.
optional string brand_prefix = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The brandPrefix to set.- Returns:
- This builder for chaining.
-
clearBrandPrefix
Required. The prefix of a brand name.
optional string brand_prefix = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setBrandPrefixBytes
Required. The prefix of a brand name.
optional string brand_prefix = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for brandPrefix to set.- Returns:
- This builder for chaining.
-
getSelectedBrandsList
public com.google.protobuf.ProtocolStringList getSelectedBrandsList()Optional. Ids of the brands already selected by advertisers. They will be excluded in response. These are expected to be brand ids not brand names.
repeated string selected_brands = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSelectedBrandsListin interfaceSuggestBrandsRequestOrBuilder- Returns:
- A list containing the selectedBrands.
-
getSelectedBrandsCount
public int getSelectedBrandsCount()Optional. Ids of the brands already selected by advertisers. They will be excluded in response. These are expected to be brand ids not brand names.
repeated string selected_brands = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSelectedBrandsCountin interfaceSuggestBrandsRequestOrBuilder- Returns:
- The count of selectedBrands.
-
getSelectedBrands
Optional. Ids of the brands already selected by advertisers. They will be excluded in response. These are expected to be brand ids not brand names.
repeated string selected_brands = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSelectedBrandsin interfaceSuggestBrandsRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The selectedBrands at the given index.
-
getSelectedBrandsBytes
public com.google.protobuf.ByteString getSelectedBrandsBytes(int index) Optional. Ids of the brands already selected by advertisers. They will be excluded in response. These are expected to be brand ids not brand names.
repeated string selected_brands = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSelectedBrandsBytesin interfaceSuggestBrandsRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the selectedBrands at the given index.
-
setSelectedBrands
Optional. Ids of the brands already selected by advertisers. They will be excluded in response. These are expected to be brand ids not brand names.
repeated string selected_brands = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The selectedBrands to set.- Returns:
- This builder for chaining.
-
addSelectedBrands
Optional. Ids of the brands already selected by advertisers. They will be excluded in response. These are expected to be brand ids not brand names.
repeated string selected_brands = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The selectedBrands to add.- Returns:
- This builder for chaining.
-
addAllSelectedBrands
Optional. Ids of the brands already selected by advertisers. They will be excluded in response. These are expected to be brand ids not brand names.
repeated string selected_brands = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The selectedBrands to add.- Returns:
- This builder for chaining.
-
clearSelectedBrands
Optional. Ids of the brands already selected by advertisers. They will be excluded in response. These are expected to be brand ids not brand names.
repeated string selected_brands = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addSelectedBrandsBytes
Optional. Ids of the brands already selected by advertisers. They will be excluded in response. These are expected to be brand ids not brand names.
repeated string selected_brands = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the selectedBrands to add.- Returns:
- This builder for chaining.
-