Class DeliveryForecastOptions.Builder (0.62.0)

public static final class DeliveryForecastOptions.Builder extends GeneratedMessage.Builder<DeliveryForecastOptions.Builder> implements DeliveryForecastOptionsOrBuilder

Forecasting options for line item delivery forecasts.

Protobuf type google.ads.admanager.v1.DeliveryForecastOptions

Static Methods

getDescriptor()

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

Methods

addAllIgnoredLineItems(Iterable<String> values)

public DeliveryForecastOptions.Builder addAllIgnoredLineItems(Iterable<String> values)

Optional. The resource names of line items to be ignored while performing the delivery simulation. Format: networks/{network_code}/lineItems/{line_item_id}

repeated string ignored_line_items = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
values Iterable<String>

The ignoredLineItems to add.

Returns
Type Description
DeliveryForecastOptions.Builder

This builder for chaining.

addIgnoredLineItems(String value)

public DeliveryForecastOptions.Builder addIgnoredLineItems(String value)

Optional. The resource names of line items to be ignored while performing the delivery simulation. Format: networks/{network_code}/lineItems/{line_item_id}

repeated string ignored_line_items = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The ignoredLineItems to add.

Returns
Type Description
DeliveryForecastOptions.Builder

This builder for chaining.

addIgnoredLineItemsBytes(ByteString value)

public DeliveryForecastOptions.Builder addIgnoredLineItemsBytes(ByteString value)

Optional. The resource names of line items to be ignored while performing the delivery simulation. Format: networks/{network_code}/lineItems/{line_item_id}

repeated string ignored_line_items = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes of the ignoredLineItems to add.

Returns
Type Description
DeliveryForecastOptions.Builder

This builder for chaining.

build()

public DeliveryForecastOptions build()
Returns
Type Description
DeliveryForecastOptions

buildPartial()

public DeliveryForecastOptions buildPartial()
Returns
Type Description
DeliveryForecastOptions

clear()

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

clearIgnoredLineItems()

public DeliveryForecastOptions.Builder clearIgnoredLineItems()

Optional. The resource names of line items to be ignored while performing the delivery simulation. Format: networks/{network_code}/lineItems/{line_item_id}

repeated string ignored_line_items = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
DeliveryForecastOptions.Builder

This builder for chaining.

getDefaultInstanceForType()

public DeliveryForecastOptions getDefaultInstanceForType()
Returns
Type Description
DeliveryForecastOptions

getDescriptorForType()

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

getIgnoredLineItems(int index)

public String getIgnoredLineItems(int index)

Optional. The resource names of line items to be ignored while performing the delivery simulation. Format: networks/{network_code}/lineItems/{line_item_id}

repeated string ignored_line_items = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The ignoredLineItems at the given index.

getIgnoredLineItemsBytes(int index)

public ByteString getIgnoredLineItemsBytes(int index)

Optional. The resource names of line items to be ignored while performing the delivery simulation. Format: networks/{network_code}/lineItems/{line_item_id}

repeated string ignored_line_items = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the ignoredLineItems at the given index.

getIgnoredLineItemsCount()

public int getIgnoredLineItemsCount()

Optional. The resource names of line items to be ignored while performing the delivery simulation. Format: networks/{network_code}/lineItems/{line_item_id}

repeated string ignored_line_items = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of ignoredLineItems.

getIgnoredLineItemsList()

public ProtocolStringList getIgnoredLineItemsList()

Optional. The resource names of line items to be ignored while performing the delivery simulation. Format: networks/{network_code}/lineItems/{line_item_id}

repeated string ignored_line_items = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the ignoredLineItems.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DeliveryForecastOptions other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setIgnoredLineItems(int index, String value)

public DeliveryForecastOptions.Builder setIgnoredLineItems(int index, String value)

Optional. The resource names of line items to be ignored while performing the delivery simulation. Format: networks/{network_code}/lineItems/{line_item_id}

repeated string ignored_line_items = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The ignoredLineItems to set.

Returns
Type Description
DeliveryForecastOptions.Builder

This builder for chaining.