Class Recommendation.TextAdRecommendation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Recommendation.TextAdRecommendation.Builder>
-
- com.google.ads.googleads.v15.resources.Recommendation.TextAdRecommendation.Builder
-
- All Implemented Interfaces:
Recommendation.TextAdRecommendationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- Recommendation.TextAdRecommendation
public static final class Recommendation.TextAdRecommendation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Recommendation.TextAdRecommendation.Builder> implements Recommendation.TextAdRecommendationOrBuilder
The text ad recommendation.
Protobuf typegoogle.ads.googleads.v15.resources.Recommendation.TextAdRecommendation
-
-
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<Recommendation.TextAdRecommendation.Builder>
-
clear
public Recommendation.TextAdRecommendation.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<Recommendation.TextAdRecommendation.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<Recommendation.TextAdRecommendation.Builder>
-
getDefaultInstanceForType
public Recommendation.TextAdRecommendation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Recommendation.TextAdRecommendation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Recommendation.TextAdRecommendation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Recommendation.TextAdRecommendation.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<Recommendation.TextAdRecommendation.Builder>
-
setField
public Recommendation.TextAdRecommendation.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<Recommendation.TextAdRecommendation.Builder>
-
clearField
public Recommendation.TextAdRecommendation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Recommendation.TextAdRecommendation.Builder>
-
clearOneof
public Recommendation.TextAdRecommendation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Recommendation.TextAdRecommendation.Builder>
-
setRepeatedField
public Recommendation.TextAdRecommendation.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<Recommendation.TextAdRecommendation.Builder>
-
addRepeatedField
public Recommendation.TextAdRecommendation.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<Recommendation.TextAdRecommendation.Builder>
-
mergeFrom
public Recommendation.TextAdRecommendation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Recommendation.TextAdRecommendation.Builder>
-
mergeFrom
public Recommendation.TextAdRecommendation.Builder mergeFrom(Recommendation.TextAdRecommendation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Recommendation.TextAdRecommendation.Builder>
-
mergeFrom
public Recommendation.TextAdRecommendation.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<Recommendation.TextAdRecommendation.Builder>- Throws:
java.io.IOException
-
hasAd
public boolean hasAd()
Output only. Recommended ad.
.google.ads.googleads.v15.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasAdin interfaceRecommendation.TextAdRecommendationOrBuilder- Returns:
- Whether the ad field is set.
-
getAd
public Ad getAd()
Output only. Recommended ad.
.google.ads.googleads.v15.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAdin interfaceRecommendation.TextAdRecommendationOrBuilder- Returns:
- The ad.
-
setAd
public Recommendation.TextAdRecommendation.Builder setAd(Ad value)
Output only. Recommended ad.
.google.ads.googleads.v15.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setAd
public Recommendation.TextAdRecommendation.Builder setAd(Ad.Builder builderForValue)
Output only. Recommended ad.
.google.ads.googleads.v15.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeAd
public Recommendation.TextAdRecommendation.Builder mergeAd(Ad value)
Output only. Recommended ad.
.google.ads.googleads.v15.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearAd
public Recommendation.TextAdRecommendation.Builder clearAd()
Output only. Recommended ad.
.google.ads.googleads.v15.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getAdBuilder
public Ad.Builder getAdBuilder()
Output only. Recommended ad.
.google.ads.googleads.v15.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getAdOrBuilder
public AdOrBuilder getAdOrBuilder()
Output only. Recommended ad.
.google.ads.googleads.v15.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAdOrBuilderin interfaceRecommendation.TextAdRecommendationOrBuilder
-
hasCreationDate
public boolean hasCreationDate()
Output only. Creation date of the recommended ad. YYYY-MM-DD format, for example, 2018-04-17.
optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreationDatein interfaceRecommendation.TextAdRecommendationOrBuilder- Returns:
- Whether the creationDate field is set.
-
getCreationDate
public java.lang.String getCreationDate()
Output only. Creation date of the recommended ad. YYYY-MM-DD format, for example, 2018-04-17.
optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreationDatein interfaceRecommendation.TextAdRecommendationOrBuilder- Returns:
- The creationDate.
-
getCreationDateBytes
public com.google.protobuf.ByteString getCreationDateBytes()
Output only. Creation date of the recommended ad. YYYY-MM-DD format, for example, 2018-04-17.
optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreationDateBytesin interfaceRecommendation.TextAdRecommendationOrBuilder- Returns:
- The bytes for creationDate.
-
setCreationDate
public Recommendation.TextAdRecommendation.Builder setCreationDate(java.lang.String value)
Output only. Creation date of the recommended ad. YYYY-MM-DD format, for example, 2018-04-17.
optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The creationDate to set.- Returns:
- This builder for chaining.
-
clearCreationDate
public Recommendation.TextAdRecommendation.Builder clearCreationDate()
Output only. Creation date of the recommended ad. YYYY-MM-DD format, for example, 2018-04-17.
optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setCreationDateBytes
public Recommendation.TextAdRecommendation.Builder setCreationDateBytes(com.google.protobuf.ByteString value)
Output only. Creation date of the recommended ad. YYYY-MM-DD format, for example, 2018-04-17.
optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for creationDate to set.- Returns:
- This builder for chaining.
-
hasAutoApplyDate
public boolean hasAutoApplyDate()
Output only. Date, if present, is the earliest when the recommendation will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasAutoApplyDatein interfaceRecommendation.TextAdRecommendationOrBuilder- Returns:
- Whether the autoApplyDate field is set.
-
getAutoApplyDate
public java.lang.String getAutoApplyDate()
Output only. Date, if present, is the earliest when the recommendation will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAutoApplyDatein interfaceRecommendation.TextAdRecommendationOrBuilder- Returns:
- The autoApplyDate.
-
getAutoApplyDateBytes
public com.google.protobuf.ByteString getAutoApplyDateBytes()
Output only. Date, if present, is the earliest when the recommendation will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAutoApplyDateBytesin interfaceRecommendation.TextAdRecommendationOrBuilder- Returns:
- The bytes for autoApplyDate.
-
setAutoApplyDate
public Recommendation.TextAdRecommendation.Builder setAutoApplyDate(java.lang.String value)
Output only. Date, if present, is the earliest when the recommendation will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The autoApplyDate to set.- Returns:
- This builder for chaining.
-
clearAutoApplyDate
public Recommendation.TextAdRecommendation.Builder clearAutoApplyDate()
Output only. Date, if present, is the earliest when the recommendation will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setAutoApplyDateBytes
public Recommendation.TextAdRecommendation.Builder setAutoApplyDateBytes(com.google.protobuf.ByteString value)
Output only. Date, if present, is the earliest when the recommendation will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for autoApplyDate to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Recommendation.TextAdRecommendation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Recommendation.TextAdRecommendation.Builder>
-
mergeUnknownFields
public final Recommendation.TextAdRecommendation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Recommendation.TextAdRecommendation.Builder>
-
-