Class BiddingStrategySimulation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<BiddingStrategySimulation.Builder>
com.google.ads.googleads.v18.resources.BiddingStrategySimulation.Builder
All Implemented Interfaces:
BiddingStrategySimulationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BiddingStrategySimulation

public static final class BiddingStrategySimulation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BiddingStrategySimulation.Builder> implements BiddingStrategySimulationOrBuilder
 A bidding strategy simulation. Supported combinations of simulation type
 and simulation modification method are detailed below respectively.

 1. TARGET_CPA - UNIFORM
 2. TARGET_ROAS - UNIFORM
 
Protobuf type google.ads.googleads.v18.resources.BiddingStrategySimulation
  • Method Details

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

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

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

      public BiddingStrategySimulation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<BiddingStrategySimulation.Builder>
    • setField

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

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

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

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

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

      public BiddingStrategySimulation.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<BiddingStrategySimulation.Builder>
    • mergeFrom

    • isInitialized

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

      public BiddingStrategySimulation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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<BiddingStrategySimulation.Builder>
      Throws:
      IOException
    • getPointListCase

      public BiddingStrategySimulation.PointListCase getPointListCase()
      Specified by:
      getPointListCase in interface BiddingStrategySimulationOrBuilder
    • clearPointList

      public BiddingStrategySimulation.Builder clearPointList()
    • getResourceName

      public String getResourceName()
       Output only. The resource name of the bidding strategy simulation.
       Bidding strategy simulation resource names have the form:
      
       `customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id}~{type}~{modification_method}~{start_date}~{end_date}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceName in interface BiddingStrategySimulationOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       Output only. The resource name of the bidding strategy simulation.
       Bidding strategy simulation resource names have the form:
      
       `customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id}~{type}~{modification_method}~{start_date}~{end_date}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceNameBytes in interface BiddingStrategySimulationOrBuilder
      Returns:
      The bytes for resourceName.
    • setResourceName

      public BiddingStrategySimulation.Builder setResourceName(String value)
       Output only. The resource name of the bidding strategy simulation.
       Bidding strategy simulation resource names have the form:
      
       `customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id}~{type}~{modification_method}~{start_date}~{end_date}`
       
      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 BiddingStrategySimulation.Builder clearResourceName()
       Output only. The resource name of the bidding strategy simulation.
       Bidding strategy simulation resource names have the form:
      
       `customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id}~{type}~{modification_method}~{start_date}~{end_date}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public BiddingStrategySimulation.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       Output only. The resource name of the bidding strategy simulation.
       Bidding strategy simulation resource names have the form:
      
       `customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id}~{type}~{modification_method}~{start_date}~{end_date}`
       
      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.
    • getBiddingStrategyId

      public long getBiddingStrategyId()
       Output only. Bidding strategy shared set id of the simulation.
       
      int64 bidding_strategy_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBiddingStrategyId in interface BiddingStrategySimulationOrBuilder
      Returns:
      The biddingStrategyId.
    • setBiddingStrategyId

      public BiddingStrategySimulation.Builder setBiddingStrategyId(long value)
       Output only. Bidding strategy shared set id of the simulation.
       
      int64 bidding_strategy_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The biddingStrategyId to set.
      Returns:
      This builder for chaining.
    • clearBiddingStrategyId

      public BiddingStrategySimulation.Builder clearBiddingStrategyId()
       Output only. Bidding strategy shared set id of the simulation.
       
      int64 bidding_strategy_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
       Output only. The field that the simulation modifies.
       
      .google.ads.googleads.v18.enums.SimulationTypeEnum.SimulationType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTypeValue in interface BiddingStrategySimulationOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public BiddingStrategySimulation.Builder setTypeValue(int value)
       Output only. The field that the simulation modifies.
       
      .google.ads.googleads.v18.enums.SimulationTypeEnum.SimulationType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

       Output only. The field that the simulation modifies.
       
      .google.ads.googleads.v18.enums.SimulationTypeEnum.SimulationType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getType in interface BiddingStrategySimulationOrBuilder
      Returns:
      The type.
    • setType

       Output only. The field that the simulation modifies.
       
      .google.ads.googleads.v18.enums.SimulationTypeEnum.SimulationType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

       Output only. The field that the simulation modifies.
       
      .google.ads.googleads.v18.enums.SimulationTypeEnum.SimulationType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getModificationMethodValue

      public int getModificationMethodValue()
       Output only. How the simulation modifies the field.
       
      .google.ads.googleads.v18.enums.SimulationModificationMethodEnum.SimulationModificationMethod modification_method = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getModificationMethodValue in interface BiddingStrategySimulationOrBuilder
      Returns:
      The enum numeric value on the wire for modificationMethod.
    • setModificationMethodValue

      public BiddingStrategySimulation.Builder setModificationMethodValue(int value)
       Output only. How the simulation modifies the field.
       
      .google.ads.googleads.v18.enums.SimulationModificationMethodEnum.SimulationModificationMethod modification_method = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for modificationMethod to set.
      Returns:
      This builder for chaining.
    • getModificationMethod

       Output only. How the simulation modifies the field.
       
      .google.ads.googleads.v18.enums.SimulationModificationMethodEnum.SimulationModificationMethod modification_method = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getModificationMethod in interface BiddingStrategySimulationOrBuilder
      Returns:
      The modificationMethod.
    • setModificationMethod

       Output only. How the simulation modifies the field.
       
      .google.ads.googleads.v18.enums.SimulationModificationMethodEnum.SimulationModificationMethod modification_method = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The modificationMethod to set.
      Returns:
      This builder for chaining.
    • clearModificationMethod

      public BiddingStrategySimulation.Builder clearModificationMethod()
       Output only. How the simulation modifies the field.
       
      .google.ads.googleads.v18.enums.SimulationModificationMethodEnum.SimulationModificationMethod modification_method = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getStartDate

      public String getStartDate()
       Output only. First day on which the simulation is based, in YYYY-MM-DD
       format.
       
      string start_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStartDate in interface BiddingStrategySimulationOrBuilder
      Returns:
      The startDate.
    • getStartDateBytes

      public com.google.protobuf.ByteString getStartDateBytes()
       Output only. First day on which the simulation is based, in YYYY-MM-DD
       format.
       
      string start_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStartDateBytes in interface BiddingStrategySimulationOrBuilder
      Returns:
      The bytes for startDate.
    • setStartDate

      public BiddingStrategySimulation.Builder setStartDate(String value)
       Output only. First day on which the simulation is based, in YYYY-MM-DD
       format.
       
      string start_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The startDate to set.
      Returns:
      This builder for chaining.
    • clearStartDate

      public BiddingStrategySimulation.Builder clearStartDate()
       Output only. First day on which the simulation is based, in YYYY-MM-DD
       format.
       
      string start_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setStartDateBytes

      public BiddingStrategySimulation.Builder setStartDateBytes(com.google.protobuf.ByteString value)
       Output only. First day on which the simulation is based, in YYYY-MM-DD
       format.
       
      string start_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for startDate to set.
      Returns:
      This builder for chaining.
    • getEndDate

      public String getEndDate()
       Output only. Last day on which the simulation is based, in YYYY-MM-DD
       format
       
      string end_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEndDate in interface BiddingStrategySimulationOrBuilder
      Returns:
      The endDate.
    • getEndDateBytes

      public com.google.protobuf.ByteString getEndDateBytes()
       Output only. Last day on which the simulation is based, in YYYY-MM-DD
       format
       
      string end_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEndDateBytes in interface BiddingStrategySimulationOrBuilder
      Returns:
      The bytes for endDate.
    • setEndDate

      public BiddingStrategySimulation.Builder setEndDate(String value)
       Output only. Last day on which the simulation is based, in YYYY-MM-DD
       format
       
      string end_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The endDate to set.
      Returns:
      This builder for chaining.
    • clearEndDate

      public BiddingStrategySimulation.Builder clearEndDate()
       Output only. Last day on which the simulation is based, in YYYY-MM-DD
       format
       
      string end_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setEndDateBytes

      public BiddingStrategySimulation.Builder setEndDateBytes(com.google.protobuf.ByteString value)
       Output only. Last day on which the simulation is based, in YYYY-MM-DD
       format
       
      string end_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for endDate to set.
      Returns:
      This builder for chaining.
    • hasTargetCpaPointList

      public boolean hasTargetCpaPointList()
       Output only. Simulation points if the simulation type is TARGET_CPA.
       
      .google.ads.googleads.v18.common.TargetCpaSimulationPointList target_cpa_point_list = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasTargetCpaPointList in interface BiddingStrategySimulationOrBuilder
      Returns:
      Whether the targetCpaPointList field is set.
    • getTargetCpaPointList

      public TargetCpaSimulationPointList getTargetCpaPointList()
       Output only. Simulation points if the simulation type is TARGET_CPA.
       
      .google.ads.googleads.v18.common.TargetCpaSimulationPointList target_cpa_point_list = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTargetCpaPointList in interface BiddingStrategySimulationOrBuilder
      Returns:
      The targetCpaPointList.
    • setTargetCpaPointList

       Output only. Simulation points if the simulation type is TARGET_CPA.
       
      .google.ads.googleads.v18.common.TargetCpaSimulationPointList target_cpa_point_list = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setTargetCpaPointList

      public BiddingStrategySimulation.Builder setTargetCpaPointList(TargetCpaSimulationPointList.Builder builderForValue)
       Output only. Simulation points if the simulation type is TARGET_CPA.
       
      .google.ads.googleads.v18.common.TargetCpaSimulationPointList target_cpa_point_list = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeTargetCpaPointList

      public BiddingStrategySimulation.Builder mergeTargetCpaPointList(TargetCpaSimulationPointList value)
       Output only. Simulation points if the simulation type is TARGET_CPA.
       
      .google.ads.googleads.v18.common.TargetCpaSimulationPointList target_cpa_point_list = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearTargetCpaPointList

      public BiddingStrategySimulation.Builder clearTargetCpaPointList()
       Output only. Simulation points if the simulation type is TARGET_CPA.
       
      .google.ads.googleads.v18.common.TargetCpaSimulationPointList target_cpa_point_list = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getTargetCpaPointListBuilder

      public TargetCpaSimulationPointList.Builder getTargetCpaPointListBuilder()
       Output only. Simulation points if the simulation type is TARGET_CPA.
       
      .google.ads.googleads.v18.common.TargetCpaSimulationPointList target_cpa_point_list = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getTargetCpaPointListOrBuilder

      public TargetCpaSimulationPointListOrBuilder getTargetCpaPointListOrBuilder()
       Output only. Simulation points if the simulation type is TARGET_CPA.
       
      .google.ads.googleads.v18.common.TargetCpaSimulationPointList target_cpa_point_list = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTargetCpaPointListOrBuilder in interface BiddingStrategySimulationOrBuilder
    • hasTargetRoasPointList

      public boolean hasTargetRoasPointList()
       Output only. Simulation points if the simulation type is TARGET_ROAS.
       
      .google.ads.googleads.v18.common.TargetRoasSimulationPointList target_roas_point_list = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasTargetRoasPointList in interface BiddingStrategySimulationOrBuilder
      Returns:
      Whether the targetRoasPointList field is set.
    • getTargetRoasPointList

      public TargetRoasSimulationPointList getTargetRoasPointList()
       Output only. Simulation points if the simulation type is TARGET_ROAS.
       
      .google.ads.googleads.v18.common.TargetRoasSimulationPointList target_roas_point_list = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTargetRoasPointList in interface BiddingStrategySimulationOrBuilder
      Returns:
      The targetRoasPointList.
    • setTargetRoasPointList

       Output only. Simulation points if the simulation type is TARGET_ROAS.
       
      .google.ads.googleads.v18.common.TargetRoasSimulationPointList target_roas_point_list = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setTargetRoasPointList

      public BiddingStrategySimulation.Builder setTargetRoasPointList(TargetRoasSimulationPointList.Builder builderForValue)
       Output only. Simulation points if the simulation type is TARGET_ROAS.
       
      .google.ads.googleads.v18.common.TargetRoasSimulationPointList target_roas_point_list = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeTargetRoasPointList

      public BiddingStrategySimulation.Builder mergeTargetRoasPointList(TargetRoasSimulationPointList value)
       Output only. Simulation points if the simulation type is TARGET_ROAS.
       
      .google.ads.googleads.v18.common.TargetRoasSimulationPointList target_roas_point_list = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearTargetRoasPointList

      public BiddingStrategySimulation.Builder clearTargetRoasPointList()
       Output only. Simulation points if the simulation type is TARGET_ROAS.
       
      .google.ads.googleads.v18.common.TargetRoasSimulationPointList target_roas_point_list = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getTargetRoasPointListBuilder

      public TargetRoasSimulationPointList.Builder getTargetRoasPointListBuilder()
       Output only. Simulation points if the simulation type is TARGET_ROAS.
       
      .google.ads.googleads.v18.common.TargetRoasSimulationPointList target_roas_point_list = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getTargetRoasPointListOrBuilder

      public TargetRoasSimulationPointListOrBuilder getTargetRoasPointListOrBuilder()
       Output only. Simulation points if the simulation type is TARGET_ROAS.
       
      .google.ads.googleads.v18.common.TargetRoasSimulationPointList target_roas_point_list = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTargetRoasPointListOrBuilder in interface BiddingStrategySimulationOrBuilder
    • setUnknownFields

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

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