Class AuthorizationInfo (0.14.1)

public final class AuthorizationInfo extends GeneratedMessageV3 implements AuthorizationInfoOrBuilder

Authorization information for the operation.

Protobuf type google.events.cloud.audit.v1.AuthorizationInfo

Static Fields

GRANTED_FIELD_NUMBER

public static final int GRANTED_FIELD_NUMBER
Field Value
TypeDescription
int

PERMISSION_FIELD_NUMBER

public static final int PERMISSION_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_ATTRIBUTES_FIELD_NUMBER

public static final int RESOURCE_ATTRIBUTES_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_FIELD_NUMBER

public static final int RESOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AuthorizationInfo getDefaultInstance()
Returns
TypeDescription
AuthorizationInfo

getDescriptor()

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

newBuilder()

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

newBuilder(AuthorizationInfo prototype)

public static AuthorizationInfo.Builder newBuilder(AuthorizationInfo prototype)
Parameter
NameDescription
prototypeAuthorizationInfo
Returns
TypeDescription
AuthorizationInfo.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public AuthorizationInfo getDefaultInstanceForType()
Returns
TypeDescription
AuthorizationInfo

getGranted()

public boolean getGranted()

Whether or not authorization for resource and permission was granted.

bool granted = 3;

Returns
TypeDescription
boolean

The granted.

getParserForType()

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

getPermission()

public String getPermission()

The required IAM permission.

string permission = 2;

Returns
TypeDescription
String

The permission.

getPermissionBytes()

public ByteString getPermissionBytes()

The required IAM permission.

string permission = 2;

Returns
TypeDescription
ByteString

The bytes for permission.

getResource()

public String getResource()

The resource being accessed, as a REST-style string. For example: bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID

string resource = 1;

Returns
TypeDescription
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 AuditLogData.request_metadata.request_attributes.

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

Returns
TypeDescription
com.google.rpc.context.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 AuditLogData.request_metadata.request_attributes.

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

Returns
TypeDescription
com.google.rpc.context.AttributeContext.ResourceOrBuilder

getResourceBytes()

public ByteString getResourceBytes()

The resource being accessed, as a REST-style string. For example: bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID

string resource = 1;

Returns
TypeDescription
ByteString

The bytes for resource.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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 AuditLogData.request_metadata.request_attributes.

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

Returns
TypeDescription
boolean

Whether the resourceAttributes field is set.

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 AuthorizationInfo.Builder newBuilderForType()
Returns
TypeDescription
AuthorizationInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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