Package com.google.cloud.audit
Class AuthorizationInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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 typegoogle.cloud.audit.AuthorizationInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorizationInfo.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AuthorizationInfobuild()AuthorizationInfobuildPartial()AuthorizationInfo.Builderclear()AuthorizationInfo.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AuthorizationInfo.BuilderclearGranted()Whether or not authorization for `resource` and `permission` was granted.AuthorizationInfo.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AuthorizationInfo.BuilderclearPermission()The required IAM permission.AuthorizationInfo.BuilderclearResource()The resource being accessed, as a REST-style or cloud resource string.AuthorizationInfo.BuilderclearResourceAttributes()Resource attributes used in IAM condition evaluation.AuthorizationInfo.Builderclone()AuthorizationInfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetGranted()Whether or not authorization for `resource` and `permission` was granted.StringgetPermission()The required IAM permission.com.google.protobuf.ByteStringgetPermissionBytes()The required IAM permission.StringgetResource()The resource being accessed, as a REST-style or cloud resource string.AttributeContext.ResourcegetResourceAttributes()Resource attributes used in IAM condition evaluation.AttributeContext.Resource.BuildergetResourceAttributesBuilder()Resource attributes used in IAM condition evaluation.AttributeContext.ResourceOrBuildergetResourceAttributesOrBuilder()Resource attributes used in IAM condition evaluation.com.google.protobuf.ByteStringgetResourceBytes()The resource being accessed, as a REST-style or cloud resource string.booleanhasResourceAttributes()Resource attributes used in IAM condition evaluation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AuthorizationInfo.BuildermergeFrom(AuthorizationInfo other)AuthorizationInfo.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AuthorizationInfo.BuildermergeFrom(com.google.protobuf.Message other)AuthorizationInfo.BuildermergeResourceAttributes(AttributeContext.Resource value)Resource attributes used in IAM condition evaluation.AuthorizationInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AuthorizationInfo.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AuthorizationInfo.BuildersetGranted(boolean value)Whether or not authorization for `resource` and `permission` was granted.AuthorizationInfo.BuildersetPermission(String value)The required IAM permission.AuthorizationInfo.BuildersetPermissionBytes(com.google.protobuf.ByteString value)The required IAM permission.AuthorizationInfo.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AuthorizationInfo.BuildersetResource(String value)The resource being accessed, as a REST-style or cloud resource string.AuthorizationInfo.BuildersetResourceAttributes(AttributeContext.Resource value)Resource attributes used in IAM condition evaluation.AuthorizationInfo.BuildersetResourceAttributes(AttributeContext.Resource.Builder builderForValue)Resource attributes used in IAM condition evaluation.AuthorizationInfo.BuildersetResourceBytes(com.google.protobuf.ByteString value)The resource being accessed, as a REST-style or cloud resource string.AuthorizationInfo.BuildersetUnknownFields(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, internalGetMutableMapField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>
-
clear
public AuthorizationInfo.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>
-
getDefaultInstanceForType
public AuthorizationInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AuthorizationInfo build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AuthorizationInfo buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AuthorizationInfo.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>
-
setField
public AuthorizationInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>
-
clearField
public AuthorizationInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>
-
clearOneof
public AuthorizationInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>
-
setRepeatedField
public AuthorizationInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>
-
addRepeatedField
public AuthorizationInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>
-
mergeFrom
public AuthorizationInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AuthorizationInfo.Builder>
-
mergeFrom
public AuthorizationInfo.Builder mergeFrom(AuthorizationInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AuthorizationInfo.Builder>- Throws:
IOException
-
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/DATASETIDstring resource = 1;- Specified by:
getResourcein 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/DATASETIDstring resource = 1;- Specified by:
getResourceBytesin interfaceAuthorizationInfoOrBuilder- Returns:
- The bytes for resource.
-
setResource
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/DATASETIDstring resource = 1;- Parameters:
value- The resource to set.- Returns:
- 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/DATASETIDstring resource = 1;- Returns:
- This builder for chaining.
-
setResourceBytes
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/DATASETIDstring resource = 1;- Parameters:
value- The bytes for resource to set.- Returns:
- This builder for chaining.
-
getPermission
public String getPermission()
The required IAM permission.
string permission = 2;- Specified by:
getPermissionin interfaceAuthorizationInfoOrBuilder- Returns:
- The permission.
-
getPermissionBytes
public com.google.protobuf.ByteString getPermissionBytes()
The required IAM permission.
string permission = 2;- Specified by:
getPermissionBytesin interfaceAuthorizationInfoOrBuilder- Returns:
- The bytes for permission.
-
setPermission
public AuthorizationInfo.Builder setPermission(String value)
The required IAM permission.
string permission = 2;- Parameters:
value- The permission to set.- Returns:
- This builder for chaining.
-
clearPermission
public AuthorizationInfo.Builder clearPermission()
The required IAM permission.
string permission = 2;- Returns:
- This builder for chaining.
-
setPermissionBytes
public AuthorizationInfo.Builder setPermissionBytes(com.google.protobuf.ByteString value)
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:
getGrantedin interfaceAuthorizationInfoOrBuilder- Returns:
- The granted.
-
setGranted
public AuthorizationInfo.Builder setGranted(boolean value)
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
public AuthorizationInfo.Builder 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:
hasResourceAttributesin interfaceAuthorizationInfoOrBuilder- Returns:
- Whether the resourceAttributes field is set.
-
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;- Specified by:
getResourceAttributesin interfaceAuthorizationInfoOrBuilder- Returns:
- The resourceAttributes.
-
setResourceAttributes
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;
-
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
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;
-
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;
-
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;
-
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;- Specified by:
getResourceAttributesOrBuilderin interfaceAuthorizationInfoOrBuilder
-
setUnknownFields
public final AuthorizationInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>
-
mergeUnknownFields
public final AuthorizationInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationInfo.Builder>
-
-