Class ListLineItemTemplatesResponse.Builder (0.62.0)

public static final class ListLineItemTemplatesResponse.Builder extends GeneratedMessage.Builder<ListLineItemTemplatesResponse.Builder> implements ListLineItemTemplatesResponseOrBuilder

Response object for ListLineItemTemplatesRequest containing matching LineItemTemplate objects.

Protobuf type google.ads.admanager.v1.ListLineItemTemplatesResponse

Static Methods

getDescriptor()

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

Methods

addAllLineItemTemplates(Iterable<? extends LineItemTemplate> values)

public ListLineItemTemplatesResponse.Builder addAllLineItemTemplates(Iterable<? extends LineItemTemplate> values)

The LineItemTemplate objects from the specified network.

repeated .google.ads.admanager.v1.LineItemTemplate line_item_templates = 1;

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

addLineItemTemplates(LineItemTemplate value)

public ListLineItemTemplatesResponse.Builder addLineItemTemplates(LineItemTemplate value)

The LineItemTemplate objects from the specified network.

repeated .google.ads.admanager.v1.LineItemTemplate line_item_templates = 1;

Parameter
Name Description
value LineItemTemplate
Returns
Type Description
ListLineItemTemplatesResponse.Builder

addLineItemTemplates(LineItemTemplate.Builder builderForValue)

public ListLineItemTemplatesResponse.Builder addLineItemTemplates(LineItemTemplate.Builder builderForValue)

The LineItemTemplate objects from the specified network.

repeated .google.ads.admanager.v1.LineItemTemplate line_item_templates = 1;

Parameter
Name Description
builderForValue LineItemTemplate.Builder
Returns
Type Description
ListLineItemTemplatesResponse.Builder

addLineItemTemplates(int index, LineItemTemplate value)

public ListLineItemTemplatesResponse.Builder addLineItemTemplates(int index, LineItemTemplate value)

The LineItemTemplate objects from the specified network.

repeated .google.ads.admanager.v1.LineItemTemplate line_item_templates = 1;

Parameters
Name Description
index int
value LineItemTemplate
Returns
Type Description
ListLineItemTemplatesResponse.Builder

addLineItemTemplates(int index, LineItemTemplate.Builder builderForValue)

public ListLineItemTemplatesResponse.Builder addLineItemTemplates(int index, LineItemTemplate.Builder builderForValue)

The LineItemTemplate objects from the specified network.

repeated .google.ads.admanager.v1.LineItemTemplate line_item_templates = 1;

Parameters
Name Description
index int
builderForValue LineItemTemplate.Builder
Returns
Type Description
ListLineItemTemplatesResponse.Builder

addLineItemTemplatesBuilder()

public LineItemTemplate.Builder addLineItemTemplatesBuilder()

The LineItemTemplate objects from the specified network.

repeated .google.ads.admanager.v1.LineItemTemplate line_item_templates = 1;

Returns
Type Description
LineItemTemplate.Builder

addLineItemTemplatesBuilder(int index)

public LineItemTemplate.Builder addLineItemTemplatesBuilder(int index)

The LineItemTemplate objects from the specified network.

repeated .google.ads.admanager.v1.LineItemTemplate line_item_templates = 1;

Parameter
Name Description
index int
Returns
Type Description
LineItemTemplate.Builder

build()

public ListLineItemTemplatesResponse build()
Returns
Type Description
ListLineItemTemplatesResponse

buildPartial()

public ListLineItemTemplatesResponse buildPartial()
Returns
Type Description
ListLineItemTemplatesResponse

clear()

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

clearLineItemTemplates()

public ListLineItemTemplatesResponse.Builder clearLineItemTemplates()

The LineItemTemplate objects from the specified network.

repeated .google.ads.admanager.v1.LineItemTemplate line_item_templates = 1;

Returns
Type Description
ListLineItemTemplatesResponse.Builder

clearNextPageToken()

public ListLineItemTemplatesResponse.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
ListLineItemTemplatesResponse.Builder

This builder for chaining.

clearTotalSize()

public ListLineItemTemplatesResponse.Builder clearTotalSize()

Total number of LineItemTemplate 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
ListLineItemTemplatesResponse.Builder

This builder for chaining.

getDefaultInstanceForType()

public ListLineItemTemplatesResponse getDefaultInstanceForType()
Returns
Type Description
ListLineItemTemplatesResponse

getDescriptorForType()

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

getLineItemTemplates(int index)

public LineItemTemplate getLineItemTemplates(int index)

The LineItemTemplate objects from the specified network.

repeated .google.ads.admanager.v1.LineItemTemplate line_item_templates = 1;

Parameter
Name Description
index int
Returns
Type Description
LineItemTemplate

getLineItemTemplatesBuilder(int index)

public LineItemTemplate.Builder getLineItemTemplatesBuilder(int index)

The LineItemTemplate objects from the specified network.

repeated .google.ads.admanager.v1.LineItemTemplate line_item_templates = 1;

Parameter
Name Description
index int
Returns
Type Description
LineItemTemplate.Builder

getLineItemTemplatesBuilderList()

public List<LineItemTemplate.Builder> getLineItemTemplatesBuilderList()

The LineItemTemplate objects from the specified network.

repeated .google.ads.admanager.v1.LineItemTemplate line_item_templates = 1;

Returns
Type Description
List<Builder>

getLineItemTemplatesCount()

public int getLineItemTemplatesCount()

The LineItemTemplate objects from the specified network.

repeated .google.ads.admanager.v1.LineItemTemplate line_item_templates = 1;

Returns
Type Description
int

getLineItemTemplatesList()

public List<LineItemTemplate> getLineItemTemplatesList()

The LineItemTemplate objects from the specified network.

repeated .google.ads.admanager.v1.LineItemTemplate line_item_templates = 1;

Returns
Type Description
List<LineItemTemplate>

getLineItemTemplatesOrBuilder(int index)

public LineItemTemplateOrBuilder getLineItemTemplatesOrBuilder(int index)

The LineItemTemplate objects from the specified network.

repeated .google.ads.admanager.v1.LineItemTemplate line_item_templates = 1;

Parameter
Name Description
index int
Returns
Type Description
LineItemTemplateOrBuilder

getLineItemTemplatesOrBuilderList()

public List<? extends LineItemTemplateOrBuilder> getLineItemTemplatesOrBuilderList()

The LineItemTemplate objects from the specified network.

repeated .google.ads.admanager.v1.LineItemTemplate line_item_templates = 1;

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

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 LineItemTemplate 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(ListLineItemTemplatesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeLineItemTemplates(int index)

public ListLineItemTemplatesResponse.Builder removeLineItemTemplates(int index)

The LineItemTemplate objects from the specified network.

repeated .google.ads.admanager.v1.LineItemTemplate line_item_templates = 1;

Parameter
Name Description
index int
Returns
Type Description
ListLineItemTemplatesResponse.Builder

setLineItemTemplates(int index, LineItemTemplate value)

public ListLineItemTemplatesResponse.Builder setLineItemTemplates(int index, LineItemTemplate value)

The LineItemTemplate objects from the specified network.

repeated .google.ads.admanager.v1.LineItemTemplate line_item_templates = 1;

Parameters
Name Description
index int
value LineItemTemplate
Returns
Type Description
ListLineItemTemplatesResponse.Builder

setLineItemTemplates(int index, LineItemTemplate.Builder builderForValue)

public ListLineItemTemplatesResponse.Builder setLineItemTemplates(int index, LineItemTemplate.Builder builderForValue)

The LineItemTemplate objects from the specified network.

repeated .google.ads.admanager.v1.LineItemTemplate line_item_templates = 1;

Parameters
Name Description
index int
builderForValue LineItemTemplate.Builder
Returns
Type Description
ListLineItemTemplatesResponse.Builder

setNextPageToken(String value)

public ListLineItemTemplatesResponse.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
ListLineItemTemplatesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListLineItemTemplatesResponse.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
ListLineItemTemplatesResponse.Builder

This builder for chaining.

setTotalSize(int value)

public ListLineItemTemplatesResponse.Builder setTotalSize(int value)

Total number of LineItemTemplate 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
ListLineItemTemplatesResponse.Builder

This builder for chaining.