Class ListLineItemsResponse.Builder (0.44.0)

public static final class ListLineItemsResponse.Builder extends GeneratedMessage.Builder<ListLineItemsResponse.Builder> implements ListLineItemsResponseOrBuilder

Response object for ListLineItemsRequest containing matching LineItem objects.

Protobuf type google.ads.admanager.v1.ListLineItemsResponse

Static Methods

getDescriptor()

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

Methods

addAllLineItems(Iterable<? extends LineItem> values)

public ListLineItemsResponse.Builder addAllLineItems(Iterable<? extends LineItem> values)

The LineItem objects from the specified network.

repeated .google.ads.admanager.v1.LineItem line_items = 1;

Parameter
Name Description
values Iterable<? extends com.google.ads.admanager.v1.LineItem>
Returns
Type Description
ListLineItemsResponse.Builder

addLineItems(LineItem value)

public ListLineItemsResponse.Builder addLineItems(LineItem value)

The LineItem objects from the specified network.

repeated .google.ads.admanager.v1.LineItem line_items = 1;

Parameter
Name Description
value LineItem
Returns
Type Description
ListLineItemsResponse.Builder

addLineItems(LineItem.Builder builderForValue)

public ListLineItemsResponse.Builder addLineItems(LineItem.Builder builderForValue)

The LineItem objects from the specified network.

repeated .google.ads.admanager.v1.LineItem line_items = 1;

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

addLineItems(int index, LineItem value)

public ListLineItemsResponse.Builder addLineItems(int index, LineItem value)

The LineItem objects from the specified network.

repeated .google.ads.admanager.v1.LineItem line_items = 1;

Parameters
Name Description
index int
value LineItem
Returns
Type Description
ListLineItemsResponse.Builder

addLineItems(int index, LineItem.Builder builderForValue)

public ListLineItemsResponse.Builder addLineItems(int index, LineItem.Builder builderForValue)

The LineItem objects from the specified network.

repeated .google.ads.admanager.v1.LineItem line_items = 1;

Parameters
Name Description
index int
builderForValue LineItem.Builder
Returns
Type Description
ListLineItemsResponse.Builder

addLineItemsBuilder()

public LineItem.Builder addLineItemsBuilder()

The LineItem objects from the specified network.

repeated .google.ads.admanager.v1.LineItem line_items = 1;

Returns
Type Description
LineItem.Builder

addLineItemsBuilder(int index)

public LineItem.Builder addLineItemsBuilder(int index)

The LineItem objects from the specified network.

repeated .google.ads.admanager.v1.LineItem line_items = 1;

Parameter
Name Description
index int
Returns
Type Description
LineItem.Builder

build()

public ListLineItemsResponse build()
Returns
Type Description
ListLineItemsResponse

buildPartial()

public ListLineItemsResponse buildPartial()
Returns
Type Description
ListLineItemsResponse

clear()

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

clearLineItems()

public ListLineItemsResponse.Builder clearLineItems()

The LineItem objects from the specified network.

repeated .google.ads.admanager.v1.LineItem line_items = 1;

Returns
Type Description
ListLineItemsResponse.Builder

clearNextPageToken()

public ListLineItemsResponse.Builder clearNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ListLineItemsResponse.Builder

This builder for chaining.

clearTotalSize()

public ListLineItemsResponse.Builder clearTotalSize()

Total number of LineItem objects. If a filter was included in the request, this reflects the total number after the filtering is applied.

total_size won't be calculated in the response unless it has been included in a response field mask. The response field mask can be provided to the method by using the URL parameter $fields or fields, or by using the HTTP/gRPC header X-Goog-FieldMask.

For more information, see https://developers.google.com/ad-manager/api/beta/field-masks

int32 total_size = 3;

Returns
Type Description
ListLineItemsResponse.Builder

This builder for chaining.

getDefaultInstanceForType()

public ListLineItemsResponse getDefaultInstanceForType()
Returns
Type Description
ListLineItemsResponse

getDescriptorForType()

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

getLineItems(int index)

public LineItem getLineItems(int index)

The LineItem objects from the specified network.

repeated .google.ads.admanager.v1.LineItem line_items = 1;

Parameter
Name Description
index int
Returns
Type Description
LineItem

getLineItemsBuilder(int index)

public LineItem.Builder getLineItemsBuilder(int index)

The LineItem objects from the specified network.

repeated .google.ads.admanager.v1.LineItem line_items = 1;

Parameter
Name Description
index int
Returns
Type Description
LineItem.Builder

getLineItemsBuilderList()

public List<LineItem.Builder> getLineItemsBuilderList()

The LineItem objects from the specified network.

repeated .google.ads.admanager.v1.LineItem line_items = 1;

Returns
Type Description
List<Builder>

getLineItemsCount()

public int getLineItemsCount()

The LineItem objects from the specified network.

repeated .google.ads.admanager.v1.LineItem line_items = 1;

Returns
Type Description
int

getLineItemsList()

public List<LineItem> getLineItemsList()

The LineItem objects from the specified network.

repeated .google.ads.admanager.v1.LineItem line_items = 1;

Returns
Type Description
List<LineItem>

getLineItemsOrBuilder(int index)

public LineItemOrBuilder getLineItemsOrBuilder(int index)

The LineItem objects from the specified network.

repeated .google.ads.admanager.v1.LineItem line_items = 1;

Parameter
Name Description
index int
Returns
Type Description
LineItemOrBuilder

getLineItemsOrBuilderList()

public List<? extends LineItemOrBuilder> getLineItemsOrBuilderList()

The LineItem objects from the specified network.

repeated .google.ads.admanager.v1.LineItem line_items = 1;

Returns
Type Description
List<? extends com.google.ads.admanager.v1.LineItemOrBuilder>

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getTotalSize()

public int getTotalSize()

Total number of LineItem objects. If a filter was included in the request, this reflects the total number after the filtering is applied.

total_size won't be calculated in the response unless it has been included in a response field mask. The response field mask can be provided to the method by using the URL parameter $fields or fields, or by using the HTTP/gRPC header X-Goog-FieldMask.

For more information, see https://developers.google.com/ad-manager/api/beta/field-masks

int32 total_size = 3;

Returns
Type Description
int

The totalSize.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListLineItemsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeLineItems(int index)

public ListLineItemsResponse.Builder removeLineItems(int index)

The LineItem objects from the specified network.

repeated .google.ads.admanager.v1.LineItem line_items = 1;

Parameter
Name Description
index int
Returns
Type Description
ListLineItemsResponse.Builder

setLineItems(int index, LineItem value)

public ListLineItemsResponse.Builder setLineItems(int index, LineItem value)

The LineItem objects from the specified network.

repeated .google.ads.admanager.v1.LineItem line_items = 1;

Parameters
Name Description
index int
value LineItem
Returns
Type Description
ListLineItemsResponse.Builder

setLineItems(int index, LineItem.Builder builderForValue)

public ListLineItemsResponse.Builder setLineItems(int index, LineItem.Builder builderForValue)

The LineItem objects from the specified network.

repeated .google.ads.admanager.v1.LineItem line_items = 1;

Parameters
Name Description
index int
builderForValue LineItem.Builder
Returns
Type Description
ListLineItemsResponse.Builder

setNextPageToken(String value)

public ListLineItemsResponse.Builder setNextPageToken(String value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListLineItemsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListLineItemsResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListLineItemsResponse.Builder

This builder for chaining.

setTotalSize(int value)

public ListLineItemsResponse.Builder setTotalSize(int value)

Total number of LineItem objects. If a filter was included in the request, this reflects the total number after the filtering is applied.

total_size won't be calculated in the response unless it has been included in a response field mask. The response field mask can be provided to the method by using the URL parameter $fields or fields, or by using the HTTP/gRPC header X-Goog-FieldMask.

For more information, see https://developers.google.com/ad-manager/api/beta/field-masks

int32 total_size = 3;

Parameter
Name Description
value int

The totalSize to set.

Returns
Type Description
ListLineItemsResponse.Builder

This builder for chaining.