Class LifeEvent.Builder

  • All Implemented Interfaces:
    LifeEventOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.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.v9.resources.LifeEvent
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<LifeEvent.Builder>
      • clear

        public LifeEvent.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<LifeEvent.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<LifeEvent.Builder>
      • getDefaultInstanceForType

        public LifeEvent getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public LifeEvent build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public LifeEvent buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public LifeEvent.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<LifeEvent.Builder>
      • setField

        public LifeEvent.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                          java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<LifeEvent.Builder>
      • clearField

        public LifeEvent.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<LifeEvent.Builder>
      • clearOneof

        public LifeEvent.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<LifeEvent.Builder>
      • setRepeatedField

        public LifeEvent.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  int index,
                                                  java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LifeEvent.Builder>
      • addRepeatedField

        public LifeEvent.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LifeEvent.Builder>
      • mergeFrom

        public LifeEvent.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LifeEvent.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LifeEvent.Builder>
      • mergeFrom

        public LifeEvent.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LifeEvent.Builder>
        Throws:
        java.io.IOException
      • getResourceName

        public java.lang.String 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:
        getResourceName in interface LifeEventOrBuilder
        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:
        getResourceNameBytes in interface LifeEventOrBuilder
        Returns:
        The bytes for resourceName.
      • setResourceName

        public LifeEvent.Builder setResourceName​(java.lang.String value)
         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

        public LifeEvent.Builder 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

        public LifeEvent.Builder setResourceNameBytes​(com.google.protobuf.ByteString value)
         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:
        getId in interface LifeEventOrBuilder
        Returns:
        The id.
      • setId

        public LifeEvent.Builder setId​(long value)
         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

        public LifeEvent.Builder clearId()
         Output only. The ID of the life event.
         
        int64 id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getName

        public java.lang.String getName()
         Output only. The name of the life event. E.g.,"Recently Moved"
         
        string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface LifeEventOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The name of the life event. E.g.,"Recently Moved"
         
        string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface LifeEventOrBuilder
        Returns:
        The bytes for name.
      • setName

        public LifeEvent.Builder setName​(java.lang.String value)
         Output only. The name of the life event. E.g.,"Recently Moved"
         
        string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public LifeEvent.Builder clearName()
         Output only. The name of the life event. E.g.,"Recently Moved"
         
        string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public LifeEvent.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The name of the life event. E.g.,"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

        public java.lang.String getParent()
         Output only. The parent of the life_event.
         
        string parent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface LifeEventOrBuilder
        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:
        getParentBytes in interface LifeEventOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public LifeEvent.Builder setParent​(java.lang.String value)
         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

        public LifeEvent.Builder 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

        public LifeEvent.Builder setParentBytes​(com.google.protobuf.ByteString value)
         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:
        getLaunchedToAll in interface LifeEventOrBuilder
        Returns:
        The launchedToAll.
      • setLaunchedToAll

        public LifeEvent.Builder setLaunchedToAll​(boolean value)
         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

        public LifeEvent.Builder 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

        public java.util.List<CriterionCategoryAvailability> getAvailabilitiesList()
         Output only. Availability information of the life event.
         
        repeated .google.ads.googleads.v9.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAvailabilitiesList in interface LifeEventOrBuilder
      • getAvailabilitiesCount

        public int getAvailabilitiesCount()
         Output only. Availability information of the life event.
         
        repeated .google.ads.googleads.v9.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAvailabilitiesCount in interface LifeEventOrBuilder
      • getAvailabilities

        public CriterionCategoryAvailability getAvailabilities​(int index)
         Output only. Availability information of the life event.
         
        repeated .google.ads.googleads.v9.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAvailabilities in interface LifeEventOrBuilder
      • setAvailabilities

        public LifeEvent.Builder setAvailabilities​(int index,
                                                   CriterionCategoryAvailability value)
         Output only. Availability information of the life event.
         
        repeated .google.ads.googleads.v9.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.v9.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addAvailabilities

        public LifeEvent.Builder addAvailabilities​(CriterionCategoryAvailability value)
         Output only. Availability information of the life event.
         
        repeated .google.ads.googleads.v9.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addAvailabilities

        public LifeEvent.Builder addAvailabilities​(int index,
                                                   CriterionCategoryAvailability value)
         Output only. Availability information of the life event.
         
        repeated .google.ads.googleads.v9.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addAvailabilities

        public LifeEvent.Builder addAvailabilities​(CriterionCategoryAvailability.Builder builderForValue)
         Output only. Availability information of the life event.
         
        repeated .google.ads.googleads.v9.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.v9.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addAllAvailabilities

        public LifeEvent.Builder addAllAvailabilities​(java.lang.Iterable<? extends CriterionCategoryAvailability> values)
         Output only. Availability information of the life event.
         
        repeated .google.ads.googleads.v9.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearAvailabilities

        public LifeEvent.Builder clearAvailabilities()
         Output only. Availability information of the life event.
         
        repeated .google.ads.googleads.v9.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • removeAvailabilities

        public LifeEvent.Builder removeAvailabilities​(int index)
         Output only. Availability information of the life event.
         
        repeated .google.ads.googleads.v9.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getAvailabilitiesBuilder

        public CriterionCategoryAvailability.Builder getAvailabilitiesBuilder​(int index)
         Output only. Availability information of the life event.
         
        repeated .google.ads.googleads.v9.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addAvailabilitiesBuilder

        public CriterionCategoryAvailability.Builder addAvailabilitiesBuilder()
         Output only. Availability information of the life event.
         
        repeated .google.ads.googleads.v9.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addAvailabilitiesBuilder

        public CriterionCategoryAvailability.Builder addAvailabilitiesBuilder​(int index)
         Output only. Availability information of the life event.
         
        repeated .google.ads.googleads.v9.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getAvailabilitiesBuilderList

        public java.util.List<CriterionCategoryAvailability.Builder> getAvailabilitiesBuilderList()
         Output only. Availability information of the life event.
         
        repeated .google.ads.googleads.v9.common.CriterionCategoryAvailability availabilities = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUnknownFields

        public final LifeEvent.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LifeEvent.Builder>
      • mergeUnknownFields

        public final LifeEvent.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LifeEvent.Builder>