Class ListLineItemsResponse.Builder (0.4.0)

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

Response object for ListLineItemsRequest containing matching LineItem resources.

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 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 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 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 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 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 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 from the specified network.

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

Parameter
Name Description
index int
Returns
Type Description
LineItem.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListLineItemsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListLineItemsResponse.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public ListLineItemsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListLineItemsResponse.Builder
Overrides

clearLineItems()

public ListLineItemsResponse.Builder clearLineItems()

The LineItem 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.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListLineItemsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListLineItemsResponse.Builder
Overrides

clearTotalSize()

public ListLineItemsResponse.Builder clearTotalSize()

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

total_size will not 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.

clone()

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

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 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 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 from the specified network.

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

Returns
Type Description
List<Builder>

getLineItemsCount()

public int getLineItemsCount()

The LineItem from the specified network.

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

Returns
Type Description
int

getLineItemsList()

public List<LineItem> getLineItemsList()

The LineItem 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 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 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 LineItems. If a filter was included in the request, this reflects the total number after the filtering is applied.

total_size will not 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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListLineItemsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListLineItemsResponse.Builder
Overrides

removeLineItems(int index)

public ListLineItemsResponse.Builder removeLineItems(int index)

The LineItem from the specified network.

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

Parameter
Name Description
index int
Returns
Type Description
ListLineItemsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListLineItemsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListLineItemsResponse.Builder
Overrides

setLineItems(int index, LineItem value)

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

The LineItem 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 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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ListLineItemsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListLineItemsResponse.Builder
Overrides

setTotalSize(int value)

public ListLineItemsResponse.Builder setTotalSize(int value)

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

total_size will not 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.

setUnknownFields(UnknownFieldSet unknownFields)

public final ListLineItemsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListLineItemsResponse.Builder
Overrides