Class LifeEvent.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<LifeEvent.Builder>
com.google.ads.googleads.v18.resources.LifeEvent.Builder
- All Implemented Interfaces:
LifeEventOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LifeEvent
public static final class LifeEvent.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<LifeEvent.Builder>
implements LifeEventOrBuilder
A life event: a particular interest-based vertical to be targeted to reach users when they are in the midst of important life milestones.Protobuf type
google.ads.googleads.v18.resources.LifeEvent-
Method Summary
Modifier and TypeMethodDescriptionaddAllAvailabilities(Iterable<? extends CriterionCategoryAvailability> values) Output only.addAvailabilities(int index, CriterionCategoryAvailability value) Output only.addAvailabilities(int index, CriterionCategoryAvailability.Builder builderForValue) Output only.Output only.addAvailabilities(CriterionCategoryAvailability.Builder builderForValue) Output only.Output only.addAvailabilitiesBuilder(int index) Output only.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Output only.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearId()Output only.Output only.Output only.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Output only.Output only.clone()getAvailabilities(int index) Output only.getAvailabilitiesBuilder(int index) Output only.Output only.intOutput only.Output only.getAvailabilitiesOrBuilder(int index) Output only.List<? extends CriterionCategoryAvailabilityOrBuilder>Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlonggetId()Output only.booleanOutput only.getName()Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final LifeEvent.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeAvailabilities(int index) Output only.setAvailabilities(int index, CriterionCategoryAvailability value) Output only.setAvailabilities(int index, CriterionCategoryAvailability.Builder builderForValue) Output only.setId(long value) Output only.setLaunchedToAll(boolean value) Output only.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.Output only.setParentBytes(com.google.protobuf.ByteString value) Output only.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setResourceName(String value) Output only.setResourceNameBytes(com.google.protobuf.ByteString value) Output only.final LifeEvent.BuildersetUnknownFields(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<LifeEvent.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<LifeEvent.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<LifeEvent.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<LifeEvent.Builder>
-
setField
public LifeEvent.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<LifeEvent.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LifeEvent.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LifeEvent.Builder>
-
setRepeatedField
public LifeEvent.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<LifeEvent.Builder>
-
addRepeatedField
public LifeEvent.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<LifeEvent.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LifeEvent.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<LifeEvent.Builder>
-
mergeFrom
public LifeEvent.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<LifeEvent.Builder>- Throws:
IOException
-
getResourceName
Output only. The resource name of the life event. Life event resource names have the form: `customers/{customer_id}/lifeEvents/{life_event_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceLifeEventOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()Output only. The resource name of the life event. Life event resource names have the form: `customers/{customer_id}/lifeEvents/{life_event_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceLifeEventOrBuilder- Returns:
- The bytes for resourceName.
-
setResourceName
Output only. The resource name of the life event. Life event resource names have the form: `customers/{customer_id}/lifeEvents/{life_event_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
Output only. The resource name of the life event. Life event resource names have the form: `customers/{customer_id}/lifeEvents/{life_event_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setResourceNameBytes
Output only. The resource name of the life event. Life event resource names have the form: `customers/{customer_id}/lifeEvents/{life_event_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.
-
getId
public long getId()Output only. The ID of the life event.
int64 id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdin interfaceLifeEventOrBuilder- Returns:
- The id.
-
setId
Output only. The ID of the life event.
int64 id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Output only. The ID of the life event.
int64 id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getName
Output only. The name of the life event, for example,"Recently Moved"
string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceLifeEventOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. The name of the life event, for example,"Recently Moved"
string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceLifeEventOrBuilder- Returns:
- The bytes for name.
-
setName
Output only. The name of the life event, for example,"Recently Moved"
string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Output only. The name of the life event, for example,"Recently Moved"
string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
Output only. The name of the life event, for example,"Recently Moved"
string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getParent
Output only. The parent of the life_event.
string parent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getParentin interfaceLifeEventOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()Output only. The parent of the life_event.
string parent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getParentBytesin interfaceLifeEventOrBuilder- Returns:
- The bytes for parent.
-
setParent
Output only. The parent of the life_event.
string parent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
Output only. The parent of the life_event.
string parent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setParentBytes
Output only. The parent of the life_event.
string parent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
getLaunchedToAll
public boolean getLaunchedToAll()Output only. True if the life event is launched to all channels and locales.
bool launched_to_all = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLaunchedToAllin interfaceLifeEventOrBuilder- Returns:
- The launchedToAll.
-
setLaunchedToAll
Output only. True if the life event is launched to all channels and locales.
bool launched_to_all = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The launchedToAll to set.- Returns:
- This builder for chaining.
-
clearLaunchedToAll
Output only. True if the life event is launched to all channels and locales.
bool launched_to_all = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getAvailabilitiesList
Output only. Availability information of the life event.
repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAvailabilitiesListin interfaceLifeEventOrBuilder
-
getAvailabilitiesCount
public int getAvailabilitiesCount()Output only. Availability information of the life event.
repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAvailabilitiesCountin interfaceLifeEventOrBuilder
-
getAvailabilities
Output only. Availability information of the life event.
repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAvailabilitiesin interfaceLifeEventOrBuilder
-
setAvailabilities
Output only. Availability information of the life event.
repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setAvailabilities
public LifeEvent.Builder setAvailabilities(int index, CriterionCategoryAvailability.Builder builderForValue) Output only. Availability information of the life event.
repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAvailabilities
Output only. Availability information of the life event.
repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAvailabilities
Output only. Availability information of the life event.
repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAvailabilities
Output only. Availability information of the life event.
repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAvailabilities
public LifeEvent.Builder addAvailabilities(int index, CriterionCategoryAvailability.Builder builderForValue) Output only. Availability information of the life event.
repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAllAvailabilities
public LifeEvent.Builder addAllAvailabilities(Iterable<? extends CriterionCategoryAvailability> values) Output only. Availability information of the life event.
repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearAvailabilities
Output only. Availability information of the life event.
repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
removeAvailabilities
Output only. Availability information of the life event.
repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getAvailabilitiesBuilder
Output only. Availability information of the life event.
repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getAvailabilitiesOrBuilder
Output only. Availability information of the life event.
repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAvailabilitiesOrBuilderin interfaceLifeEventOrBuilder
-
getAvailabilitiesOrBuilderList
Output only. Availability information of the life event.
repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAvailabilitiesOrBuilderListin interfaceLifeEventOrBuilder
-
addAvailabilitiesBuilder
Output only. Availability information of the life event.
repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAvailabilitiesBuilder
Output only. Availability information of the life event.
repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getAvailabilitiesBuilderList
Output only. Availability information of the life event.
repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LifeEvent.Builder>
-
mergeUnknownFields
public final LifeEvent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LifeEvent.Builder>
-