Class LineItemDealInfo.Builder (0.54.0)

public static final class LineItemDealInfo.Builder extends GeneratedMessage.Builder<LineItemDealInfo.Builder> implements LineItemDealInfoOrBuilder

Data transfer object for the exchange deal info of a line item.

Protobuf type google.ads.admanager.v1.LineItemDealInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public LineItemDealInfo build()
Returns
Type Description
LineItemDealInfo

buildPartial()

public LineItemDealInfo buildPartial()
Returns
Type Description
LineItemDealInfo

clear()

public LineItemDealInfo.Builder clear()
Returns
Type Description
LineItemDealInfo.Builder
Overrides

clearExternalDealId()

public LineItemDealInfo.Builder clearExternalDealId()

Optional. The external deal ID shared between seller and buyer. This field is only present if the deal has been finalized.

optional int64 external_deal_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LineItemDealInfo.Builder

This builder for chaining.

getDefaultInstanceForType()

public LineItemDealInfo getDefaultInstanceForType()
Returns
Type Description
LineItemDealInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExternalDealId()

public long getExternalDealId()

Optional. The external deal ID shared between seller and buyer. This field is only present if the deal has been finalized.

optional int64 external_deal_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The externalDealId.

hasExternalDealId()

public boolean hasExternalDealId()

Optional. The external deal ID shared between seller and buyer. This field is only present if the deal has been finalized.

optional int64 external_deal_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the externalDealId field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LineItemDealInfo other)

public LineItemDealInfo.Builder mergeFrom(LineItemDealInfo other)
Parameter
Name Description
other LineItemDealInfo
Returns
Type Description
LineItemDealInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LineItemDealInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LineItemDealInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LineItemDealInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LineItemDealInfo.Builder
Overrides

setExternalDealId(long value)

public LineItemDealInfo.Builder setExternalDealId(long value)

Optional. The external deal ID shared between seller and buyer. This field is only present if the deal has been finalized.

optional int64 external_deal_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The externalDealId to set.

Returns
Type Description
LineItemDealInfo.Builder

This builder for chaining.