Class ExistingLineItemList.Builder (0.62.0)

public static final class ExistingLineItemList.Builder extends GeneratedMessage.Builder<ExistingLineItemList.Builder> implements ExistingLineItemListOrBuilder

ExistingLineItemList is a wrapper around a repeated field of string representing a LineItem resource name.

Protobuf type google.ads.admanager.v1.ExistingLineItemList

Static Methods

getDescriptor()

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

Methods

addAllLineItems(Iterable<String> values)

public ExistingLineItemList.Builder addAllLineItems(Iterable<String> values)

Required. The list of LineItem resource names to be forecasted. Format: networks/{network_code}/lineItems/{line_item_id}

repeated string line_items = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
values Iterable<String>

The lineItems to add.

Returns
Type Description
ExistingLineItemList.Builder

This builder for chaining.

addLineItems(String value)

public ExistingLineItemList.Builder addLineItems(String value)

Required. The list of LineItem resource names to be forecasted. Format: networks/{network_code}/lineItems/{line_item_id}

repeated string line_items = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The lineItems to add.

Returns
Type Description
ExistingLineItemList.Builder

This builder for chaining.

addLineItemsBytes(ByteString value)

public ExistingLineItemList.Builder addLineItemsBytes(ByteString value)

Required. The list of LineItem resource names to be forecasted. Format: networks/{network_code}/lineItems/{line_item_id}

repeated string line_items = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes of the lineItems to add.

Returns
Type Description
ExistingLineItemList.Builder

This builder for chaining.

build()

public ExistingLineItemList build()
Returns
Type Description
ExistingLineItemList

buildPartial()

public ExistingLineItemList buildPartial()
Returns
Type Description
ExistingLineItemList

clear()

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

clearLineItems()

public ExistingLineItemList.Builder clearLineItems()

Required. The list of LineItem resource names to be forecasted. Format: networks/{network_code}/lineItems/{line_item_id}

repeated string line_items = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ExistingLineItemList.Builder

This builder for chaining.

getDefaultInstanceForType()

public ExistingLineItemList getDefaultInstanceForType()
Returns
Type Description
ExistingLineItemList

getDescriptorForType()

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

getLineItems(int index)

public String getLineItems(int index)

Required. The list of LineItem resource names to be forecasted. Format: networks/{network_code}/lineItems/{line_item_id}

repeated string line_items = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The lineItems at the given index.

getLineItemsBytes(int index)

public ByteString getLineItemsBytes(int index)

Required. The list of LineItem resource names to be forecasted. Format: networks/{network_code}/lineItems/{line_item_id}

repeated string line_items = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the lineItems at the given index.

getLineItemsCount()

public int getLineItemsCount()

Required. The list of LineItem resource names to be forecasted. Format: networks/{network_code}/lineItems/{line_item_id}

repeated string line_items = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of lineItems.

getLineItemsList()

public ProtocolStringList getLineItemsList()

Required. The list of LineItem resource names to be forecasted. Format: networks/{network_code}/lineItems/{line_item_id}

repeated string line_items = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the lineItems.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExistingLineItemList other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setLineItems(int index, String value)

public ExistingLineItemList.Builder setLineItems(int index, String value)

Required. The list of LineItem resource names to be forecasted. Format: networks/{network_code}/lineItems/{line_item_id}

repeated string line_items = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The lineItems to set.

Returns
Type Description
ExistingLineItemList.Builder

This builder for chaining.