Class ListRolesResponse (3.14.0)

public final class ListRolesResponse extends GeneratedMessageV3 implements ListRolesResponseOrBuilder

The response containing the roles defined under a resource.

Protobuf type google.iam.admin.v1.ListRolesResponse

Static Fields

NEXT_PAGE_TOKEN_FIELD_NUMBER

public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER
Field Value
TypeDescription
int

ROLES_FIELD_NUMBER

public static final int ROLES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ListRolesResponse getDefaultInstance()
Returns
TypeDescription
ListRolesResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ListRolesResponse.Builder newBuilder()
Returns
TypeDescription
ListRolesResponse.Builder

newBuilder(ListRolesResponse prototype)

public static ListRolesResponse.Builder newBuilder(ListRolesResponse prototype)
Parameter
NameDescription
prototypeListRolesResponse
Returns
TypeDescription
ListRolesResponse.Builder

parseDelimitedFrom(InputStream input)

public static ListRolesResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ListRolesResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ListRolesResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListRolesResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ListRolesResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ListRolesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ListRolesResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListRolesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ListRolesResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ListRolesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ListRolesResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListRolesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ListRolesResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ListRolesResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ListRolesResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListRolesResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ListRolesResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ListRolesResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ListRolesResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListRolesResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ListRolesResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ListRolesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ListRolesResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListRolesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ListRolesResponse> parser()
Returns
TypeDescription
Parser<ListRolesResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ListRolesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListRolesResponse

getNextPageToken()

public String getNextPageToken()

To retrieve the next page of results, set ListRolesRequest.page_token to this value.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

To retrieve the next page of results, set ListRolesRequest.page_token to this value.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getParserForType()

public Parser<ListRolesResponse> getParserForType()
Returns
TypeDescription
Parser<ListRolesResponse>
Overrides

getRoles(int index)

public Role getRoles(int index)

The Roles defined on this resource.

repeated .google.iam.admin.v1.Role roles = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Role

getRolesCount()

public int getRolesCount()

The Roles defined on this resource.

repeated .google.iam.admin.v1.Role roles = 1;

Returns
TypeDescription
int

getRolesList()

public List<Role> getRolesList()

The Roles defined on this resource.

repeated .google.iam.admin.v1.Role roles = 1;

Returns
TypeDescription
List<Role>

getRolesOrBuilder(int index)

public RoleOrBuilder getRolesOrBuilder(int index)

The Roles defined on this resource.

repeated .google.iam.admin.v1.Role roles = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
RoleOrBuilder

getRolesOrBuilderList()

public List<? extends RoleOrBuilder> getRolesOrBuilderList()

The Roles defined on this resource.

repeated .google.iam.admin.v1.Role roles = 1;

Returns
TypeDescription
List<? extends com.google.iam.admin.v1.RoleOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ListRolesResponse.Builder newBuilderForType()
Returns
TypeDescription
ListRolesResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ListRolesResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ListRolesResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ListRolesResponse.Builder toBuilder()
Returns
TypeDescription
ListRolesResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException