Class AuthorizationInfo (2.39.1)

public final class AuthorizationInfo extends GeneratedMessageV3 implements AuthorizationInfoOrBuilder

Authorization information for the operation.

Protobuf type google.cloud.audit.AuthorizationInfo

Static Fields

GRANTED_FIELD_NUMBER

public static final int GRANTED_FIELD_NUMBER
Field Value
Type Description
int

PERMISSION_FIELD_NUMBER

public static final int PERMISSION_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_ATTRIBUTES_FIELD_NUMBER

public static final int RESOURCE_ATTRIBUTES_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_FIELD_NUMBER

public static final int RESOURCE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AuthorizationInfo getDefaultInstance()
Returns
Type Description
AuthorizationInfo

getDescriptor()

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

newBuilder()

public static AuthorizationInfo.Builder newBuilder()
Returns
Type Description
AuthorizationInfo.Builder

newBuilder(AuthorizationInfo prototype)

public static AuthorizationInfo.Builder newBuilder(AuthorizationInfo prototype)
Parameter
Name Description
prototype AuthorizationInfo
Returns
Type Description
AuthorizationInfo.Builder

parseDelimitedFrom(InputStream input)

public static AuthorizationInfo parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AuthorizationInfo
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AuthorizationInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthorizationInfo
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AuthorizationInfo parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AuthorizationInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AuthorizationInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthorizationInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AuthorizationInfo parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AuthorizationInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AuthorizationInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthorizationInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AuthorizationInfo parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AuthorizationInfo
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AuthorizationInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthorizationInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AuthorizationInfo parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AuthorizationInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AuthorizationInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthorizationInfo
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AuthorizationInfo parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AuthorizationInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AuthorizationInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthorizationInfo
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AuthorizationInfo> parser()
Returns
Type Description
Parser<AuthorizationInfo>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public AuthorizationInfo getDefaultInstanceForType()
Returns
Type Description
AuthorizationInfo

getGranted()

public boolean getGranted()

Whether or not authorization for resource and permission was granted.

bool granted = 3;

Returns
Type Description
boolean

The granted.

getParserForType()

public Parser<AuthorizationInfo> getParserForType()
Returns
Type Description
Parser<AuthorizationInfo>
Overrides

getPermission()

public String getPermission()

The required IAM permission.

string permission = 2;

Returns
Type Description
String

The permission.

getPermissionBytes()

public ByteString getPermissionBytes()

The required IAM permission.

string permission = 2;

Returns
Type Description
ByteString

The bytes for permission.

getResource()

public String getResource()

The resource being accessed, as a REST-style or cloud resource string. For example:

 bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID

or projects/PROJECTID/datasets/DATASETID

string resource = 1;

Returns
Type Description
String

The resource.

getResourceAttributes()

public AttributeContext.Resource getResourceAttributes()

Resource attributes used in IAM condition evaluation. This field contains resource attributes like resource type and resource name.

To get the whole view of the attributes used in IAM condition evaluation, the user must also look into AuditLog.request_metadata.request_attributes.

.google.rpc.context.AttributeContext.Resource resource_attributes = 5;

Returns
Type Description
AttributeContext.Resource

The resourceAttributes.

getResourceAttributesOrBuilder()

public AttributeContext.ResourceOrBuilder getResourceAttributesOrBuilder()

Resource attributes used in IAM condition evaluation. This field contains resource attributes like resource type and resource name.

To get the whole view of the attributes used in IAM condition evaluation, the user must also look into AuditLog.request_metadata.request_attributes.

.google.rpc.context.AttributeContext.Resource resource_attributes = 5;

Returns
Type Description
AttributeContext.ResourceOrBuilder

getResourceBytes()

public ByteString getResourceBytes()

The resource being accessed, as a REST-style or cloud resource string. For example:

 bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID

or projects/PROJECTID/datasets/DATASETID

string resource = 1;

Returns
Type Description
ByteString

The bytes for resource.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasResourceAttributes()

public boolean hasResourceAttributes()

Resource attributes used in IAM condition evaluation. This field contains resource attributes like resource type and resource name.

To get the whole view of the attributes used in IAM condition evaluation, the user must also look into AuditLog.request_metadata.request_attributes.

.google.rpc.context.AttributeContext.Resource resource_attributes = 5;

Returns
Type Description
boolean

Whether the resourceAttributes field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AuthorizationInfo.Builder newBuilderForType()
Returns
Type Description
AuthorizationInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AuthorizationInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AuthorizationInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AuthorizationInfo.Builder toBuilder()
Returns
Type Description
AuthorizationInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException