Package com.google.cloud.audit
Class AuthorizationInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>
com.google.cloud.audit.AuthorizationInfo.Builder
- All Implemented Interfaces:
AuthorizationInfoOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- AuthorizationInfo
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
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Whether or not authorization for `resource` and `permission` was granted.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The required IAM permission.The resource being accessed, as a REST-style or cloud resource string.Resource attributes used in IAM condition evaluation.clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
Whether or not authorization for `resource` and `permission` was granted.The required IAM permission.com.google.protobuf.ByteString
The required IAM permission.The resource being accessed, as a REST-style or cloud resource string.Resource attributes used in IAM condition evaluation.Resource attributes used in IAM condition evaluation.Resource attributes used in IAM condition evaluation.com.google.protobuf.ByteString
The resource being accessed, as a REST-style or cloud resource string.boolean
Resource attributes used in IAM condition evaluation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(AuthorizationInfo other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) Resource attributes used in IAM condition evaluation.mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setGranted
(boolean value) Whether or not authorization for `resource` and `permission` was granted.setPermission
(String value) The required IAM permission.setPermissionBytes
(com.google.protobuf.ByteString value) The required IAM permission.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setResource
(String value) The resource being accessed, as a REST-style or cloud resource string.Resource attributes used in IAM condition evaluation.setResourceAttributes
(AttributeContext.Resource.Builder builderForValue) Resource attributes used in IAM condition evaluation.setResourceBytes
(com.google.protobuf.ByteString value) The resource being accessed, as a REST-style or cloud resource string.setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>
-
setField
public AuthorizationInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>
-
setRepeatedField
public AuthorizationInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>
-
addRepeatedField
public AuthorizationInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AuthorizationInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>
-
mergeFrom
public AuthorizationInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AuthorizationInfo.Builder>
- Throws:
IOException
-
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;
- Specified by:
getResource
in interfaceAuthorizationInfoOrBuilder
- Returns:
- The resource.
-
getResourceBytes
public 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;
- Specified by:
getResourceBytes
in interfaceAuthorizationInfoOrBuilder
- Returns:
- The bytes for resource.
-
setResource
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;
- Parameters:
value
- The resource to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setResourceBytes
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;
- Parameters:
value
- The bytes for resource to set.- Returns:
- This builder for chaining.
-
getPermission
The required IAM permission.
string permission = 2;
- Specified by:
getPermission
in interfaceAuthorizationInfoOrBuilder
- Returns:
- The permission.
-
getPermissionBytes
public com.google.protobuf.ByteString getPermissionBytes()The required IAM permission.
string permission = 2;
- Specified by:
getPermissionBytes
in interfaceAuthorizationInfoOrBuilder
- Returns:
- The bytes for permission.
-
setPermission
The required IAM permission.
string permission = 2;
- Parameters:
value
- The permission to set.- Returns:
- This builder for chaining.
-
clearPermission
The required IAM permission.
string permission = 2;
- Returns:
- This builder for chaining.
-
setPermissionBytes
The required IAM permission.
string permission = 2;
- Parameters:
value
- The bytes for permission to set.- Returns:
- This builder for chaining.
-
getGranted
public boolean getGranted()Whether or not authorization for `resource` and `permission` was granted.
bool granted = 3;
- Specified by:
getGranted
in interfaceAuthorizationInfoOrBuilder
- Returns:
- The granted.
-
setGranted
Whether or not authorization for `resource` and `permission` was granted.
bool granted = 3;
- Parameters:
value
- The granted to set.- Returns:
- This builder for chaining.
-
clearGranted
Whether or not authorization for `resource` and `permission` was granted.
bool granted = 3;
- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasResourceAttributes
in interfaceAuthorizationInfoOrBuilder
- Returns:
- Whether the resourceAttributes field is set.
-
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;
- Specified by:
getResourceAttributes
in interfaceAuthorizationInfoOrBuilder
- Returns:
- The resourceAttributes.
-
setResourceAttributes
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;
-
setResourceAttributes
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;
-
mergeResourceAttributes
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;
-
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;
-
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;
-
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;
- Specified by:
getResourceAttributesOrBuilder
in interfaceAuthorizationInfoOrBuilder
-
setUnknownFields
public final AuthorizationInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>
-
mergeUnknownFields
public final AuthorizationInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>
-