Class ListMobileDevicesResponse.Builder (0.39.0)

public static final class ListMobileDevicesResponse.Builder extends GeneratedMessageV3.Builder<ListMobileDevicesResponse.Builder> implements ListMobileDevicesResponseOrBuilder

Response object for ListMobileDevicesRequest containing matching MobileDevice objects.

Protobuf type google.ads.admanager.v1.ListMobileDevicesResponse

Static Methods

getDescriptor()

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

Methods

addAllMobileDevices(Iterable<? extends MobileDevice> values)

public ListMobileDevicesResponse.Builder addAllMobileDevices(Iterable<? extends MobileDevice> values)

The MobileDevice objects from the specified network.

repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1;

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

addMobileDevices(MobileDevice value)

public ListMobileDevicesResponse.Builder addMobileDevices(MobileDevice value)

The MobileDevice objects from the specified network.

repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1;

Parameter
Name Description
value MobileDevice
Returns
Type Description
ListMobileDevicesResponse.Builder

addMobileDevices(MobileDevice.Builder builderForValue)

public ListMobileDevicesResponse.Builder addMobileDevices(MobileDevice.Builder builderForValue)

The MobileDevice objects from the specified network.

repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1;

Parameter
Name Description
builderForValue MobileDevice.Builder
Returns
Type Description
ListMobileDevicesResponse.Builder

addMobileDevices(int index, MobileDevice value)

public ListMobileDevicesResponse.Builder addMobileDevices(int index, MobileDevice value)

The MobileDevice objects from the specified network.

repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1;

Parameters
Name Description
index int
value MobileDevice
Returns
Type Description
ListMobileDevicesResponse.Builder

addMobileDevices(int index, MobileDevice.Builder builderForValue)

public ListMobileDevicesResponse.Builder addMobileDevices(int index, MobileDevice.Builder builderForValue)

The MobileDevice objects from the specified network.

repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1;

Parameters
Name Description
index int
builderForValue MobileDevice.Builder
Returns
Type Description
ListMobileDevicesResponse.Builder

addMobileDevicesBuilder()

public MobileDevice.Builder addMobileDevicesBuilder()

The MobileDevice objects from the specified network.

repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1;

Returns
Type Description
MobileDevice.Builder

addMobileDevicesBuilder(int index)

public MobileDevice.Builder addMobileDevicesBuilder(int index)

The MobileDevice objects from the specified network.

repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1;

Parameter
Name Description
index int
Returns
Type Description
MobileDevice.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListMobileDevicesResponse build()
Returns
Type Description
ListMobileDevicesResponse

buildPartial()

public ListMobileDevicesResponse buildPartial()
Returns
Type Description
ListMobileDevicesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMobileDevices()

public ListMobileDevicesResponse.Builder clearMobileDevices()

The MobileDevice objects from the specified network.

repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1;

Returns
Type Description
ListMobileDevicesResponse.Builder

clearNextPageToken()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalSize()

public ListMobileDevicesResponse.Builder clearTotalSize()

Total number of MobileDevice 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
ListMobileDevicesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListMobileDevicesResponse getDefaultInstanceForType()
Returns
Type Description
ListMobileDevicesResponse

getDescriptorForType()

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

getMobileDevices(int index)

public MobileDevice getMobileDevices(int index)

The MobileDevice objects from the specified network.

repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1;

Parameter
Name Description
index int
Returns
Type Description
MobileDevice

getMobileDevicesBuilder(int index)

public MobileDevice.Builder getMobileDevicesBuilder(int index)

The MobileDevice objects from the specified network.

repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1;

Parameter
Name Description
index int
Returns
Type Description
MobileDevice.Builder

getMobileDevicesBuilderList()

public List<MobileDevice.Builder> getMobileDevicesBuilderList()

The MobileDevice objects from the specified network.

repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1;

Returns
Type Description
List<Builder>

getMobileDevicesCount()

public int getMobileDevicesCount()

The MobileDevice objects from the specified network.

repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1;

Returns
Type Description
int

getMobileDevicesList()

public List<MobileDevice> getMobileDevicesList()

The MobileDevice objects from the specified network.

repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1;

Returns
Type Description
List<MobileDevice>

getMobileDevicesOrBuilder(int index)

public MobileDeviceOrBuilder getMobileDevicesOrBuilder(int index)

The MobileDevice objects from the specified network.

repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1;

Parameter
Name Description
index int
Returns
Type Description
MobileDeviceOrBuilder

getMobileDevicesOrBuilderList()

public List<? extends MobileDeviceOrBuilder> getMobileDevicesOrBuilderList()

The MobileDevice objects from the specified network.

repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1;

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

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListMobileDevicesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMobileDevices(int index)

public ListMobileDevicesResponse.Builder removeMobileDevices(int index)

The MobileDevice objects from the specified network.

repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1;

Parameter
Name Description
index int
Returns
Type Description
ListMobileDevicesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMobileDevices(int index, MobileDevice value)

public ListMobileDevicesResponse.Builder setMobileDevices(int index, MobileDevice value)

The MobileDevice objects from the specified network.

repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1;

Parameters
Name Description
index int
value MobileDevice
Returns
Type Description
ListMobileDevicesResponse.Builder

setMobileDevices(int index, MobileDevice.Builder builderForValue)

public ListMobileDevicesResponse.Builder setMobileDevices(int index, MobileDevice.Builder builderForValue)

The MobileDevice objects from the specified network.

repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1;

Parameters
Name Description
index int
builderForValue MobileDevice.Builder
Returns
Type Description
ListMobileDevicesResponse.Builder

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

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

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

setTotalSize(int value)

public ListMobileDevicesResponse.Builder setTotalSize(int value)

Total number of MobileDevice 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
ListMobileDevicesResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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