Class ForecastingLineItem.Builder (0.62.0)

public static final class ForecastingLineItem.Builder extends GeneratedMessage.Builder<ForecastingLineItem.Builder> implements ForecastingLineItemOrBuilder

A LineItem or [ProposalLineItem][] to be forecasted along with an optional override advertiser.

Protobuf type google.ads.admanager.v1.ForecastingLineItem

Static Methods

getDescriptor()

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

Methods

build()

public ForecastingLineItem build()
Returns
Type Description
ForecastingLineItem

buildPartial()

public ForecastingLineItem buildPartial()
Returns
Type Description
ForecastingLineItem

clear()

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

clearAdvertiser()

public ForecastingLineItem.Builder clearAdvertiser()

Optional. The resource name of the advertiser Company for the prospective line item. Format: networks/{network_code}/companies/{company_id}

string advertiser = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ForecastingLineItem.Builder

This builder for chaining.

clearLineItem()

public ForecastingLineItem.Builder clearLineItem()

Optional. The LineItem to be forecasted.

.google.ads.admanager.v1.LineItem line_item = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ForecastingLineItem.Builder

clearLineItemEntry()

public ForecastingLineItem.Builder clearLineItemEntry()
Returns
Type Description
ForecastingLineItem.Builder

getAdvertiser()

public String getAdvertiser()

Optional. The resource name of the advertiser Company for the prospective line item. Format: networks/{network_code}/companies/{company_id}

string advertiser = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The advertiser.

getAdvertiserBytes()

public ByteString getAdvertiserBytes()

Optional. The resource name of the advertiser Company for the prospective line item. Format: networks/{network_code}/companies/{company_id}

string advertiser = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for advertiser.

getDefaultInstanceForType()

public ForecastingLineItem getDefaultInstanceForType()
Returns
Type Description
ForecastingLineItem

getDescriptorForType()

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

getLineItem()

public LineItem getLineItem()

Optional. The LineItem to be forecasted.

.google.ads.admanager.v1.LineItem line_item = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LineItem

The lineItem.

getLineItemBuilder()

public LineItem.Builder getLineItemBuilder()

Optional. The LineItem to be forecasted.

.google.ads.admanager.v1.LineItem line_item = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LineItem.Builder

getLineItemEntryCase()

public ForecastingLineItem.LineItemEntryCase getLineItemEntryCase()
Returns
Type Description
ForecastingLineItem.LineItemEntryCase

getLineItemOrBuilder()

public LineItemOrBuilder getLineItemOrBuilder()

Optional. The LineItem to be forecasted.

.google.ads.admanager.v1.LineItem line_item = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LineItemOrBuilder

hasLineItem()

public boolean hasLineItem()

Optional. The LineItem to be forecasted.

.google.ads.admanager.v1.LineItem line_item = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the lineItem field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ForecastingLineItem other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLineItem(LineItem value)

public ForecastingLineItem.Builder mergeLineItem(LineItem value)

Optional. The LineItem to be forecasted.

.google.ads.admanager.v1.LineItem line_item = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value LineItem
Returns
Type Description
ForecastingLineItem.Builder

setAdvertiser(String value)

public ForecastingLineItem.Builder setAdvertiser(String value)

Optional. The resource name of the advertiser Company for the prospective line item. Format: networks/{network_code}/companies/{company_id}

string advertiser = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The advertiser to set.

Returns
Type Description
ForecastingLineItem.Builder

This builder for chaining.

setAdvertiserBytes(ByteString value)

public ForecastingLineItem.Builder setAdvertiserBytes(ByteString value)

Optional. The resource name of the advertiser Company for the prospective line item. Format: networks/{network_code}/companies/{company_id}

string advertiser = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for advertiser to set.

Returns
Type Description
ForecastingLineItem.Builder

This builder for chaining.

setLineItem(LineItem value)

public ForecastingLineItem.Builder setLineItem(LineItem value)

Optional. The LineItem to be forecasted.

.google.ads.admanager.v1.LineItem line_item = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value LineItem
Returns
Type Description
ForecastingLineItem.Builder

setLineItem(LineItem.Builder builderForValue)

public ForecastingLineItem.Builder setLineItem(LineItem.Builder builderForValue)

Optional. The LineItem to be forecasted.

.google.ads.admanager.v1.LineItem line_item = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue LineItem.Builder
Returns
Type Description
ForecastingLineItem.Builder