Class AuthorizationInfo.Builder (2.13.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AuthorizationInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AuthorizationInfo.Builder
Overrides

build()

public AuthorizationInfo build()
Returns
TypeDescription
AuthorizationInfo

buildPartial()

public AuthorizationInfo buildPartial()
Returns
TypeDescription
AuthorizationInfo

clear()

public AuthorizationInfo.Builder clear()
Returns
TypeDescription
AuthorizationInfo.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AuthorizationInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AuthorizationInfo.Builder
Overrides

clearGranted()

public AuthorizationInfo.Builder clearGranted()

Whether or not authorization for resource and permission was granted.

bool granted = 3;

Returns
TypeDescription
AuthorizationInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AuthorizationInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AuthorizationInfo.Builder
Overrides

clearPermission()

public AuthorizationInfo.Builder clearPermission()

The required IAM permission.

string permission = 2;

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

clone()

public AuthorizationInfo.Builder clone()
Returns
TypeDescription
AuthorizationInfo.Builder
Overrides

getDefaultInstanceForType()

public AuthorizationInfo getDefaultInstanceForType()
Returns
TypeDescription
AuthorizationInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGranted()

public boolean getGranted()

Whether or not authorization for resource and permission was granted.

bool granted = 3;

Returns
TypeDescription
boolean

The granted.

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 or cloud resource string. For example: bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID or 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 AuditLog.request_metadata.request_attributes.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the resourceAttributes field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AuthorizationInfo other)

public AuthorizationInfo.Builder mergeFrom(AuthorizationInfo other)
Parameter
NameDescription
otherAuthorizationInfo
Returns
TypeDescription
AuthorizationInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AuthorizationInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuthorizationInfo.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AuthorizationInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueAttributeContext.Resource
Returns
TypeDescription
AuthorizationInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AuthorizationInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AuthorizationInfo.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AuthorizationInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The granted to set.

Returns
TypeDescription
AuthorizationInfo.Builder

This builder for chaining.

setPermission(String value)

public AuthorizationInfo.Builder setPermission(String value)

The required IAM permission.

string permission = 2;

Parameter
NameDescription
valueString

The permission to set.

Returns
TypeDescription
AuthorizationInfo.Builder

This builder for chaining.

setPermissionBytes(ByteString value)

public AuthorizationInfo.Builder setPermissionBytes(ByteString value)

The required IAM permission.

string permission = 2;

Parameter
NameDescription
valueByteString

The bytes for permission to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The resource to set.

Returns
TypeDescription
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
NameDescription
valueAttributeContext.Resource
Returns
TypeDescription
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
NameDescription
builderForValueAttributeContext.Resource.Builder
Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for resource to set.

Returns
TypeDescription
AuthorizationInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AuthorizationInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AuthorizationInfo.Builder
Overrides