public final class AuthorizationInfo extends GeneratedMessageV3 implements AuthorizationInfoOrBuilder
Authorization information for the operation.
Protobuf type google.cloud.audit.AuthorizationInfo
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static AuthorizationInfo.Builder newBuilder()
newBuilder(AuthorizationInfo prototype)
public static AuthorizationInfo.Builder newBuilder(AuthorizationInfo prototype)
public static AuthorizationInfo parseDelimitedFrom(InputStream input)
public static AuthorizationInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static AuthorizationInfo parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AuthorizationInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static AuthorizationInfo parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AuthorizationInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AuthorizationInfo parseFrom(CodedInputStream input)
public static AuthorizationInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AuthorizationInfo parseFrom(InputStream input)
public static AuthorizationInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static AuthorizationInfo parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AuthorizationInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<AuthorizationInfo> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public AuthorizationInfo getDefaultInstanceForType()
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()
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;
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;
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()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public AuthorizationInfo.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AuthorizationInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public AuthorizationInfo.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides