Class AuthorizationInfo.Builder (2.40.0)

public static final class AuthorizationInfo.Builder extends GeneratedMessageV3.Builder<AuthorizationInfo.Builder> implements AuthorizationInfoOrBuilder

Authorization information for the operation.

Protobuf type google.cloud.audit.AuthorizationInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AuthorizationInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AuthorizationInfo.Builder
Overrides

build()

public AuthorizationInfo build()
Returns
Type Description
AuthorizationInfo

buildPartial()

public AuthorizationInfo buildPartial()
Returns
Type Description
AuthorizationInfo

clear()

public AuthorizationInfo.Builder clear()
Returns
Type Description
AuthorizationInfo.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AuthorizationInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AuthorizationInfo.Builder
Overrides

clearGranted()

public AuthorizationInfo.Builder clearGranted()

Whether or not authorization for resource and permission was granted.

bool granted = 3;

Returns
Type Description
AuthorizationInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AuthorizationInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AuthorizationInfo.Builder
Overrides

clearPermission()

public AuthorizationInfo.Builder clearPermission()

The required IAM permission.

string permission = 2;

Returns
Type Description
AuthorizationInfo.Builder

This builder for chaining.

clearResource()

public AuthorizationInfo.Builder clearResource()

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
AuthorizationInfo.Builder

This builder for chaining.

clearResourceAttributes()

public AuthorizationInfo.Builder clearResourceAttributes()

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
AuthorizationInfo.Builder

clone()

public AuthorizationInfo.Builder clone()
Returns
Type Description
AuthorizationInfo.Builder
Overrides

getDefaultInstanceForType()

public AuthorizationInfo getDefaultInstanceForType()
Returns
Type Description
AuthorizationInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGranted()

public boolean getGranted()

Whether or not authorization for resource and permission was granted.

bool granted = 3;

Returns
Type Description
boolean

The granted.

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.

getResourceAttributesBuilder()

public AttributeContext.Resource.Builder getResourceAttributesBuilder()

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.Builder

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AuthorizationInfo other)

public AuthorizationInfo.Builder mergeFrom(AuthorizationInfo other)
Parameter
Name Description
other AuthorizationInfo
Returns
Type Description
AuthorizationInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AuthorizationInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthorizationInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AuthorizationInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AuthorizationInfo.Builder
Overrides

mergeResourceAttributes(AttributeContext.Resource value)

public AuthorizationInfo.Builder mergeResourceAttributes(AttributeContext.Resource value)

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;

Parameter
Name Description
value AttributeContext.Resource
Returns
Type Description
AuthorizationInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AuthorizationInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AuthorizationInfo.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AuthorizationInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AuthorizationInfo.Builder
Overrides

setGranted(boolean value)

public AuthorizationInfo.Builder setGranted(boolean value)

Whether or not authorization for resource and permission was granted.

bool granted = 3;

Parameter
Name Description
value boolean

The granted to set.

Returns
Type Description
AuthorizationInfo.Builder

This builder for chaining.

setPermission(String value)

public AuthorizationInfo.Builder setPermission(String value)

The required IAM permission.

string permission = 2;

Parameter
Name Description
value String

The permission to set.

Returns
Type Description
AuthorizationInfo.Builder

This builder for chaining.

setPermissionBytes(ByteString value)

public AuthorizationInfo.Builder setPermissionBytes(ByteString value)

The required IAM permission.

string permission = 2;

Parameter
Name Description
value ByteString

The bytes for permission to set.

Returns
Type Description
AuthorizationInfo.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AuthorizationInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AuthorizationInfo.Builder
Overrides

setResource(String value)

public AuthorizationInfo.Builder setResource(String value)

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;

Parameter
Name Description
value String

The resource to set.

Returns
Type Description
AuthorizationInfo.Builder

This builder for chaining.

setResourceAttributes(AttributeContext.Resource value)

public AuthorizationInfo.Builder setResourceAttributes(AttributeContext.Resource value)

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;

Parameter
Name Description
value AttributeContext.Resource
Returns
Type Description
AuthorizationInfo.Builder

setResourceAttributes(AttributeContext.Resource.Builder builderForValue)

public AuthorizationInfo.Builder setResourceAttributes(AttributeContext.Resource.Builder builderForValue)

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;

Parameter
Name Description
builderForValue AttributeContext.Resource.Builder
Returns
Type Description
AuthorizationInfo.Builder

setResourceBytes(ByteString value)

public AuthorizationInfo.Builder setResourceBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for resource to set.

Returns
Type Description
AuthorizationInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AuthorizationInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AuthorizationInfo.Builder
Overrides