Class GenerateRecommendationsRequest.AssetGroupInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.AssetGroupInfo.Builder>
com.google.ads.googleads.v18.services.GenerateRecommendationsRequest.AssetGroupInfo.Builder
- All Implemented Interfaces:
GenerateRecommendationsRequest.AssetGroupInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GenerateRecommendationsRequest.AssetGroupInfo
public static final class GenerateRecommendationsRequest.AssetGroupInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.AssetGroupInfo.Builder>
implements GenerateRecommendationsRequest.AssetGroupInfoOrBuilder
Current AssetGroup information of the campaign.Protobuf type
google.ads.googleads.v18.services.GenerateRecommendationsRequest.AssetGroupInfo-
Method Summary
Modifier and TypeMethodDescriptionaddAllDescription(Iterable<String> values) Optional.addAllHeadline(Iterable<String> values) Optional.addDescription(String value) Optional.addDescriptionBytes(com.google.protobuf.ByteString value) Optional.addHeadline(String value) Optional.addHeadlineBytes(com.google.protobuf.ByteString value) Optional.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Optional.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Required.Optional.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()getDescription(int index) Optional.com.google.protobuf.ByteStringgetDescriptionBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.getHeadline(int index) Optional.com.google.protobuf.ByteStringgetHeadlineBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.booleanRequired.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) setDescription(int index, String value) Optional.setFinalUrl(String value) Required.setFinalUrlBytes(com.google.protobuf.ByteString value) Required.setHeadline(int index, String value) Optional.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<GenerateRecommendationsRequest.AssetGroupInfo.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<GenerateRecommendationsRequest.AssetGroupInfo.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<GenerateRecommendationsRequest.AssetGroupInfo.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<GenerateRecommendationsRequest.AssetGroupInfo.Builder>
-
setField
public GenerateRecommendationsRequest.AssetGroupInfo.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<GenerateRecommendationsRequest.AssetGroupInfo.Builder>
-
clearField
public GenerateRecommendationsRequest.AssetGroupInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.AssetGroupInfo.Builder>
-
clearOneof
public GenerateRecommendationsRequest.AssetGroupInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.AssetGroupInfo.Builder>
-
setRepeatedField
public GenerateRecommendationsRequest.AssetGroupInfo.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<GenerateRecommendationsRequest.AssetGroupInfo.Builder>
-
addRepeatedField
public GenerateRecommendationsRequest.AssetGroupInfo.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<GenerateRecommendationsRequest.AssetGroupInfo.Builder>
-
mergeFrom
public GenerateRecommendationsRequest.AssetGroupInfo.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenerateRecommendationsRequest.AssetGroupInfo.Builder>
-
mergeFrom
public GenerateRecommendationsRequest.AssetGroupInfo.Builder mergeFrom(GenerateRecommendationsRequest.AssetGroupInfo other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.AssetGroupInfo.Builder>
-
mergeFrom
public GenerateRecommendationsRequest.AssetGroupInfo.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<GenerateRecommendationsRequest.AssetGroupInfo.Builder>- Throws:
IOException
-
hasFinalUrl
public boolean hasFinalUrl()Required. Current url of the asset group. This field is necessary for the following recommendation_types if asset_group_info is set: CAMPAIGN_BUDGET
optional string final_url = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasFinalUrlin interfaceGenerateRecommendationsRequest.AssetGroupInfoOrBuilder- Returns:
- Whether the finalUrl field is set.
-
getFinalUrl
Required. Current url of the asset group. This field is necessary for the following recommendation_types if asset_group_info is set: CAMPAIGN_BUDGET
optional string final_url = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFinalUrlin interfaceGenerateRecommendationsRequest.AssetGroupInfoOrBuilder- Returns:
- The finalUrl.
-
getFinalUrlBytes
public com.google.protobuf.ByteString getFinalUrlBytes()Required. Current url of the asset group. This field is necessary for the following recommendation_types if asset_group_info is set: CAMPAIGN_BUDGET
optional string final_url = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFinalUrlBytesin interfaceGenerateRecommendationsRequest.AssetGroupInfoOrBuilder- Returns:
- The bytes for finalUrl.
-
setFinalUrl
Required. Current url of the asset group. This field is necessary for the following recommendation_types if asset_group_info is set: CAMPAIGN_BUDGET
optional string final_url = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The finalUrl to set.- Returns:
- This builder for chaining.
-
clearFinalUrl
Required. Current url of the asset group. This field is necessary for the following recommendation_types if asset_group_info is set: CAMPAIGN_BUDGET
optional string final_url = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setFinalUrlBytes
public GenerateRecommendationsRequest.AssetGroupInfo.Builder setFinalUrlBytes(com.google.protobuf.ByteString value) Required. Current url of the asset group. This field is necessary for the following recommendation_types if asset_group_info is set: CAMPAIGN_BUDGET
optional string final_url = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for finalUrl to set.- Returns:
- This builder for chaining.
-
getHeadlineList
public com.google.protobuf.ProtocolStringList getHeadlineList()Optional. Current headlines of the asset group. This field is optional for the following recommendation_types if asset_group_info is set: CAMPAIGN_BUDGET
repeated string headline = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getHeadlineListin interfaceGenerateRecommendationsRequest.AssetGroupInfoOrBuilder- Returns:
- A list containing the headline.
-
getHeadlineCount
public int getHeadlineCount()Optional. Current headlines of the asset group. This field is optional for the following recommendation_types if asset_group_info is set: CAMPAIGN_BUDGET
repeated string headline = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getHeadlineCountin interfaceGenerateRecommendationsRequest.AssetGroupInfoOrBuilder- Returns:
- The count of headline.
-
getHeadline
Optional. Current headlines of the asset group. This field is optional for the following recommendation_types if asset_group_info is set: CAMPAIGN_BUDGET
repeated string headline = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getHeadlinein interfaceGenerateRecommendationsRequest.AssetGroupInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The headline at the given index.
-
getHeadlineBytes
public com.google.protobuf.ByteString getHeadlineBytes(int index) Optional. Current headlines of the asset group. This field is optional for the following recommendation_types if asset_group_info is set: CAMPAIGN_BUDGET
repeated string headline = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getHeadlineBytesin interfaceGenerateRecommendationsRequest.AssetGroupInfoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the headline at the given index.
-
setHeadline
Optional. Current headlines of the asset group. This field is optional for the following recommendation_types if asset_group_info is set: CAMPAIGN_BUDGET
repeated string headline = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The headline to set.- Returns:
- This builder for chaining.
-
addHeadline
Optional. Current headlines of the asset group. This field is optional for the following recommendation_types if asset_group_info is set: CAMPAIGN_BUDGET
repeated string headline = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The headline to add.- Returns:
- This builder for chaining.
-
addAllHeadline
public GenerateRecommendationsRequest.AssetGroupInfo.Builder addAllHeadline(Iterable<String> values) Optional. Current headlines of the asset group. This field is optional for the following recommendation_types if asset_group_info is set: CAMPAIGN_BUDGET
repeated string headline = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The headline to add.- Returns:
- This builder for chaining.
-
clearHeadline
Optional. Current headlines of the asset group. This field is optional for the following recommendation_types if asset_group_info is set: CAMPAIGN_BUDGET
repeated string headline = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addHeadlineBytes
public GenerateRecommendationsRequest.AssetGroupInfo.Builder addHeadlineBytes(com.google.protobuf.ByteString value) Optional. Current headlines of the asset group. This field is optional for the following recommendation_types if asset_group_info is set: CAMPAIGN_BUDGET
repeated string headline = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the headline to add.- Returns:
- This builder for chaining.
-
getDescriptionList
public com.google.protobuf.ProtocolStringList getDescriptionList()Optional. Current descriptions of the asset group. This field is optional for the following recommendation_types if asset_group_info is set: CAMPAIGN_BUDGET
repeated string description = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionListin interfaceGenerateRecommendationsRequest.AssetGroupInfoOrBuilder- Returns:
- A list containing the description.
-
getDescriptionCount
public int getDescriptionCount()Optional. Current descriptions of the asset group. This field is optional for the following recommendation_types if asset_group_info is set: CAMPAIGN_BUDGET
repeated string description = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionCountin interfaceGenerateRecommendationsRequest.AssetGroupInfoOrBuilder- Returns:
- The count of description.
-
getDescription
Optional. Current descriptions of the asset group. This field is optional for the following recommendation_types if asset_group_info is set: CAMPAIGN_BUDGET
repeated string description = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionin interfaceGenerateRecommendationsRequest.AssetGroupInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The description at the given index.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes(int index) Optional. Current descriptions of the asset group. This field is optional for the following recommendation_types if asset_group_info is set: CAMPAIGN_BUDGET
repeated string description = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionBytesin interfaceGenerateRecommendationsRequest.AssetGroupInfoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the description at the given index.
-
setDescription
public GenerateRecommendationsRequest.AssetGroupInfo.Builder setDescription(int index, String value) Optional. Current descriptions of the asset group. This field is optional for the following recommendation_types if asset_group_info is set: CAMPAIGN_BUDGET
repeated string description = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The description to set.- Returns:
- This builder for chaining.
-
addDescription
Optional. Current descriptions of the asset group. This field is optional for the following recommendation_types if asset_group_info is set: CAMPAIGN_BUDGET
repeated string description = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The description to add.- Returns:
- This builder for chaining.
-
addAllDescription
public GenerateRecommendationsRequest.AssetGroupInfo.Builder addAllDescription(Iterable<String> values) Optional. Current descriptions of the asset group. This field is optional for the following recommendation_types if asset_group_info is set: CAMPAIGN_BUDGET
repeated string description = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The description to add.- Returns:
- This builder for chaining.
-
clearDescription
Optional. Current descriptions of the asset group. This field is optional for the following recommendation_types if asset_group_info is set: CAMPAIGN_BUDGET
repeated string description = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addDescriptionBytes
public GenerateRecommendationsRequest.AssetGroupInfo.Builder addDescriptionBytes(com.google.protobuf.ByteString value) Optional. Current descriptions of the asset group. This field is optional for the following recommendation_types if asset_group_info is set: CAMPAIGN_BUDGET
repeated string description = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the description to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final GenerateRecommendationsRequest.AssetGroupInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.AssetGroupInfo.Builder>
-
mergeUnknownFields
public final GenerateRecommendationsRequest.AssetGroupInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.AssetGroupInfo.Builder>
-