Class ListUsersResponse.Builder (0.3.0)

public static final class ListUsersResponse.Builder extends GeneratedMessageV3.Builder<ListUsersResponse.Builder> implements ListUsersResponseOrBuilder

Response object for ListUsersRequest containing matching User resources.

Protobuf type google.ads.admanager.v1.ListUsersResponse

Static Methods

getDescriptor()

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

Methods

addAllUsers(Iterable<? extends User> values)

public ListUsersResponse.Builder addAllUsers(Iterable<? extends User> values)

The User from the specified network.

repeated .google.ads.admanager.v1.User users = 1;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUsers(User value)

public ListUsersResponse.Builder addUsers(User value)

The User from the specified network.

repeated .google.ads.admanager.v1.User users = 1;

Parameter
Name Description
value User
Returns
Type Description
ListUsersResponse.Builder

addUsers(User.Builder builderForValue)

public ListUsersResponse.Builder addUsers(User.Builder builderForValue)

The User from the specified network.

repeated .google.ads.admanager.v1.User users = 1;

Parameter
Name Description
builderForValue User.Builder
Returns
Type Description
ListUsersResponse.Builder

addUsers(int index, User value)

public ListUsersResponse.Builder addUsers(int index, User value)

The User from the specified network.

repeated .google.ads.admanager.v1.User users = 1;

Parameters
Name Description
index int
value User
Returns
Type Description
ListUsersResponse.Builder

addUsers(int index, User.Builder builderForValue)

public ListUsersResponse.Builder addUsers(int index, User.Builder builderForValue)

The User from the specified network.

repeated .google.ads.admanager.v1.User users = 1;

Parameters
Name Description
index int
builderForValue User.Builder
Returns
Type Description
ListUsersResponse.Builder

addUsersBuilder()

public User.Builder addUsersBuilder()

The User from the specified network.

repeated .google.ads.admanager.v1.User users = 1;

Returns
Type Description
User.Builder

addUsersBuilder(int index)

public User.Builder addUsersBuilder(int index)

The User from the specified network.

repeated .google.ads.admanager.v1.User users = 1;

Parameter
Name Description
index int
Returns
Type Description
User.Builder

build()

public ListUsersResponse build()
Returns
Type Description
ListUsersResponse

buildPartial()

public ListUsersResponse buildPartial()
Returns
Type Description
ListUsersResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalSize()

public ListUsersResponse.Builder clearTotalSize()

Total number of Users. 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
ListUsersResponse.Builder

This builder for chaining.

clearUsers()

public ListUsersResponse.Builder clearUsers()

The User from the specified network.

repeated .google.ads.admanager.v1.User users = 1;

Returns
Type Description
ListUsersResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListUsersResponse getDefaultInstanceForType()
Returns
Type Description
ListUsersResponse

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 Users. 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.

getUsers(int index)

public User getUsers(int index)

The User from the specified network.

repeated .google.ads.admanager.v1.User users = 1;

Parameter
Name Description
index int
Returns
Type Description
User

getUsersBuilder(int index)

public User.Builder getUsersBuilder(int index)

The User from the specified network.

repeated .google.ads.admanager.v1.User users = 1;

Parameter
Name Description
index int
Returns
Type Description
User.Builder

getUsersBuilderList()

public List<User.Builder> getUsersBuilderList()

The User from the specified network.

repeated .google.ads.admanager.v1.User users = 1;

Returns
Type Description
List<Builder>

getUsersCount()

public int getUsersCount()

The User from the specified network.

repeated .google.ads.admanager.v1.User users = 1;

Returns
Type Description
int

getUsersList()

public List<User> getUsersList()

The User from the specified network.

repeated .google.ads.admanager.v1.User users = 1;

Returns
Type Description
List<User>

getUsersOrBuilder(int index)

public UserOrBuilder getUsersOrBuilder(int index)

The User from the specified network.

repeated .google.ads.admanager.v1.User users = 1;

Parameter
Name Description
index int
Returns
Type Description
UserOrBuilder

getUsersOrBuilderList()

public List<? extends UserOrBuilder> getUsersOrBuilderList()

The User from the specified network.

repeated .google.ads.admanager.v1.User users = 1;

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListUsersResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeUsers(int index)

public ListUsersResponse.Builder removeUsers(int index)

The User from the specified network.

repeated .google.ads.admanager.v1.User users = 1;

Parameter
Name Description
index int
Returns
Type Description
ListUsersResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

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

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

setTotalSize(int value)

public ListUsersResponse.Builder setTotalSize(int value)

Total number of Users. 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
ListUsersResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUsers(int index, User value)

public ListUsersResponse.Builder setUsers(int index, User value)

The User from the specified network.

repeated .google.ads.admanager.v1.User users = 1;

Parameters
Name Description
index int
value User
Returns
Type Description
ListUsersResponse.Builder

setUsers(int index, User.Builder builderForValue)

public ListUsersResponse.Builder setUsers(int index, User.Builder builderForValue)

The User from the specified network.

repeated .google.ads.admanager.v1.User users = 1;

Parameters
Name Description
index int
builderForValue User.Builder
Returns
Type Description
ListUsersResponse.Builder