Class Campaign.OptimizationGoalSetting.Builder

    • 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<Campaign.OptimizationGoalSetting.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<Campaign.OptimizationGoalSetting.Builder>
      • getDefaultInstanceForType

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

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

        public Campaign.OptimizationGoalSetting buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

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

        public Campaign.OptimizationGoalSetting.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<Campaign.OptimizationGoalSetting.Builder>
        Throws:
        java.io.IOException
      • getOptimizationGoalTypesCount

        public int getOptimizationGoalTypesCount()
         The list of optimization goal types.
         
        repeated .google.ads.googleads.v10.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1;
        Specified by:
        getOptimizationGoalTypesCount in interface Campaign.OptimizationGoalSettingOrBuilder
        Returns:
        The count of optimizationGoalTypes.
      • setOptimizationGoalTypes

        public Campaign.OptimizationGoalSetting.Builder setOptimizationGoalTypes​(int index,
                                                                                 OptimizationGoalTypeEnum.OptimizationGoalType value)
         The list of optimization goal types.
         
        repeated .google.ads.googleads.v10.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1;
        Parameters:
        index - The index to set the value at.
        value - The optimizationGoalTypes to set.
        Returns:
        This builder for chaining.
      • addAllOptimizationGoalTypes

        public Campaign.OptimizationGoalSetting.Builder addAllOptimizationGoalTypes​(java.lang.Iterable<? extends OptimizationGoalTypeEnum.OptimizationGoalType> values)
         The list of optimization goal types.
         
        repeated .google.ads.googleads.v10.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1;
        Parameters:
        values - The optimizationGoalTypes to add.
        Returns:
        This builder for chaining.
      • clearOptimizationGoalTypes

        public Campaign.OptimizationGoalSetting.Builder clearOptimizationGoalTypes()
         The list of optimization goal types.
         
        repeated .google.ads.googleads.v10.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1;
        Returns:
        This builder for chaining.
      • getOptimizationGoalTypesValueList

        public java.util.List<java.lang.Integer> getOptimizationGoalTypesValueList()
         The list of optimization goal types.
         
        repeated .google.ads.googleads.v10.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1;
        Specified by:
        getOptimizationGoalTypesValueList in interface Campaign.OptimizationGoalSettingOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for optimizationGoalTypes.
      • getOptimizationGoalTypesValue

        public int getOptimizationGoalTypesValue​(int index)
         The list of optimization goal types.
         
        repeated .google.ads.googleads.v10.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1;
        Specified by:
        getOptimizationGoalTypesValue in interface Campaign.OptimizationGoalSettingOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of optimizationGoalTypes at the given index.
      • setOptimizationGoalTypesValue

        public Campaign.OptimizationGoalSetting.Builder setOptimizationGoalTypesValue​(int index,
                                                                                      int value)
         The list of optimization goal types.
         
        repeated .google.ads.googleads.v10.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1;
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of optimizationGoalTypes at the given index.
      • addOptimizationGoalTypesValue

        public Campaign.OptimizationGoalSetting.Builder addOptimizationGoalTypesValue​(int value)
         The list of optimization goal types.
         
        repeated .google.ads.googleads.v10.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1;
        Parameters:
        value - The enum numeric value on the wire for optimizationGoalTypes to add.
        Returns:
        This builder for chaining.
      • addAllOptimizationGoalTypesValue

        public Campaign.OptimizationGoalSetting.Builder addAllOptimizationGoalTypesValue​(java.lang.Iterable<java.lang.Integer> values)
         The list of optimization goal types.
         
        repeated .google.ads.googleads.v10.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1;
        Parameters:
        values - The enum numeric values on the wire for optimizationGoalTypes to add.
        Returns:
        This builder for chaining.