Class ListDeviceCategoriesResponse.Builder (0.27.0)

public static final class ListDeviceCategoriesResponse.Builder extends GeneratedMessageV3.Builder<ListDeviceCategoriesResponse.Builder> implements ListDeviceCategoriesResponseOrBuilder

Response object for ListDeviceCategoriesRequest containing matching DeviceCategory objects.

Protobuf type google.ads.admanager.v1.ListDeviceCategoriesResponse

Static Methods

getDescriptor()

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

Methods

addAllDeviceCategories(Iterable<? extends DeviceCategory> values)

public ListDeviceCategoriesResponse.Builder addAllDeviceCategories(Iterable<? extends DeviceCategory> values)

The DeviceCategory objects from the specified network.

repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1;

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

addDeviceCategories(DeviceCategory value)

public ListDeviceCategoriesResponse.Builder addDeviceCategories(DeviceCategory value)

The DeviceCategory objects from the specified network.

repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1;

Parameter
Name Description
value DeviceCategory
Returns
Type Description
ListDeviceCategoriesResponse.Builder

addDeviceCategories(DeviceCategory.Builder builderForValue)

public ListDeviceCategoriesResponse.Builder addDeviceCategories(DeviceCategory.Builder builderForValue)

The DeviceCategory objects from the specified network.

repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1;

Parameter
Name Description
builderForValue DeviceCategory.Builder
Returns
Type Description
ListDeviceCategoriesResponse.Builder

addDeviceCategories(int index, DeviceCategory value)

public ListDeviceCategoriesResponse.Builder addDeviceCategories(int index, DeviceCategory value)

The DeviceCategory objects from the specified network.

repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1;

Parameters
Name Description
index int
value DeviceCategory
Returns
Type Description
ListDeviceCategoriesResponse.Builder

addDeviceCategories(int index, DeviceCategory.Builder builderForValue)

public ListDeviceCategoriesResponse.Builder addDeviceCategories(int index, DeviceCategory.Builder builderForValue)

The DeviceCategory objects from the specified network.

repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1;

Parameters
Name Description
index int
builderForValue DeviceCategory.Builder
Returns
Type Description
ListDeviceCategoriesResponse.Builder

addDeviceCategoriesBuilder()

public DeviceCategory.Builder addDeviceCategoriesBuilder()

The DeviceCategory objects from the specified network.

repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1;

Returns
Type Description
DeviceCategory.Builder

addDeviceCategoriesBuilder(int index)

public DeviceCategory.Builder addDeviceCategoriesBuilder(int index)

The DeviceCategory objects from the specified network.

repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1;

Parameter
Name Description
index int
Returns
Type Description
DeviceCategory.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListDeviceCategoriesResponse build()
Returns
Type Description
ListDeviceCategoriesResponse

buildPartial()

public ListDeviceCategoriesResponse buildPartial()
Returns
Type Description
ListDeviceCategoriesResponse

clear()

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

clearDeviceCategories()

public ListDeviceCategoriesResponse.Builder clearDeviceCategories()

The DeviceCategory objects from the specified network.

repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1;

Returns
Type Description
ListDeviceCategoriesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalSize()

public ListDeviceCategoriesResponse.Builder clearTotalSize()

Total number of DeviceCategory 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
ListDeviceCategoriesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListDeviceCategoriesResponse getDefaultInstanceForType()
Returns
Type Description
ListDeviceCategoriesResponse

getDescriptorForType()

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

getDeviceCategories(int index)

public DeviceCategory getDeviceCategories(int index)

The DeviceCategory objects from the specified network.

repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1;

Parameter
Name Description
index int
Returns
Type Description
DeviceCategory

getDeviceCategoriesBuilder(int index)

public DeviceCategory.Builder getDeviceCategoriesBuilder(int index)

The DeviceCategory objects from the specified network.

repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1;

Parameter
Name Description
index int
Returns
Type Description
DeviceCategory.Builder

getDeviceCategoriesBuilderList()

public List<DeviceCategory.Builder> getDeviceCategoriesBuilderList()

The DeviceCategory objects from the specified network.

repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1;

Returns
Type Description
List<Builder>

getDeviceCategoriesCount()

public int getDeviceCategoriesCount()

The DeviceCategory objects from the specified network.

repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1;

Returns
Type Description
int

getDeviceCategoriesList()

public List<DeviceCategory> getDeviceCategoriesList()

The DeviceCategory objects from the specified network.

repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1;

Returns
Type Description
List<DeviceCategory>

getDeviceCategoriesOrBuilder(int index)

public DeviceCategoryOrBuilder getDeviceCategoriesOrBuilder(int index)

The DeviceCategory objects from the specified network.

repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1;

Parameter
Name Description
index int
Returns
Type Description
DeviceCategoryOrBuilder

getDeviceCategoriesOrBuilderList()

public List<? extends DeviceCategoryOrBuilder> getDeviceCategoriesOrBuilderList()

The DeviceCategory objects from the specified network.

repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1;

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

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 DeviceCategory 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(ListDeviceCategoriesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeDeviceCategories(int index)

public ListDeviceCategoriesResponse.Builder removeDeviceCategories(int index)

The DeviceCategory objects from the specified network.

repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1;

Parameter
Name Description
index int
Returns
Type Description
ListDeviceCategoriesResponse.Builder

setDeviceCategories(int index, DeviceCategory value)

public ListDeviceCategoriesResponse.Builder setDeviceCategories(int index, DeviceCategory value)

The DeviceCategory objects from the specified network.

repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1;

Parameters
Name Description
index int
value DeviceCategory
Returns
Type Description
ListDeviceCategoriesResponse.Builder

setDeviceCategories(int index, DeviceCategory.Builder builderForValue)

public ListDeviceCategoriesResponse.Builder setDeviceCategories(int index, DeviceCategory.Builder builderForValue)

The DeviceCategory objects from the specified network.

repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1;

Parameters
Name Description
index int
builderForValue DeviceCategory.Builder
Returns
Type Description
ListDeviceCategoriesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

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

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

setTotalSize(int value)

public ListDeviceCategoriesResponse.Builder setTotalSize(int value)

Total number of DeviceCategory 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
ListDeviceCategoriesResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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