Class ListCustomTargetingKeysResponse.Builder (0.1.0)

public static final class ListCustomTargetingKeysResponse.Builder extends GeneratedMessageV3.Builder<ListCustomTargetingKeysResponse.Builder> implements ListCustomTargetingKeysResponseOrBuilder

Response object for ListCustomTargetingKeysRequest containing matching CustomTargetingKey objects.

Protobuf type google.ads.admanager.v1.ListCustomTargetingKeysResponse

Static Methods

getDescriptor()

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

Methods

addAllCustomTargetingKeys(Iterable<? extends CustomTargetingKey> values)

public ListCustomTargetingKeysResponse.Builder addAllCustomTargetingKeys(Iterable<? extends CustomTargetingKey> values)

The CustomTargetingKey objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1;

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

addCustomTargetingKeys(CustomTargetingKey value)

public ListCustomTargetingKeysResponse.Builder addCustomTargetingKeys(CustomTargetingKey value)

The CustomTargetingKey objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1;

Parameter
Name Description
value CustomTargetingKey
Returns
Type Description
ListCustomTargetingKeysResponse.Builder

addCustomTargetingKeys(CustomTargetingKey.Builder builderForValue)

public ListCustomTargetingKeysResponse.Builder addCustomTargetingKeys(CustomTargetingKey.Builder builderForValue)

The CustomTargetingKey objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1;

Parameter
Name Description
builderForValue CustomTargetingKey.Builder
Returns
Type Description
ListCustomTargetingKeysResponse.Builder

addCustomTargetingKeys(int index, CustomTargetingKey value)

public ListCustomTargetingKeysResponse.Builder addCustomTargetingKeys(int index, CustomTargetingKey value)

The CustomTargetingKey objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1;

Parameters
Name Description
index int
value CustomTargetingKey
Returns
Type Description
ListCustomTargetingKeysResponse.Builder

addCustomTargetingKeys(int index, CustomTargetingKey.Builder builderForValue)

public ListCustomTargetingKeysResponse.Builder addCustomTargetingKeys(int index, CustomTargetingKey.Builder builderForValue)

The CustomTargetingKey objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1;

Parameters
Name Description
index int
builderForValue CustomTargetingKey.Builder
Returns
Type Description
ListCustomTargetingKeysResponse.Builder

addCustomTargetingKeysBuilder()

public CustomTargetingKey.Builder addCustomTargetingKeysBuilder()

The CustomTargetingKey objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1;

Returns
Type Description
CustomTargetingKey.Builder

addCustomTargetingKeysBuilder(int index)

public CustomTargetingKey.Builder addCustomTargetingKeysBuilder(int index)

The CustomTargetingKey objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomTargetingKey.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListCustomTargetingKeysResponse build()
Returns
Type Description
ListCustomTargetingKeysResponse

buildPartial()

public ListCustomTargetingKeysResponse buildPartial()
Returns
Type Description
ListCustomTargetingKeysResponse

clear()

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

clearCustomTargetingKeys()

public ListCustomTargetingKeysResponse.Builder clearCustomTargetingKeys()

The CustomTargetingKey objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1;

Returns
Type Description
ListCustomTargetingKeysResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalSize()

public ListCustomTargetingKeysResponse.Builder clearTotalSize()

Total number of CustomTargetingKey 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
ListCustomTargetingKeysResponse.Builder

This builder for chaining.

clone()

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

getCustomTargetingKeys(int index)

public CustomTargetingKey getCustomTargetingKeys(int index)

The CustomTargetingKey objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomTargetingKey

getCustomTargetingKeysBuilder(int index)

public CustomTargetingKey.Builder getCustomTargetingKeysBuilder(int index)

The CustomTargetingKey objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomTargetingKey.Builder

getCustomTargetingKeysBuilderList()

public List<CustomTargetingKey.Builder> getCustomTargetingKeysBuilderList()

The CustomTargetingKey objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1;

Returns
Type Description
List<Builder>

getCustomTargetingKeysCount()

public int getCustomTargetingKeysCount()

The CustomTargetingKey objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1;

Returns
Type Description
int

getCustomTargetingKeysList()

public List<CustomTargetingKey> getCustomTargetingKeysList()

The CustomTargetingKey objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1;

Returns
Type Description
List<CustomTargetingKey>

getCustomTargetingKeysOrBuilder(int index)

public CustomTargetingKeyOrBuilder getCustomTargetingKeysOrBuilder(int index)

The CustomTargetingKey objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomTargetingKeyOrBuilder

getCustomTargetingKeysOrBuilderList()

public List<? extends CustomTargetingKeyOrBuilder> getCustomTargetingKeysOrBuilderList()

The CustomTargetingKey objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1;

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

getDefaultInstanceForType()

public ListCustomTargetingKeysResponse getDefaultInstanceForType()
Returns
Type Description
ListCustomTargetingKeysResponse

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 CustomTargetingKey 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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListCustomTargetingKeysResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCustomTargetingKeys(int index)

public ListCustomTargetingKeysResponse.Builder removeCustomTargetingKeys(int index)

The CustomTargetingKey objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1;

Parameter
Name Description
index int
Returns
Type Description
ListCustomTargetingKeysResponse.Builder

setCustomTargetingKeys(int index, CustomTargetingKey value)

public ListCustomTargetingKeysResponse.Builder setCustomTargetingKeys(int index, CustomTargetingKey value)

The CustomTargetingKey objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1;

Parameters
Name Description
index int
value CustomTargetingKey
Returns
Type Description
ListCustomTargetingKeysResponse.Builder

setCustomTargetingKeys(int index, CustomTargetingKey.Builder builderForValue)

public ListCustomTargetingKeysResponse.Builder setCustomTargetingKeys(int index, CustomTargetingKey.Builder builderForValue)

The CustomTargetingKey objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1;

Parameters
Name Description
index int
builderForValue CustomTargetingKey.Builder
Returns
Type Description
ListCustomTargetingKeysResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

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

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

setTotalSize(int value)

public ListCustomTargetingKeysResponse.Builder setTotalSize(int value)

Total number of CustomTargetingKey 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
ListCustomTargetingKeysResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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