Class Permissions (3.4.0)

public final class Permissions extends GeneratedMessageV3 implements PermissionsOrBuilder

IAM permissions

Protobuf type google.cloud.asset.v1p1beta1.Permissions

Static Fields

PERMISSIONS_FIELD_NUMBER

public static final int PERMISSIONS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Permissions getDefaultInstance()
Returns
TypeDescription
Permissions

getDescriptor()

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

newBuilder()

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

newBuilder(Permissions prototype)

public static Permissions.Builder newBuilder(Permissions prototype)
Parameter
NameDescription
prototypePermissions
Returns
TypeDescription
Permissions.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Permissions getDefaultInstanceForType()
Returns
TypeDescription
Permissions

getParserForType()

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

getPermissions(int index)

public String getPermissions(int index)

A list of permissions. A sample permission string: "compute.disk.get".

repeated string permissions = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The permissions at the given index.

getPermissionsBytes(int index)

public ByteString getPermissionsBytes(int index)

A list of permissions. A sample permission string: "compute.disk.get".

repeated string permissions = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the permissions at the given index.

getPermissionsCount()

public int getPermissionsCount()

A list of permissions. A sample permission string: "compute.disk.get".

repeated string permissions = 1;

Returns
TypeDescription
int

The count of permissions.

getPermissionsList()

public ProtocolStringList getPermissionsList()

A list of permissions. A sample permission string: "compute.disk.get".

repeated string permissions = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the permissions.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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 Permissions.Builder newBuilderForType()
Returns
TypeDescription
Permissions.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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