Class LiftMeasurementDevice.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LiftMeasurementDevice.Builder>
com.google.ads.googleads.v25.resources.LiftMeasurementDevice.Builder
All Implemented Interfaces:
LiftMeasurementDeviceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
LiftMeasurementDevice

public static final class LiftMeasurementDevice.Builder extends com.google.protobuf.GeneratedMessage.Builder<LiftMeasurementDevice.Builder> implements LiftMeasurementDeviceOrBuilder
 A brand lift measurement by device.
 
Protobuf type google.ads.googleads.v25.resources.LiftMeasurementDevice
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<LiftMeasurementDevice.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.GeneratedMessage.Builder<LiftMeasurementDevice.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.GeneratedMessage.Builder<LiftMeasurementDevice.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

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

      public String getResourceName()
       Output only. The resource name of the lift measurement device.
       Lift measurement device resource names have the form:
      
       `customers/{customer_id}/liftMeasurementDevices/{lift_measurement_config_id}~{campaign_id}~{criterion_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceName in interface LiftMeasurementDeviceOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       Output only. The resource name of the lift measurement device.
       Lift measurement device resource names have the form:
      
       `customers/{customer_id}/liftMeasurementDevices/{lift_measurement_config_id}~{campaign_id}~{criterion_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceNameBytes in interface LiftMeasurementDeviceOrBuilder
      Returns:
      The bytes for resourceName.
    • setResourceName

      public LiftMeasurementDevice.Builder setResourceName(String value)
       Output only. The resource name of the lift measurement device.
       Lift measurement device resource names have the form:
      
       `customers/{customer_id}/liftMeasurementDevices/{lift_measurement_config_id}~{campaign_id}~{criterion_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 LiftMeasurementDevice.Builder clearResourceName()
       Output only. The resource name of the lift measurement device.
       Lift measurement device resource names have the form:
      
       `customers/{customer_id}/liftMeasurementDevices/{lift_measurement_config_id}~{campaign_id}~{criterion_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public LiftMeasurementDevice.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       Output only. The resource name of the lift measurement device.
       Lift measurement device resource names have the form:
      
       `customers/{customer_id}/liftMeasurementDevices/{lift_measurement_config_id}~{campaign_id}~{criterion_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.
    • hasLiftMeasurementConfigId

      public boolean hasLiftMeasurementConfigId()
       Output only. The lift measurement config ID.
       
      optional int64 lift_measurement_config_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasLiftMeasurementConfigId in interface LiftMeasurementDeviceOrBuilder
      Returns:
      Whether the liftMeasurementConfigId field is set.
    • getLiftMeasurementConfigId

      public long getLiftMeasurementConfigId()
       Output only. The lift measurement config ID.
       
      optional int64 lift_measurement_config_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLiftMeasurementConfigId in interface LiftMeasurementDeviceOrBuilder
      Returns:
      The liftMeasurementConfigId.
    • setLiftMeasurementConfigId

      public LiftMeasurementDevice.Builder setLiftMeasurementConfigId(long value)
       Output only. The lift measurement config ID.
       
      optional int64 lift_measurement_config_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The liftMeasurementConfigId to set.
      Returns:
      This builder for chaining.
    • clearLiftMeasurementConfigId

      public LiftMeasurementDevice.Builder clearLiftMeasurementConfigId()
       Output only. The lift measurement config ID.
       
      optional int64 lift_measurement_config_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasCampaign

      public boolean hasCampaign()
       Output only. The campaign resource name.
       
      optional string campaign = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      hasCampaign in interface LiftMeasurementDeviceOrBuilder
      Returns:
      Whether the campaign field is set.
    • getCampaign

      public String getCampaign()
       Output only. The campaign resource name.
       
      optional string campaign = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getCampaign in interface LiftMeasurementDeviceOrBuilder
      Returns:
      The campaign.
    • getCampaignBytes

      public com.google.protobuf.ByteString getCampaignBytes()
       Output only. The campaign resource name.
       
      optional string campaign = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getCampaignBytes in interface LiftMeasurementDeviceOrBuilder
      Returns:
      The bytes for campaign.
    • setCampaign

      public LiftMeasurementDevice.Builder setCampaign(String value)
       Output only. The campaign resource name.
       
      optional string campaign = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The campaign to set.
      Returns:
      This builder for chaining.
    • clearCampaign

      public LiftMeasurementDevice.Builder clearCampaign()
       Output only. The campaign resource name.
       
      optional string campaign = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setCampaignBytes

      public LiftMeasurementDevice.Builder setCampaignBytes(com.google.protobuf.ByteString value)
       Output only. The campaign resource name.
       
      optional string campaign = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for campaign to set.
      Returns:
      This builder for chaining.
    • getDeviceValue

      public int getDeviceValue()
       Output only. The device type.
       
      .google.ads.googleads.v25.enums.DeviceEnum.Device device = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeviceValue in interface LiftMeasurementDeviceOrBuilder
      Returns:
      The enum numeric value on the wire for device.
    • setDeviceValue

      public LiftMeasurementDevice.Builder setDeviceValue(int value)
       Output only. The device type.
       
      .google.ads.googleads.v25.enums.DeviceEnum.Device device = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for device to set.
      Returns:
      This builder for chaining.
    • getDevice

      public DeviceEnum.Device getDevice()
       Output only. The device type.
       
      .google.ads.googleads.v25.enums.DeviceEnum.Device device = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDevice in interface LiftMeasurementDeviceOrBuilder
      Returns:
      The device.
    • setDevice

       Output only. The device type.
       
      .google.ads.googleads.v25.enums.DeviceEnum.Device device = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The device to set.
      Returns:
      This builder for chaining.
    • clearDevice

      public LiftMeasurementDevice.Builder clearDevice()
       Output only. The device type.
       
      .google.ads.googleads.v25.enums.DeviceEnum.Device device = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.