Class ListAdRulesResponse.Builder (0.54.0)

public static final class ListAdRulesResponse.Builder extends GeneratedMessage.Builder<ListAdRulesResponse.Builder> implements ListAdRulesResponseOrBuilder

Response object for ListAdRulesRequest containing matching AdRule objects.

Protobuf type google.ads.admanager.v1.ListAdRulesResponse

Static Methods

getDescriptor()

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

Methods

addAdRules(AdRule value)

public ListAdRulesResponse.Builder addAdRules(AdRule value)

The AdRule objects from the specified network.

repeated .google.ads.admanager.v1.AdRule ad_rules = 1;

Parameter
Name Description
value AdRule
Returns
Type Description
ListAdRulesResponse.Builder

addAdRules(AdRule.Builder builderForValue)

public ListAdRulesResponse.Builder addAdRules(AdRule.Builder builderForValue)

The AdRule objects from the specified network.

repeated .google.ads.admanager.v1.AdRule ad_rules = 1;

Parameter
Name Description
builderForValue AdRule.Builder
Returns
Type Description
ListAdRulesResponse.Builder

addAdRules(int index, AdRule value)

public ListAdRulesResponse.Builder addAdRules(int index, AdRule value)

The AdRule objects from the specified network.

repeated .google.ads.admanager.v1.AdRule ad_rules = 1;

Parameters
Name Description
index int
value AdRule
Returns
Type Description
ListAdRulesResponse.Builder

addAdRules(int index, AdRule.Builder builderForValue)

public ListAdRulesResponse.Builder addAdRules(int index, AdRule.Builder builderForValue)

The AdRule objects from the specified network.

repeated .google.ads.admanager.v1.AdRule ad_rules = 1;

Parameters
Name Description
index int
builderForValue AdRule.Builder
Returns
Type Description
ListAdRulesResponse.Builder

addAdRulesBuilder()

public AdRule.Builder addAdRulesBuilder()

The AdRule objects from the specified network.

repeated .google.ads.admanager.v1.AdRule ad_rules = 1;

Returns
Type Description
AdRule.Builder

addAdRulesBuilder(int index)

public AdRule.Builder addAdRulesBuilder(int index)

The AdRule objects from the specified network.

repeated .google.ads.admanager.v1.AdRule ad_rules = 1;

Parameter
Name Description
index int
Returns
Type Description
AdRule.Builder

addAllAdRules(Iterable<? extends AdRule> values)

public ListAdRulesResponse.Builder addAllAdRules(Iterable<? extends AdRule> values)

The AdRule objects from the specified network.

repeated .google.ads.admanager.v1.AdRule ad_rules = 1;

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

build()

public ListAdRulesResponse build()
Returns
Type Description
ListAdRulesResponse

buildPartial()

public ListAdRulesResponse buildPartial()
Returns
Type Description
ListAdRulesResponse

clear()

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

clearAdRules()

public ListAdRulesResponse.Builder clearAdRules()

The AdRule objects from the specified network.

repeated .google.ads.admanager.v1.AdRule ad_rules = 1;

Returns
Type Description
ListAdRulesResponse.Builder

clearNextPageToken()

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

This builder for chaining.

clearTotalSize()

public ListAdRulesResponse.Builder clearTotalSize()

Total number of AdRule 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
ListAdRulesResponse.Builder

This builder for chaining.

getAdRules(int index)

public AdRule getAdRules(int index)

The AdRule objects from the specified network.

repeated .google.ads.admanager.v1.AdRule ad_rules = 1;

Parameter
Name Description
index int
Returns
Type Description
AdRule

getAdRulesBuilder(int index)

public AdRule.Builder getAdRulesBuilder(int index)

The AdRule objects from the specified network.

repeated .google.ads.admanager.v1.AdRule ad_rules = 1;

Parameter
Name Description
index int
Returns
Type Description
AdRule.Builder

getAdRulesBuilderList()

public List<AdRule.Builder> getAdRulesBuilderList()

The AdRule objects from the specified network.

repeated .google.ads.admanager.v1.AdRule ad_rules = 1;

Returns
Type Description
List<Builder>

getAdRulesCount()

public int getAdRulesCount()

The AdRule objects from the specified network.

repeated .google.ads.admanager.v1.AdRule ad_rules = 1;

Returns
Type Description
int

getAdRulesList()

public List<AdRule> getAdRulesList()

The AdRule objects from the specified network.

repeated .google.ads.admanager.v1.AdRule ad_rules = 1;

Returns
Type Description
List<AdRule>

getAdRulesOrBuilder(int index)

public AdRuleOrBuilder getAdRulesOrBuilder(int index)

The AdRule objects from the specified network.

repeated .google.ads.admanager.v1.AdRule ad_rules = 1;

Parameter
Name Description
index int
Returns
Type Description
AdRuleOrBuilder

getAdRulesOrBuilderList()

public List<? extends AdRuleOrBuilder> getAdRulesOrBuilderList()

The AdRule objects from the specified network.

repeated .google.ads.admanager.v1.AdRule ad_rules = 1;

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

getDefaultInstanceForType()

public ListAdRulesResponse getDefaultInstanceForType()
Returns
Type Description
ListAdRulesResponse

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 AdRule 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(ListAdRulesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeAdRules(int index)

public ListAdRulesResponse.Builder removeAdRules(int index)

The AdRule objects from the specified network.

repeated .google.ads.admanager.v1.AdRule ad_rules = 1;

Parameter
Name Description
index int
Returns
Type Description
ListAdRulesResponse.Builder

setAdRules(int index, AdRule value)

public ListAdRulesResponse.Builder setAdRules(int index, AdRule value)

The AdRule objects from the specified network.

repeated .google.ads.admanager.v1.AdRule ad_rules = 1;

Parameters
Name Description
index int
value AdRule
Returns
Type Description
ListAdRulesResponse.Builder

setAdRules(int index, AdRule.Builder builderForValue)

public ListAdRulesResponse.Builder setAdRules(int index, AdRule.Builder builderForValue)

The AdRule objects from the specified network.

repeated .google.ads.admanager.v1.AdRule ad_rules = 1;

Parameters
Name Description
index int
builderForValue AdRule.Builder
Returns
Type Description
ListAdRulesResponse.Builder

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

setTotalSize(int value)

public ListAdRulesResponse.Builder setTotalSize(int value)

Total number of AdRule 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
ListAdRulesResponse.Builder

This builder for chaining.