Class CustomConversionGoal.Builder

  • All Implemented Interfaces:
    CustomConversionGoalOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    CustomConversionGoal

    public static final class CustomConversionGoal.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CustomConversionGoal.Builder>
    implements CustomConversionGoalOrBuilder
     Custom conversion goal that can make arbitrary conversion actions biddable.
     
    Protobuf type google.ads.googleads.v10.resources.CustomConversionGoal
    • 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<CustomConversionGoal.Builder>
      • clear

        public CustomConversionGoal.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<CustomConversionGoal.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<CustomConversionGoal.Builder>
      • getDefaultInstanceForType

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

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

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

        public CustomConversionGoal.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<CustomConversionGoal.Builder>
      • setField

        public CustomConversionGoal.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<CustomConversionGoal.Builder>
      • clearField

        public CustomConversionGoal.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<CustomConversionGoal.Builder>
      • clearOneof

        public CustomConversionGoal.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<CustomConversionGoal.Builder>
      • setRepeatedField

        public CustomConversionGoal.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<CustomConversionGoal.Builder>
      • addRepeatedField

        public CustomConversionGoal.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<CustomConversionGoal.Builder>
      • isInitialized

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

        public CustomConversionGoal.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<CustomConversionGoal.Builder>
        Throws:
        java.io.IOException
      • getResourceName

        public java.lang.String getResourceName()
         Immutable. The resource name of the custom conversion goal.
         Custom conversion goal resource names have the form:
         `customers/{customer_id}/customConversionGoals/{goal_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceName in interface CustomConversionGoalOrBuilder
        Returns:
        The resourceName.
      • getResourceNameBytes

        public com.google.protobuf.ByteString getResourceNameBytes()
         Immutable. The resource name of the custom conversion goal.
         Custom conversion goal resource names have the form:
         `customers/{customer_id}/customConversionGoals/{goal_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceNameBytes in interface CustomConversionGoalOrBuilder
        Returns:
        The bytes for resourceName.
      • setResourceName

        public CustomConversionGoal.Builder setResourceName​(java.lang.String value)
         Immutable. The resource name of the custom conversion goal.
         Custom conversion goal resource names have the form:
         `customers/{customer_id}/customConversionGoals/{goal_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The resourceName to set.
        Returns:
        This builder for chaining.
      • clearResourceName

        public CustomConversionGoal.Builder clearResourceName()
         Immutable. The resource name of the custom conversion goal.
         Custom conversion goal resource names have the form:
         `customers/{customer_id}/customConversionGoals/{goal_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setResourceNameBytes

        public CustomConversionGoal.Builder setResourceNameBytes​(com.google.protobuf.ByteString value)
         Immutable. The resource name of the custom conversion goal.
         Custom conversion goal resource names have the form:
         `customers/{customer_id}/customConversionGoals/{goal_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for resourceName to set.
        Returns:
        This builder for chaining.
      • getId

        public long getId()
         Immutable. The ID for this custom conversion goal.
         
        int64 id = 2 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getId in interface CustomConversionGoalOrBuilder
        Returns:
        The id.
      • setId

        public CustomConversionGoal.Builder setId​(long value)
         Immutable. The ID for this custom conversion goal.
         
        int64 id = 2 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public CustomConversionGoal.Builder clearId()
         Immutable. The ID for this custom conversion goal.
         
        int64 id = 2 [(.google.api.field_behavior) = IMMUTABLE];
        Returns:
        This builder for chaining.
      • getName

        public java.lang.String getName()
         The name for this custom conversion goal.
         
        string name = 3;
        Specified by:
        getName in interface CustomConversionGoalOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name for this custom conversion goal.
         
        string name = 3;
        Specified by:
        getNameBytes in interface CustomConversionGoalOrBuilder
        Returns:
        The bytes for name.
      • setName

        public CustomConversionGoal.Builder setName​(java.lang.String value)
         The name for this custom conversion goal.
         
        string name = 3;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public CustomConversionGoal.Builder clearName()
         The name for this custom conversion goal.
         
        string name = 3;
        Returns:
        This builder for chaining.
      • setNameBytes

        public CustomConversionGoal.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The name for this custom conversion goal.
         
        string name = 3;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getConversionActionsList

        public com.google.protobuf.ProtocolStringList getConversionActionsList()
         Conversion actions that the custom conversion goal makes biddable.
         
        repeated string conversion_actions = 4 [(.google.api.resource_reference) = { ... }
        Specified by:
        getConversionActionsList in interface CustomConversionGoalOrBuilder
        Returns:
        A list containing the conversionActions.
      • getConversionActionsCount

        public int getConversionActionsCount()
         Conversion actions that the custom conversion goal makes biddable.
         
        repeated string conversion_actions = 4 [(.google.api.resource_reference) = { ... }
        Specified by:
        getConversionActionsCount in interface CustomConversionGoalOrBuilder
        Returns:
        The count of conversionActions.
      • getConversionActions

        public java.lang.String getConversionActions​(int index)
         Conversion actions that the custom conversion goal makes biddable.
         
        repeated string conversion_actions = 4 [(.google.api.resource_reference) = { ... }
        Specified by:
        getConversionActions in interface CustomConversionGoalOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The conversionActions at the given index.
      • getConversionActionsBytes

        public com.google.protobuf.ByteString getConversionActionsBytes​(int index)
         Conversion actions that the custom conversion goal makes biddable.
         
        repeated string conversion_actions = 4 [(.google.api.resource_reference) = { ... }
        Specified by:
        getConversionActionsBytes in interface CustomConversionGoalOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the conversionActions at the given index.
      • setConversionActions

        public CustomConversionGoal.Builder setConversionActions​(int index,
                                                                 java.lang.String value)
         Conversion actions that the custom conversion goal makes biddable.
         
        repeated string conversion_actions = 4 [(.google.api.resource_reference) = { ... }
        Parameters:
        index - The index to set the value at.
        value - The conversionActions to set.
        Returns:
        This builder for chaining.
      • addConversionActions

        public CustomConversionGoal.Builder addConversionActions​(java.lang.String value)
         Conversion actions that the custom conversion goal makes biddable.
         
        repeated string conversion_actions = 4 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The conversionActions to add.
        Returns:
        This builder for chaining.
      • addAllConversionActions

        public CustomConversionGoal.Builder addAllConversionActions​(java.lang.Iterable<java.lang.String> values)
         Conversion actions that the custom conversion goal makes biddable.
         
        repeated string conversion_actions = 4 [(.google.api.resource_reference) = { ... }
        Parameters:
        values - The conversionActions to add.
        Returns:
        This builder for chaining.
      • clearConversionActions

        public CustomConversionGoal.Builder clearConversionActions()
         Conversion actions that the custom conversion goal makes biddable.
         
        repeated string conversion_actions = 4 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • addConversionActionsBytes

        public CustomConversionGoal.Builder addConversionActionsBytes​(com.google.protobuf.ByteString value)
         Conversion actions that the custom conversion goal makes biddable.
         
        repeated string conversion_actions = 4 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes of the conversionActions to add.
        Returns:
        This builder for chaining.
      • getStatusValue

        public int getStatusValue()
         The status of the custom conversion goal.
         
        .google.ads.googleads.v10.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus status = 5;
        Specified by:
        getStatusValue in interface CustomConversionGoalOrBuilder
        Returns:
        The enum numeric value on the wire for status.
      • setStatusValue

        public CustomConversionGoal.Builder setStatusValue​(int value)
         The status of the custom conversion goal.
         
        .google.ads.googleads.v10.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus status = 5;
        Parameters:
        value - The enum numeric value on the wire for status to set.
        Returns:
        This builder for chaining.
      • clearStatus

        public CustomConversionGoal.Builder clearStatus()
         The status of the custom conversion goal.
         
        .google.ads.googleads.v10.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus status = 5;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final CustomConversionGoal.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<CustomConversionGoal.Builder>
      • mergeUnknownFields

        public final CustomConversionGoal.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<CustomConversionGoal.Builder>