Class ListCustomTargetingValuesResponse.Builder (0.14.0)

public static final class ListCustomTargetingValuesResponse.Builder extends GeneratedMessageV3.Builder<ListCustomTargetingValuesResponse.Builder> implements ListCustomTargetingValuesResponseOrBuilder

Response object for ListCustomTargetingValuesRequest containing matching CustomTargetingValue objects.

Protobuf type google.ads.admanager.v1.ListCustomTargetingValuesResponse

Static Methods

getDescriptor()

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

Methods

addAllCustomTargetingValues(Iterable<? extends CustomTargetingValue> values)

public ListCustomTargetingValuesResponse.Builder addAllCustomTargetingValues(Iterable<? extends CustomTargetingValue> values)

The CustomTargetingValue objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1;

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

addCustomTargetingValues(CustomTargetingValue value)

public ListCustomTargetingValuesResponse.Builder addCustomTargetingValues(CustomTargetingValue value)

The CustomTargetingValue objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1;

Parameter
Name Description
value CustomTargetingValue
Returns
Type Description
ListCustomTargetingValuesResponse.Builder

addCustomTargetingValues(CustomTargetingValue.Builder builderForValue)

public ListCustomTargetingValuesResponse.Builder addCustomTargetingValues(CustomTargetingValue.Builder builderForValue)

The CustomTargetingValue objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1;

Parameter
Name Description
builderForValue CustomTargetingValue.Builder
Returns
Type Description
ListCustomTargetingValuesResponse.Builder

addCustomTargetingValues(int index, CustomTargetingValue value)

public ListCustomTargetingValuesResponse.Builder addCustomTargetingValues(int index, CustomTargetingValue value)

The CustomTargetingValue objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1;

Parameters
Name Description
index int
value CustomTargetingValue
Returns
Type Description
ListCustomTargetingValuesResponse.Builder

addCustomTargetingValues(int index, CustomTargetingValue.Builder builderForValue)

public ListCustomTargetingValuesResponse.Builder addCustomTargetingValues(int index, CustomTargetingValue.Builder builderForValue)

The CustomTargetingValue objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1;

Parameters
Name Description
index int
builderForValue CustomTargetingValue.Builder
Returns
Type Description
ListCustomTargetingValuesResponse.Builder

addCustomTargetingValuesBuilder()

public CustomTargetingValue.Builder addCustomTargetingValuesBuilder()

The CustomTargetingValue objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1;

Returns
Type Description
CustomTargetingValue.Builder

addCustomTargetingValuesBuilder(int index)

public CustomTargetingValue.Builder addCustomTargetingValuesBuilder(int index)

The CustomTargetingValue objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomTargetingValue.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListCustomTargetingValuesResponse build()
Returns
Type Description
ListCustomTargetingValuesResponse

buildPartial()

public ListCustomTargetingValuesResponse buildPartial()
Returns
Type Description
ListCustomTargetingValuesResponse

clear()

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

clearCustomTargetingValues()

public ListCustomTargetingValuesResponse.Builder clearCustomTargetingValues()

The CustomTargetingValue objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1;

Returns
Type Description
ListCustomTargetingValuesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalSize()

public ListCustomTargetingValuesResponse.Builder clearTotalSize()

Total number of CustomTargetingValue 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
ListCustomTargetingValuesResponse.Builder

This builder for chaining.

clone()

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

getCustomTargetingValues(int index)

public CustomTargetingValue getCustomTargetingValues(int index)

The CustomTargetingValue objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomTargetingValue

getCustomTargetingValuesBuilder(int index)

public CustomTargetingValue.Builder getCustomTargetingValuesBuilder(int index)

The CustomTargetingValue objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomTargetingValue.Builder

getCustomTargetingValuesBuilderList()

public List<CustomTargetingValue.Builder> getCustomTargetingValuesBuilderList()

The CustomTargetingValue objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1;

Returns
Type Description
List<Builder>

getCustomTargetingValuesCount()

public int getCustomTargetingValuesCount()

The CustomTargetingValue objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1;

Returns
Type Description
int

getCustomTargetingValuesList()

public List<CustomTargetingValue> getCustomTargetingValuesList()

The CustomTargetingValue objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1;

Returns
Type Description
List<CustomTargetingValue>

getCustomTargetingValuesOrBuilder(int index)

public CustomTargetingValueOrBuilder getCustomTargetingValuesOrBuilder(int index)

The CustomTargetingValue objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomTargetingValueOrBuilder

getCustomTargetingValuesOrBuilderList()

public List<? extends CustomTargetingValueOrBuilder> getCustomTargetingValuesOrBuilderList()

The CustomTargetingValue objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1;

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

getDefaultInstanceForType()

public ListCustomTargetingValuesResponse getDefaultInstanceForType()
Returns
Type Description
ListCustomTargetingValuesResponse

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 CustomTargetingValue 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(ListCustomTargetingValuesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCustomTargetingValues(int index)

public ListCustomTargetingValuesResponse.Builder removeCustomTargetingValues(int index)

The CustomTargetingValue objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1;

Parameter
Name Description
index int
Returns
Type Description
ListCustomTargetingValuesResponse.Builder

setCustomTargetingValues(int index, CustomTargetingValue value)

public ListCustomTargetingValuesResponse.Builder setCustomTargetingValues(int index, CustomTargetingValue value)

The CustomTargetingValue objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1;

Parameters
Name Description
index int
value CustomTargetingValue
Returns
Type Description
ListCustomTargetingValuesResponse.Builder

setCustomTargetingValues(int index, CustomTargetingValue.Builder builderForValue)

public ListCustomTargetingValuesResponse.Builder setCustomTargetingValues(int index, CustomTargetingValue.Builder builderForValue)

The CustomTargetingValue objects from the specified network.

repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1;

Parameters
Name Description
index int
builderForValue CustomTargetingValue.Builder
Returns
Type Description
ListCustomTargetingValuesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

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

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

setTotalSize(int value)

public ListCustomTargetingValuesResponse.Builder setTotalSize(int value)

Total number of CustomTargetingValue 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
ListCustomTargetingValuesResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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