public static final class AuthorizationInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder> implements AuthorizationInfoOrBuilder
Authorization information for the operation.Protobuf type
google.cloud.audit.AuthorizationInfo| Modifier and Type | Method and Description |
|---|---|
AuthorizationInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AuthorizationInfo |
build() |
AuthorizationInfo |
buildPartial() |
AuthorizationInfo.Builder |
clear() |
AuthorizationInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AuthorizationInfo.Builder |
clearGranted()
Whether or not authorization for `resource` and `permission`
was granted.
|
AuthorizationInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AuthorizationInfo.Builder |
clearPermission()
The required IAM permission.
|
AuthorizationInfo.Builder |
clearResource()
The resource being accessed, as a REST-style or cloud resource string.
|
AuthorizationInfo.Builder |
clearResourceAttributes()
Resource attributes used in IAM condition evaluation.
|
AuthorizationInfo.Builder |
clone() |
AuthorizationInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getGranted()
Whether or not authorization for `resource` and `permission`
was granted.
|
String |
getPermission()
The required IAM permission.
|
com.google.protobuf.ByteString |
getPermissionBytes()
The required IAM permission.
|
String |
getResource()
The resource being accessed, as a REST-style or cloud resource string.
|
AttributeContext.Resource |
getResourceAttributes()
Resource attributes used in IAM condition evaluation.
|
AttributeContext.Resource.Builder |
getResourceAttributesBuilder()
Resource attributes used in IAM condition evaluation.
|
AttributeContext.ResourceOrBuilder |
getResourceAttributesOrBuilder()
Resource attributes used in IAM condition evaluation.
|
com.google.protobuf.ByteString |
getResourceBytes()
The resource being accessed, as a REST-style or cloud resource string.
|
boolean |
hasResourceAttributes()
Resource attributes used in IAM condition evaluation.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AuthorizationInfo.Builder |
mergeFrom(AuthorizationInfo other) |
AuthorizationInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AuthorizationInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
AuthorizationInfo.Builder |
mergeResourceAttributes(AttributeContext.Resource value)
Resource attributes used in IAM condition evaluation.
|
AuthorizationInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AuthorizationInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AuthorizationInfo.Builder |
setGranted(boolean value)
Whether or not authorization for `resource` and `permission`
was granted.
|
AuthorizationInfo.Builder |
setPermission(String value)
The required IAM permission.
|
AuthorizationInfo.Builder |
setPermissionBytes(com.google.protobuf.ByteString value)
The required IAM permission.
|
AuthorizationInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AuthorizationInfo.Builder |
setResource(String value)
The resource being accessed, as a REST-style or cloud resource string.
|
AuthorizationInfo.Builder |
setResourceAttributes(AttributeContext.Resource.Builder builderForValue)
Resource attributes used in IAM condition evaluation.
|
AuthorizationInfo.Builder |
setResourceAttributes(AttributeContext.Resource value)
Resource attributes used in IAM condition evaluation.
|
AuthorizationInfo.Builder |
setResourceBytes(com.google.protobuf.ByteString value)
The resource being accessed, as a REST-style or cloud resource string.
|
AuthorizationInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>public AuthorizationInfo.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>public AuthorizationInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AuthorizationInfo build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AuthorizationInfo buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AuthorizationInfo.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>public AuthorizationInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>public AuthorizationInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>public AuthorizationInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>public AuthorizationInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>public AuthorizationInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>public AuthorizationInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AuthorizationInfo.Builder>public AuthorizationInfo.Builder mergeFrom(AuthorizationInfo other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>public AuthorizationInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AuthorizationInfo.Builder>IOExceptionpublic 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;getResource in interface AuthorizationInfoOrBuilderpublic com.google.protobuf.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;getResourceBytes in interface AuthorizationInfoOrBuilderpublic 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;value - The resource to set.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;public AuthorizationInfo.Builder setResourceBytes(com.google.protobuf.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;value - The bytes for resource to set.public String getPermission()
The required IAM permission.
string permission = 2;getPermission in interface AuthorizationInfoOrBuilderpublic com.google.protobuf.ByteString getPermissionBytes()
The required IAM permission.
string permission = 2;getPermissionBytes in interface AuthorizationInfoOrBuilderpublic AuthorizationInfo.Builder setPermission(String value)
The required IAM permission.
string permission = 2;value - The permission to set.public AuthorizationInfo.Builder clearPermission()
The required IAM permission.
string permission = 2;public AuthorizationInfo.Builder setPermissionBytes(com.google.protobuf.ByteString value)
The required IAM permission.
string permission = 2;value - The bytes for permission to set.public boolean getGranted()
Whether or not authorization for `resource` and `permission` was granted.
bool granted = 3;getGranted in interface AuthorizationInfoOrBuilderpublic AuthorizationInfo.Builder setGranted(boolean value)
Whether or not authorization for `resource` and `permission` was granted.
bool granted = 3;value - The granted to set.public AuthorizationInfo.Builder clearGranted()
Whether or not authorization for `resource` and `permission` was granted.
bool granted = 3;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;hasResourceAttributes in interface AuthorizationInfoOrBuilderpublic 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;getResourceAttributes in interface AuthorizationInfoOrBuilderpublic 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;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;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;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;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;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;getResourceAttributesOrBuilder in interface AuthorizationInfoOrBuilderpublic final AuthorizationInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>public final AuthorizationInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>Copyright © 2022 Google LLC. All rights reserved.