Class ListRolesResponse.Builder (0.3.0)

public static final class ListRolesResponse.Builder extends GeneratedMessageV3.Builder<ListRolesResponse.Builder> implements ListRolesResponseOrBuilder

Response object for ListRolesRequest containing matching Role resources.

Protobuf type google.ads.admanager.v1.ListRolesResponse

Static Methods

getDescriptor()

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

Methods

addAllRoles(Iterable<? extends Role> values)

public ListRolesResponse.Builder addAllRoles(Iterable<? extends Role> values)

The Role from the specified network.

repeated .google.ads.admanager.v1.Role roles = 1;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRoles(Role value)

public ListRolesResponse.Builder addRoles(Role value)

The Role from the specified network.

repeated .google.ads.admanager.v1.Role roles = 1;

Parameter
Name Description
value Role
Returns
Type Description
ListRolesResponse.Builder

addRoles(Role.Builder builderForValue)

public ListRolesResponse.Builder addRoles(Role.Builder builderForValue)

The Role from the specified network.

repeated .google.ads.admanager.v1.Role roles = 1;

Parameter
Name Description
builderForValue Role.Builder
Returns
Type Description
ListRolesResponse.Builder

addRoles(int index, Role value)

public ListRolesResponse.Builder addRoles(int index, Role value)

The Role from the specified network.

repeated .google.ads.admanager.v1.Role roles = 1;

Parameters
Name Description
index int
value Role
Returns
Type Description
ListRolesResponse.Builder

addRoles(int index, Role.Builder builderForValue)

public ListRolesResponse.Builder addRoles(int index, Role.Builder builderForValue)

The Role from the specified network.

repeated .google.ads.admanager.v1.Role roles = 1;

Parameters
Name Description
index int
builderForValue Role.Builder
Returns
Type Description
ListRolesResponse.Builder

addRolesBuilder()

public Role.Builder addRolesBuilder()

The Role from the specified network.

repeated .google.ads.admanager.v1.Role roles = 1;

Returns
Type Description
Role.Builder

addRolesBuilder(int index)

public Role.Builder addRolesBuilder(int index)

The Role from the specified network.

repeated .google.ads.admanager.v1.Role roles = 1;

Parameter
Name Description
index int
Returns
Type Description
Role.Builder

build()

public ListRolesResponse build()
Returns
Type Description
ListRolesResponse

buildPartial()

public ListRolesResponse buildPartial()
Returns
Type Description
ListRolesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRoles()

public ListRolesResponse.Builder clearRoles()

The Role from the specified network.

repeated .google.ads.admanager.v1.Role roles = 1;

Returns
Type Description
ListRolesResponse.Builder

clearTotalSize()

public ListRolesResponse.Builder clearTotalSize()

Total number of Roles. 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
ListRolesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListRolesResponse getDefaultInstanceForType()
Returns
Type Description
ListRolesResponse

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.

getRoles(int index)

public Role getRoles(int index)

The Role from the specified network.

repeated .google.ads.admanager.v1.Role roles = 1;

Parameter
Name Description
index int
Returns
Type Description
Role

getRolesBuilder(int index)

public Role.Builder getRolesBuilder(int index)

The Role from the specified network.

repeated .google.ads.admanager.v1.Role roles = 1;

Parameter
Name Description
index int
Returns
Type Description
Role.Builder

getRolesBuilderList()

public List<Role.Builder> getRolesBuilderList()

The Role from the specified network.

repeated .google.ads.admanager.v1.Role roles = 1;

Returns
Type Description
List<Builder>

getRolesCount()

public int getRolesCount()

The Role from the specified network.

repeated .google.ads.admanager.v1.Role roles = 1;

Returns
Type Description
int

getRolesList()

public List<Role> getRolesList()

The Role from the specified network.

repeated .google.ads.admanager.v1.Role roles = 1;

Returns
Type Description
List<Role>

getRolesOrBuilder(int index)

public RoleOrBuilder getRolesOrBuilder(int index)

The Role from the specified network.

repeated .google.ads.admanager.v1.Role roles = 1;

Parameter
Name Description
index int
Returns
Type Description
RoleOrBuilder

getRolesOrBuilderList()

public List<? extends RoleOrBuilder> getRolesOrBuilderList()

The Role from the specified network.

repeated .google.ads.admanager.v1.Role roles = 1;

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

getTotalSize()

public int getTotalSize()

Total number of Roles. 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(ListRolesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRoles(int index)

public ListRolesResponse.Builder removeRoles(int index)

The Role from the specified network.

repeated .google.ads.admanager.v1.Role roles = 1;

Parameter
Name Description
index int
Returns
Type Description
ListRolesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

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

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

setRoles(int index, Role value)

public ListRolesResponse.Builder setRoles(int index, Role value)

The Role from the specified network.

repeated .google.ads.admanager.v1.Role roles = 1;

Parameters
Name Description
index int
value Role
Returns
Type Description
ListRolesResponse.Builder

setRoles(int index, Role.Builder builderForValue)

public ListRolesResponse.Builder setRoles(int index, Role.Builder builderForValue)

The Role from the specified network.

repeated .google.ads.admanager.v1.Role roles = 1;

Parameters
Name Description
index int
builderForValue Role.Builder
Returns
Type Description
ListRolesResponse.Builder

setTotalSize(int value)

public ListRolesResponse.Builder setTotalSize(int value)

Total number of Roles. 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
ListRolesResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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