public final class AuthorizationInfo extends GeneratedMessageV3 implements AuthorizationInfoOrBuilder
Authorization information for the operation.
Protobuf type google.cloud.audit.AuthorizationInfo
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AuthorizationInfoImplements
AuthorizationInfoOrBuilderStatic Fields
GRANTED_FIELD_NUMBER
public static final int GRANTED_FIELD_NUMBER
Type | Description |
int |
PERMISSION_FIELD_NUMBER
public static final int PERMISSION_FIELD_NUMBER
Type | Description |
int |
RESOURCE_ATTRIBUTES_FIELD_NUMBER
public static final int RESOURCE_ATTRIBUTES_FIELD_NUMBER
Type | Description |
int |
RESOURCE_FIELD_NUMBER
public static final int RESOURCE_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static AuthorizationInfo getDefaultInstance()
Type | Description |
AuthorizationInfo |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static AuthorizationInfo.Builder newBuilder()
Type | Description |
AuthorizationInfo.Builder |
newBuilder(AuthorizationInfo prototype)
public static AuthorizationInfo.Builder newBuilder(AuthorizationInfo prototype)
Name | Description |
prototype | AuthorizationInfo |
Type | Description |
AuthorizationInfo.Builder |
parseDelimitedFrom(InputStream input)
public static AuthorizationInfo parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
AuthorizationInfo |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AuthorizationInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AuthorizationInfo |
Type | Description |
IOException |
parseFrom(byte[] data)
public static AuthorizationInfo parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
AuthorizationInfo |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AuthorizationInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AuthorizationInfo |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static AuthorizationInfo parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
AuthorizationInfo |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AuthorizationInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AuthorizationInfo |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static AuthorizationInfo parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
AuthorizationInfo |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AuthorizationInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AuthorizationInfo |
Type | Description |
IOException |
parseFrom(InputStream input)
public static AuthorizationInfo parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
AuthorizationInfo |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AuthorizationInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AuthorizationInfo |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static AuthorizationInfo parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
AuthorizationInfo |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AuthorizationInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AuthorizationInfo |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<AuthorizationInfo> parser()
Type | Description |
Parser<AuthorizationInfo> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public AuthorizationInfo getDefaultInstanceForType()
Type | Description |
AuthorizationInfo |
getGranted()
public boolean getGranted()
Whether or not authorization for resource
and permission
was granted.
bool granted = 3;
Type | Description |
boolean | The granted. |
getParserForType()
public Parser<AuthorizationInfo> getParserForType()
Type | Description |
Parser<AuthorizationInfo> |
getPermission()
public String getPermission()
The required IAM permission.
string permission = 2;
Type | Description |
String | The permission. |
getPermissionBytes()
public ByteString getPermissionBytes()
The required IAM permission.
string permission = 2;
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;
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;
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;
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;
Type | Description |
ByteString | The bytes for resource. |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
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;
Type | Description |
boolean | Whether the resourceAttributes field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public AuthorizationInfo.Builder newBuilderForType()
Type | Description |
AuthorizationInfo.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AuthorizationInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
AuthorizationInfo.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public AuthorizationInfo.Builder toBuilder()
Type | Description |
AuthorizationInfo.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |