Class ListBreakTemplatesResponse.Builder (0.58.0)

public static final class ListBreakTemplatesResponse.Builder extends GeneratedMessage.Builder<ListBreakTemplatesResponse.Builder> implements ListBreakTemplatesResponseOrBuilder

Response object for ListBreakTemplatesRequest containing matching BreakTemplate objects.

Protobuf type google.ads.admanager.v1.ListBreakTemplatesResponse

Static Methods

getDescriptor()

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

Methods

addAllBreakTemplates(Iterable<? extends BreakTemplate> values)

public ListBreakTemplatesResponse.Builder addAllBreakTemplates(Iterable<? extends BreakTemplate> values)

The BreakTemplate objects from the specified network.

repeated .google.ads.admanager.v1.BreakTemplate break_templates = 1;

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

addBreakTemplates(BreakTemplate value)

public ListBreakTemplatesResponse.Builder addBreakTemplates(BreakTemplate value)

The BreakTemplate objects from the specified network.

repeated .google.ads.admanager.v1.BreakTemplate break_templates = 1;

Parameter
Name Description
value BreakTemplate
Returns
Type Description
ListBreakTemplatesResponse.Builder

addBreakTemplates(BreakTemplate.Builder builderForValue)

public ListBreakTemplatesResponse.Builder addBreakTemplates(BreakTemplate.Builder builderForValue)

The BreakTemplate objects from the specified network.

repeated .google.ads.admanager.v1.BreakTemplate break_templates = 1;

Parameter
Name Description
builderForValue BreakTemplate.Builder
Returns
Type Description
ListBreakTemplatesResponse.Builder

addBreakTemplates(int index, BreakTemplate value)

public ListBreakTemplatesResponse.Builder addBreakTemplates(int index, BreakTemplate value)

The BreakTemplate objects from the specified network.

repeated .google.ads.admanager.v1.BreakTemplate break_templates = 1;

Parameters
Name Description
index int
value BreakTemplate
Returns
Type Description
ListBreakTemplatesResponse.Builder

addBreakTemplates(int index, BreakTemplate.Builder builderForValue)

public ListBreakTemplatesResponse.Builder addBreakTemplates(int index, BreakTemplate.Builder builderForValue)

The BreakTemplate objects from the specified network.

repeated .google.ads.admanager.v1.BreakTemplate break_templates = 1;

Parameters
Name Description
index int
builderForValue BreakTemplate.Builder
Returns
Type Description
ListBreakTemplatesResponse.Builder

addBreakTemplatesBuilder()

public BreakTemplate.Builder addBreakTemplatesBuilder()

The BreakTemplate objects from the specified network.

repeated .google.ads.admanager.v1.BreakTemplate break_templates = 1;

Returns
Type Description
BreakTemplate.Builder

addBreakTemplatesBuilder(int index)

public BreakTemplate.Builder addBreakTemplatesBuilder(int index)

The BreakTemplate objects from the specified network.

repeated .google.ads.admanager.v1.BreakTemplate break_templates = 1;

Parameter
Name Description
index int
Returns
Type Description
BreakTemplate.Builder

build()

public ListBreakTemplatesResponse build()
Returns
Type Description
ListBreakTemplatesResponse

buildPartial()

public ListBreakTemplatesResponse buildPartial()
Returns
Type Description
ListBreakTemplatesResponse

clear()

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

clearBreakTemplates()

public ListBreakTemplatesResponse.Builder clearBreakTemplates()

The BreakTemplate objects from the specified network.

repeated .google.ads.admanager.v1.BreakTemplate break_templates = 1;

Returns
Type Description
ListBreakTemplatesResponse.Builder

clearNextPageToken()

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

This builder for chaining.

clearTotalSize()

public ListBreakTemplatesResponse.Builder clearTotalSize()

Total number of BreakTemplate objects. 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
ListBreakTemplatesResponse.Builder

This builder for chaining.

getBreakTemplates(int index)

public BreakTemplate getBreakTemplates(int index)

The BreakTemplate objects from the specified network.

repeated .google.ads.admanager.v1.BreakTemplate break_templates = 1;

Parameter
Name Description
index int
Returns
Type Description
BreakTemplate

getBreakTemplatesBuilder(int index)

public BreakTemplate.Builder getBreakTemplatesBuilder(int index)

The BreakTemplate objects from the specified network.

repeated .google.ads.admanager.v1.BreakTemplate break_templates = 1;

Parameter
Name Description
index int
Returns
Type Description
BreakTemplate.Builder

getBreakTemplatesBuilderList()

public List<BreakTemplate.Builder> getBreakTemplatesBuilderList()

The BreakTemplate objects from the specified network.

repeated .google.ads.admanager.v1.BreakTemplate break_templates = 1;

Returns
Type Description
List<Builder>

getBreakTemplatesCount()

public int getBreakTemplatesCount()

The BreakTemplate objects from the specified network.

repeated .google.ads.admanager.v1.BreakTemplate break_templates = 1;

Returns
Type Description
int

getBreakTemplatesList()

public List<BreakTemplate> getBreakTemplatesList()

The BreakTemplate objects from the specified network.

repeated .google.ads.admanager.v1.BreakTemplate break_templates = 1;

Returns
Type Description
List<BreakTemplate>

getBreakTemplatesOrBuilder(int index)

public BreakTemplateOrBuilder getBreakTemplatesOrBuilder(int index)

The BreakTemplate objects from the specified network.

repeated .google.ads.admanager.v1.BreakTemplate break_templates = 1;

Parameter
Name Description
index int
Returns
Type Description
BreakTemplateOrBuilder

getBreakTemplatesOrBuilderList()

public List<? extends BreakTemplateOrBuilder> getBreakTemplatesOrBuilderList()

The BreakTemplate objects from the specified network.

repeated .google.ads.admanager.v1.BreakTemplate break_templates = 1;

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

getDefaultInstanceForType()

public ListBreakTemplatesResponse getDefaultInstanceForType()
Returns
Type Description
ListBreakTemplatesResponse

getDescriptorForType()

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

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 BreakTemplate objects. 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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListBreakTemplatesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeBreakTemplates(int index)

public ListBreakTemplatesResponse.Builder removeBreakTemplates(int index)

The BreakTemplate objects from the specified network.

repeated .google.ads.admanager.v1.BreakTemplate break_templates = 1;

Parameter
Name Description
index int
Returns
Type Description
ListBreakTemplatesResponse.Builder

setBreakTemplates(int index, BreakTemplate value)

public ListBreakTemplatesResponse.Builder setBreakTemplates(int index, BreakTemplate value)

The BreakTemplate objects from the specified network.

repeated .google.ads.admanager.v1.BreakTemplate break_templates = 1;

Parameters
Name Description
index int
value BreakTemplate
Returns
Type Description
ListBreakTemplatesResponse.Builder

setBreakTemplates(int index, BreakTemplate.Builder builderForValue)

public ListBreakTemplatesResponse.Builder setBreakTemplates(int index, BreakTemplate.Builder builderForValue)

The BreakTemplate objects from the specified network.

repeated .google.ads.admanager.v1.BreakTemplate break_templates = 1;

Parameters
Name Description
index int
builderForValue BreakTemplate.Builder
Returns
Type Description
ListBreakTemplatesResponse.Builder

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

setTotalSize(int value)

public ListBreakTemplatesResponse.Builder setTotalSize(int value)

Total number of BreakTemplate objects. 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
ListBreakTemplatesResponse.Builder

This builder for chaining.