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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Output only.Output only.com.google.protobuf.ByteStringOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.intOutput only.longOutput only.Output only.com.google.protobuf.ByteStringOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(LiftMeasurementDevice other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCampaign(String value) Output only.setCampaignBytes(com.google.protobuf.ByteString value) Output only.setDevice(DeviceEnum.Device value) Output only.setDeviceValue(int value) Output only.setLiftMeasurementConfigId(long value) Output only.setResourceName(String value) Output only.setResourceNameBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<LiftMeasurementDevice.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<LiftMeasurementDevice.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<LiftMeasurementDevice.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LiftMeasurementDevice.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LiftMeasurementDevice.Builder>- Throws:
IOException
-
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:
getResourceNamein interfaceLiftMeasurementDeviceOrBuilder- 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:
getResourceNameBytesin interfaceLiftMeasurementDeviceOrBuilder- Returns:
- The bytes for resourceName.
-
setResourceName
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
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
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:
hasLiftMeasurementConfigIdin interfaceLiftMeasurementDeviceOrBuilder- 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:
getLiftMeasurementConfigIdin interfaceLiftMeasurementDeviceOrBuilder- Returns:
- The liftMeasurementConfigId.
-
setLiftMeasurementConfigId
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
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:
hasCampaignin interfaceLiftMeasurementDeviceOrBuilder- Returns:
- Whether the campaign field is set.
-
getCampaign
Output only. The campaign resource name.
optional string campaign = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getCampaignin interfaceLiftMeasurementDeviceOrBuilder- 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:
getCampaignBytesin interfaceLiftMeasurementDeviceOrBuilder- Returns:
- The bytes for campaign.
-
setCampaign
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
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
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:
getDeviceValuein interfaceLiftMeasurementDeviceOrBuilder- Returns:
- The enum numeric value on the wire for device.
-
setDeviceValue
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
Output only. The device type.
.google.ads.googleads.v25.enums.DeviceEnum.Device device = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDevicein interfaceLiftMeasurementDeviceOrBuilder- 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
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.
-