Class AuditLog.Builder

  • All Implemented Interfaces:
    AuditLogOrBuilder, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    AuditLog

    public static final class AuditLog.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AuditLog.Builder>
    implements AuditLogOrBuilder
     Common audit log format for Google Cloud Platform API operations.
     
    Protobuf type google.cloud.audit.AuditLog
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Overrides:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AuditLog.Builder>
      • clear

        public AuditLog.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<AuditLog.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AuditLog.Builder>
      • getDefaultInstanceForType

        public AuditLog getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public AuditLog build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public AuditLog buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public AuditLog.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<AuditLog.Builder>
      • setField

        public AuditLog.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                         java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<AuditLog.Builder>
      • clearField

        public AuditLog.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AuditLog.Builder>
      • clearOneof

        public AuditLog.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AuditLog.Builder>
      • setRepeatedField

        public AuditLog.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 int index,
                                                 java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AuditLog.Builder>
      • addRepeatedField

        public AuditLog.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AuditLog.Builder>
      • mergeFrom

        public AuditLog.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AuditLog.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,​AuditLog.Builder>
      • mergeFrom

        public AuditLog.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AuditLog.Builder>
        Throws:
        java.io.IOException
      • getServiceName

        public java.lang.String getServiceName()
         The name of the API service performing the operation. For example,
         `"compute.googleapis.com"`.
         
        string service_name = 7;
        Specified by:
        getServiceName in interface AuditLogOrBuilder
        Returns:
        The serviceName.
      • getServiceNameBytes

        public com.google.protobuf.ByteString getServiceNameBytes()
         The name of the API service performing the operation. For example,
         `"compute.googleapis.com"`.
         
        string service_name = 7;
        Specified by:
        getServiceNameBytes in interface AuditLogOrBuilder
        Returns:
        The bytes for serviceName.
      • setServiceName

        public AuditLog.Builder setServiceName​(java.lang.String value)
         The name of the API service performing the operation. For example,
         `"compute.googleapis.com"`.
         
        string service_name = 7;
        Parameters:
        value - The serviceName to set.
        Returns:
        This builder for chaining.
      • clearServiceName

        public AuditLog.Builder clearServiceName()
         The name of the API service performing the operation. For example,
         `"compute.googleapis.com"`.
         
        string service_name = 7;
        Returns:
        This builder for chaining.
      • setServiceNameBytes

        public AuditLog.Builder setServiceNameBytes​(com.google.protobuf.ByteString value)
         The name of the API service performing the operation. For example,
         `"compute.googleapis.com"`.
         
        string service_name = 7;
        Parameters:
        value - The bytes for serviceName to set.
        Returns:
        This builder for chaining.
      • getMethodName

        public java.lang.String getMethodName()
         The name of the service method or operation.
         For API calls, this should be the name of the API method.
         For example,
        
             "google.cloud.bigquery.v2.TableService.InsertTable"
             "google.logging.v2.ConfigServiceV2.CreateSink"
         
        string method_name = 8;
        Specified by:
        getMethodName in interface AuditLogOrBuilder
        Returns:
        The methodName.
      • getMethodNameBytes

        public com.google.protobuf.ByteString getMethodNameBytes()
         The name of the service method or operation.
         For API calls, this should be the name of the API method.
         For example,
        
             "google.cloud.bigquery.v2.TableService.InsertTable"
             "google.logging.v2.ConfigServiceV2.CreateSink"
         
        string method_name = 8;
        Specified by:
        getMethodNameBytes in interface AuditLogOrBuilder
        Returns:
        The bytes for methodName.
      • setMethodName

        public AuditLog.Builder setMethodName​(java.lang.String value)
         The name of the service method or operation.
         For API calls, this should be the name of the API method.
         For example,
        
             "google.cloud.bigquery.v2.TableService.InsertTable"
             "google.logging.v2.ConfigServiceV2.CreateSink"
         
        string method_name = 8;
        Parameters:
        value - The methodName to set.
        Returns:
        This builder for chaining.
      • clearMethodName

        public AuditLog.Builder clearMethodName()
         The name of the service method or operation.
         For API calls, this should be the name of the API method.
         For example,
        
             "google.cloud.bigquery.v2.TableService.InsertTable"
             "google.logging.v2.ConfigServiceV2.CreateSink"
         
        string method_name = 8;
        Returns:
        This builder for chaining.
      • setMethodNameBytes

        public AuditLog.Builder setMethodNameBytes​(com.google.protobuf.ByteString value)
         The name of the service method or operation.
         For API calls, this should be the name of the API method.
         For example,
        
             "google.cloud.bigquery.v2.TableService.InsertTable"
             "google.logging.v2.ConfigServiceV2.CreateSink"
         
        string method_name = 8;
        Parameters:
        value - The bytes for methodName to set.
        Returns:
        This builder for chaining.
      • getResourceName

        public java.lang.String getResourceName()
         The resource or collection that is the target of the operation.
         The name is a scheme-less URI, not including the API service name.
         For example:
        
             "projects/PROJECT_ID/zones/us-central1-a/instances"
             "projects/PROJECT_ID/datasets/DATASET_ID"
         
        string resource_name = 11;
        Specified by:
        getResourceName in interface AuditLogOrBuilder
        Returns:
        The resourceName.
      • getResourceNameBytes

        public com.google.protobuf.ByteString getResourceNameBytes()
         The resource or collection that is the target of the operation.
         The name is a scheme-less URI, not including the API service name.
         For example:
        
             "projects/PROJECT_ID/zones/us-central1-a/instances"
             "projects/PROJECT_ID/datasets/DATASET_ID"
         
        string resource_name = 11;
        Specified by:
        getResourceNameBytes in interface AuditLogOrBuilder
        Returns:
        The bytes for resourceName.
      • setResourceName

        public AuditLog.Builder setResourceName​(java.lang.String value)
         The resource or collection that is the target of the operation.
         The name is a scheme-less URI, not including the API service name.
         For example:
        
             "projects/PROJECT_ID/zones/us-central1-a/instances"
             "projects/PROJECT_ID/datasets/DATASET_ID"
         
        string resource_name = 11;
        Parameters:
        value - The resourceName to set.
        Returns:
        This builder for chaining.
      • clearResourceName

        public AuditLog.Builder clearResourceName()
         The resource or collection that is the target of the operation.
         The name is a scheme-less URI, not including the API service name.
         For example:
        
             "projects/PROJECT_ID/zones/us-central1-a/instances"
             "projects/PROJECT_ID/datasets/DATASET_ID"
         
        string resource_name = 11;
        Returns:
        This builder for chaining.
      • setResourceNameBytes

        public AuditLog.Builder setResourceNameBytes​(com.google.protobuf.ByteString value)
         The resource or collection that is the target of the operation.
         The name is a scheme-less URI, not including the API service name.
         For example:
        
             "projects/PROJECT_ID/zones/us-central1-a/instances"
             "projects/PROJECT_ID/datasets/DATASET_ID"
         
        string resource_name = 11;
        Parameters:
        value - The bytes for resourceName to set.
        Returns:
        This builder for chaining.
      • hasResourceLocation

        public boolean hasResourceLocation()
         The resource location information.
         
        .google.cloud.audit.ResourceLocation resource_location = 20;
        Specified by:
        hasResourceLocation in interface AuditLogOrBuilder
        Returns:
        Whether the resourceLocation field is set.
      • getResourceLocation

        public ResourceLocation getResourceLocation()
         The resource location information.
         
        .google.cloud.audit.ResourceLocation resource_location = 20;
        Specified by:
        getResourceLocation in interface AuditLogOrBuilder
        Returns:
        The resourceLocation.
      • setResourceLocation

        public AuditLog.Builder setResourceLocation​(ResourceLocation value)
         The resource location information.
         
        .google.cloud.audit.ResourceLocation resource_location = 20;
      • setResourceLocation

        public AuditLog.Builder setResourceLocation​(ResourceLocation.Builder builderForValue)
         The resource location information.
         
        .google.cloud.audit.ResourceLocation resource_location = 20;
      • mergeResourceLocation

        public AuditLog.Builder mergeResourceLocation​(ResourceLocation value)
         The resource location information.
         
        .google.cloud.audit.ResourceLocation resource_location = 20;
      • clearResourceLocation

        public AuditLog.Builder clearResourceLocation()
         The resource location information.
         
        .google.cloud.audit.ResourceLocation resource_location = 20;
      • getResourceLocationBuilder

        public ResourceLocation.Builder getResourceLocationBuilder()
         The resource location information.
         
        .google.cloud.audit.ResourceLocation resource_location = 20;
      • hasResourceOriginalState

        public boolean hasResourceOriginalState()
         The resource's original state before mutation. Present only for
         operations which have successfully modified the targeted resource(s).
         In general, this field should contain all changed fields, except those
         that are already been included in `request`, `response`, `metadata` or
         `service_data` fields.
         When the JSON object represented here has a proto equivalent,
         the proto name will be indicated in the `@type` property.
         
        .google.protobuf.Struct resource_original_state = 19;
        Specified by:
        hasResourceOriginalState in interface AuditLogOrBuilder
        Returns:
        Whether the resourceOriginalState field is set.
      • getResourceOriginalState

        public com.google.protobuf.Struct getResourceOriginalState()
         The resource's original state before mutation. Present only for
         operations which have successfully modified the targeted resource(s).
         In general, this field should contain all changed fields, except those
         that are already been included in `request`, `response`, `metadata` or
         `service_data` fields.
         When the JSON object represented here has a proto equivalent,
         the proto name will be indicated in the `@type` property.
         
        .google.protobuf.Struct resource_original_state = 19;
        Specified by:
        getResourceOriginalState in interface AuditLogOrBuilder
        Returns:
        The resourceOriginalState.
      • setResourceOriginalState

        public AuditLog.Builder setResourceOriginalState​(com.google.protobuf.Struct value)
         The resource's original state before mutation. Present only for
         operations which have successfully modified the targeted resource(s).
         In general, this field should contain all changed fields, except those
         that are already been included in `request`, `response`, `metadata` or
         `service_data` fields.
         When the JSON object represented here has a proto equivalent,
         the proto name will be indicated in the `@type` property.
         
        .google.protobuf.Struct resource_original_state = 19;
      • setResourceOriginalState

        public AuditLog.Builder setResourceOriginalState​(com.google.protobuf.Struct.Builder builderForValue)
         The resource's original state before mutation. Present only for
         operations which have successfully modified the targeted resource(s).
         In general, this field should contain all changed fields, except those
         that are already been included in `request`, `response`, `metadata` or
         `service_data` fields.
         When the JSON object represented here has a proto equivalent,
         the proto name will be indicated in the `@type` property.
         
        .google.protobuf.Struct resource_original_state = 19;
      • mergeResourceOriginalState

        public AuditLog.Builder mergeResourceOriginalState​(com.google.protobuf.Struct value)
         The resource's original state before mutation. Present only for
         operations which have successfully modified the targeted resource(s).
         In general, this field should contain all changed fields, except those
         that are already been included in `request`, `response`, `metadata` or
         `service_data` fields.
         When the JSON object represented here has a proto equivalent,
         the proto name will be indicated in the `@type` property.
         
        .google.protobuf.Struct resource_original_state = 19;
      • clearResourceOriginalState

        public AuditLog.Builder clearResourceOriginalState()
         The resource's original state before mutation. Present only for
         operations which have successfully modified the targeted resource(s).
         In general, this field should contain all changed fields, except those
         that are already been included in `request`, `response`, `metadata` or
         `service_data` fields.
         When the JSON object represented here has a proto equivalent,
         the proto name will be indicated in the `@type` property.
         
        .google.protobuf.Struct resource_original_state = 19;
      • getResourceOriginalStateBuilder

        public com.google.protobuf.Struct.Builder getResourceOriginalStateBuilder()
         The resource's original state before mutation. Present only for
         operations which have successfully modified the targeted resource(s).
         In general, this field should contain all changed fields, except those
         that are already been included in `request`, `response`, `metadata` or
         `service_data` fields.
         When the JSON object represented here has a proto equivalent,
         the proto name will be indicated in the `@type` property.
         
        .google.protobuf.Struct resource_original_state = 19;
      • getResourceOriginalStateOrBuilder

        public com.google.protobuf.StructOrBuilder getResourceOriginalStateOrBuilder()
         The resource's original state before mutation. Present only for
         operations which have successfully modified the targeted resource(s).
         In general, this field should contain all changed fields, except those
         that are already been included in `request`, `response`, `metadata` or
         `service_data` fields.
         When the JSON object represented here has a proto equivalent,
         the proto name will be indicated in the `@type` property.
         
        .google.protobuf.Struct resource_original_state = 19;
        Specified by:
        getResourceOriginalStateOrBuilder in interface AuditLogOrBuilder
      • getNumResponseItems

        public long getNumResponseItems()
         The number of items returned from a List or Query API method,
         if applicable.
         
        int64 num_response_items = 12;
        Specified by:
        getNumResponseItems in interface AuditLogOrBuilder
        Returns:
        The numResponseItems.
      • setNumResponseItems

        public AuditLog.Builder setNumResponseItems​(long value)
         The number of items returned from a List or Query API method,
         if applicable.
         
        int64 num_response_items = 12;
        Parameters:
        value - The numResponseItems to set.
        Returns:
        This builder for chaining.
      • clearNumResponseItems

        public AuditLog.Builder clearNumResponseItems()
         The number of items returned from a List or Query API method,
         if applicable.
         
        int64 num_response_items = 12;
        Returns:
        This builder for chaining.
      • hasStatus

        public boolean hasStatus()
         The status of the overall operation.
         
        .google.rpc.Status status = 2;
        Specified by:
        hasStatus in interface AuditLogOrBuilder
        Returns:
        Whether the status field is set.
      • getStatus

        public Status getStatus()
         The status of the overall operation.
         
        .google.rpc.Status status = 2;
        Specified by:
        getStatus in interface AuditLogOrBuilder
        Returns:
        The status.
      • setStatus

        public AuditLog.Builder setStatus​(Status value)
         The status of the overall operation.
         
        .google.rpc.Status status = 2;
      • setStatus

        public AuditLog.Builder setStatus​(Status.Builder builderForValue)
         The status of the overall operation.
         
        .google.rpc.Status status = 2;
      • mergeStatus

        public AuditLog.Builder mergeStatus​(Status value)
         The status of the overall operation.
         
        .google.rpc.Status status = 2;
      • clearStatus

        public AuditLog.Builder clearStatus()
         The status of the overall operation.
         
        .google.rpc.Status status = 2;
      • getStatusBuilder

        public Status.Builder getStatusBuilder()
         The status of the overall operation.
         
        .google.rpc.Status status = 2;
      • hasAuthenticationInfo

        public boolean hasAuthenticationInfo()
         Authentication information.
         
        .google.cloud.audit.AuthenticationInfo authentication_info = 3;
        Specified by:
        hasAuthenticationInfo in interface AuditLogOrBuilder
        Returns:
        Whether the authenticationInfo field is set.
      • setAuthenticationInfo

        public AuditLog.Builder setAuthenticationInfo​(AuthenticationInfo value)
         Authentication information.
         
        .google.cloud.audit.AuthenticationInfo authentication_info = 3;
      • setAuthenticationInfo

        public AuditLog.Builder setAuthenticationInfo​(AuthenticationInfo.Builder builderForValue)
         Authentication information.
         
        .google.cloud.audit.AuthenticationInfo authentication_info = 3;
      • mergeAuthenticationInfo

        public AuditLog.Builder mergeAuthenticationInfo​(AuthenticationInfo value)
         Authentication information.
         
        .google.cloud.audit.AuthenticationInfo authentication_info = 3;
      • clearAuthenticationInfo

        public AuditLog.Builder clearAuthenticationInfo()
         Authentication information.
         
        .google.cloud.audit.AuthenticationInfo authentication_info = 3;
      • getAuthenticationInfoBuilder

        public AuthenticationInfo.Builder getAuthenticationInfoBuilder()
         Authentication information.
         
        .google.cloud.audit.AuthenticationInfo authentication_info = 3;
      • getAuthorizationInfoList

        public java.util.List<AuthorizationInfo> getAuthorizationInfoList()
         Authorization information. If there are multiple
         resources or permissions involved, then there is
         one AuthorizationInfo element for each {resource, permission} tuple.
         
        repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
        Specified by:
        getAuthorizationInfoList in interface AuditLogOrBuilder
      • getAuthorizationInfoCount

        public int getAuthorizationInfoCount()
         Authorization information. If there are multiple
         resources or permissions involved, then there is
         one AuthorizationInfo element for each {resource, permission} tuple.
         
        repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
        Specified by:
        getAuthorizationInfoCount in interface AuditLogOrBuilder
      • getAuthorizationInfo

        public AuthorizationInfo getAuthorizationInfo​(int index)
         Authorization information. If there are multiple
         resources or permissions involved, then there is
         one AuthorizationInfo element for each {resource, permission} tuple.
         
        repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
        Specified by:
        getAuthorizationInfo in interface AuditLogOrBuilder
      • setAuthorizationInfo

        public AuditLog.Builder setAuthorizationInfo​(int index,
                                                     AuthorizationInfo value)
         Authorization information. If there are multiple
         resources or permissions involved, then there is
         one AuthorizationInfo element for each {resource, permission} tuple.
         
        repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
      • setAuthorizationInfo

        public AuditLog.Builder setAuthorizationInfo​(int index,
                                                     AuthorizationInfo.Builder builderForValue)
         Authorization information. If there are multiple
         resources or permissions involved, then there is
         one AuthorizationInfo element for each {resource, permission} tuple.
         
        repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
      • addAuthorizationInfo

        public AuditLog.Builder addAuthorizationInfo​(AuthorizationInfo value)
         Authorization information. If there are multiple
         resources or permissions involved, then there is
         one AuthorizationInfo element for each {resource, permission} tuple.
         
        repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
      • addAuthorizationInfo

        public AuditLog.Builder addAuthorizationInfo​(int index,
                                                     AuthorizationInfo value)
         Authorization information. If there are multiple
         resources or permissions involved, then there is
         one AuthorizationInfo element for each {resource, permission} tuple.
         
        repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
      • addAuthorizationInfo

        public AuditLog.Builder addAuthorizationInfo​(AuthorizationInfo.Builder builderForValue)
         Authorization information. If there are multiple
         resources or permissions involved, then there is
         one AuthorizationInfo element for each {resource, permission} tuple.
         
        repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
      • addAuthorizationInfo

        public AuditLog.Builder addAuthorizationInfo​(int index,
                                                     AuthorizationInfo.Builder builderForValue)
         Authorization information. If there are multiple
         resources or permissions involved, then there is
         one AuthorizationInfo element for each {resource, permission} tuple.
         
        repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
      • addAllAuthorizationInfo

        public AuditLog.Builder addAllAuthorizationInfo​(java.lang.Iterable<? extends AuthorizationInfo> values)
         Authorization information. If there are multiple
         resources or permissions involved, then there is
         one AuthorizationInfo element for each {resource, permission} tuple.
         
        repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
      • clearAuthorizationInfo

        public AuditLog.Builder clearAuthorizationInfo()
         Authorization information. If there are multiple
         resources or permissions involved, then there is
         one AuthorizationInfo element for each {resource, permission} tuple.
         
        repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
      • removeAuthorizationInfo

        public AuditLog.Builder removeAuthorizationInfo​(int index)
         Authorization information. If there are multiple
         resources or permissions involved, then there is
         one AuthorizationInfo element for each {resource, permission} tuple.
         
        repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
      • getAuthorizationInfoBuilder

        public AuthorizationInfo.Builder getAuthorizationInfoBuilder​(int index)
         Authorization information. If there are multiple
         resources or permissions involved, then there is
         one AuthorizationInfo element for each {resource, permission} tuple.
         
        repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
      • getAuthorizationInfoOrBuilder

        public AuthorizationInfoOrBuilder getAuthorizationInfoOrBuilder​(int index)
         Authorization information. If there are multiple
         resources or permissions involved, then there is
         one AuthorizationInfo element for each {resource, permission} tuple.
         
        repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
        Specified by:
        getAuthorizationInfoOrBuilder in interface AuditLogOrBuilder
      • getAuthorizationInfoOrBuilderList

        public java.util.List<? extends AuthorizationInfoOrBuilder> getAuthorizationInfoOrBuilderList()
         Authorization information. If there are multiple
         resources or permissions involved, then there is
         one AuthorizationInfo element for each {resource, permission} tuple.
         
        repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
        Specified by:
        getAuthorizationInfoOrBuilderList in interface AuditLogOrBuilder
      • addAuthorizationInfoBuilder

        public AuthorizationInfo.Builder addAuthorizationInfoBuilder()
         Authorization information. If there are multiple
         resources or permissions involved, then there is
         one AuthorizationInfo element for each {resource, permission} tuple.
         
        repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
      • addAuthorizationInfoBuilder

        public AuthorizationInfo.Builder addAuthorizationInfoBuilder​(int index)
         Authorization information. If there are multiple
         resources or permissions involved, then there is
         one AuthorizationInfo element for each {resource, permission} tuple.
         
        repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
      • getAuthorizationInfoBuilderList

        public java.util.List<AuthorizationInfo.Builder> getAuthorizationInfoBuilderList()
         Authorization information. If there are multiple
         resources or permissions involved, then there is
         one AuthorizationInfo element for each {resource, permission} tuple.
         
        repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
      • hasPolicyViolationInfo

        public boolean hasPolicyViolationInfo()
         Indicates the policy violations for this request. If the request
         is denied by the policy, violation information will be logged
         here.
         
        .google.cloud.audit.PolicyViolationInfo policy_violation_info = 25;
        Specified by:
        hasPolicyViolationInfo in interface AuditLogOrBuilder
        Returns:
        Whether the policyViolationInfo field is set.
      • getPolicyViolationInfo

        public PolicyViolationInfo getPolicyViolationInfo()
         Indicates the policy violations for this request. If the request
         is denied by the policy, violation information will be logged
         here.
         
        .google.cloud.audit.PolicyViolationInfo policy_violation_info = 25;
        Specified by:
        getPolicyViolationInfo in interface AuditLogOrBuilder
        Returns:
        The policyViolationInfo.
      • setPolicyViolationInfo

        public AuditLog.Builder setPolicyViolationInfo​(PolicyViolationInfo value)
         Indicates the policy violations for this request. If the request
         is denied by the policy, violation information will be logged
         here.
         
        .google.cloud.audit.PolicyViolationInfo policy_violation_info = 25;
      • setPolicyViolationInfo

        public AuditLog.Builder setPolicyViolationInfo​(PolicyViolationInfo.Builder builderForValue)
         Indicates the policy violations for this request. If the request
         is denied by the policy, violation information will be logged
         here.
         
        .google.cloud.audit.PolicyViolationInfo policy_violation_info = 25;
      • mergePolicyViolationInfo

        public AuditLog.Builder mergePolicyViolationInfo​(PolicyViolationInfo value)
         Indicates the policy violations for this request. If the request
         is denied by the policy, violation information will be logged
         here.
         
        .google.cloud.audit.PolicyViolationInfo policy_violation_info = 25;
      • clearPolicyViolationInfo

        public AuditLog.Builder clearPolicyViolationInfo()
         Indicates the policy violations for this request. If the request
         is denied by the policy, violation information will be logged
         here.
         
        .google.cloud.audit.PolicyViolationInfo policy_violation_info = 25;
      • getPolicyViolationInfoBuilder

        public PolicyViolationInfo.Builder getPolicyViolationInfoBuilder()
         Indicates the policy violations for this request. If the request
         is denied by the policy, violation information will be logged
         here.
         
        .google.cloud.audit.PolicyViolationInfo policy_violation_info = 25;
      • getPolicyViolationInfoOrBuilder

        public PolicyViolationInfoOrBuilder getPolicyViolationInfoOrBuilder()
         Indicates the policy violations for this request. If the request
         is denied by the policy, violation information will be logged
         here.
         
        .google.cloud.audit.PolicyViolationInfo policy_violation_info = 25;
        Specified by:
        getPolicyViolationInfoOrBuilder in interface AuditLogOrBuilder
      • hasRequestMetadata

        public boolean hasRequestMetadata()
         Metadata about the operation.
         
        .google.cloud.audit.RequestMetadata request_metadata = 4;
        Specified by:
        hasRequestMetadata in interface AuditLogOrBuilder
        Returns:
        Whether the requestMetadata field is set.
      • getRequestMetadata

        public RequestMetadata getRequestMetadata()
         Metadata about the operation.
         
        .google.cloud.audit.RequestMetadata request_metadata = 4;
        Specified by:
        getRequestMetadata in interface AuditLogOrBuilder
        Returns:
        The requestMetadata.
      • setRequestMetadata

        public AuditLog.Builder setRequestMetadata​(RequestMetadata value)
         Metadata about the operation.
         
        .google.cloud.audit.RequestMetadata request_metadata = 4;
      • setRequestMetadata

        public AuditLog.Builder setRequestMetadata​(RequestMetadata.Builder builderForValue)
         Metadata about the operation.
         
        .google.cloud.audit.RequestMetadata request_metadata = 4;
      • mergeRequestMetadata

        public AuditLog.Builder mergeRequestMetadata​(RequestMetadata value)
         Metadata about the operation.
         
        .google.cloud.audit.RequestMetadata request_metadata = 4;
      • clearRequestMetadata

        public AuditLog.Builder clearRequestMetadata()
         Metadata about the operation.
         
        .google.cloud.audit.RequestMetadata request_metadata = 4;
      • getRequestMetadataBuilder

        public RequestMetadata.Builder getRequestMetadataBuilder()
         Metadata about the operation.
         
        .google.cloud.audit.RequestMetadata request_metadata = 4;
      • hasRequest

        public boolean hasRequest()
         The operation request. This may not include all request parameters,
         such as those that are too large, privacy-sensitive, or duplicated
         elsewhere in the log record.
         It should never include user-generated data, such as file contents.
         When the JSON object represented here has a proto equivalent, the proto
         name will be indicated in the `@type` property.
         
        .google.protobuf.Struct request = 16;
        Specified by:
        hasRequest in interface AuditLogOrBuilder
        Returns:
        Whether the request field is set.
      • getRequest

        public com.google.protobuf.Struct getRequest()
         The operation request. This may not include all request parameters,
         such as those that are too large, privacy-sensitive, or duplicated
         elsewhere in the log record.
         It should never include user-generated data, such as file contents.
         When the JSON object represented here has a proto equivalent, the proto
         name will be indicated in the `@type` property.
         
        .google.protobuf.Struct request = 16;
        Specified by:
        getRequest in interface AuditLogOrBuilder
        Returns:
        The request.
      • setRequest

        public AuditLog.Builder setRequest​(com.google.protobuf.Struct value)
         The operation request. This may not include all request parameters,
         such as those that are too large, privacy-sensitive, or duplicated
         elsewhere in the log record.
         It should never include user-generated data, such as file contents.
         When the JSON object represented here has a proto equivalent, the proto
         name will be indicated in the `@type` property.
         
        .google.protobuf.Struct request = 16;
      • setRequest

        public AuditLog.Builder setRequest​(com.google.protobuf.Struct.Builder builderForValue)
         The operation request. This may not include all request parameters,
         such as those that are too large, privacy-sensitive, or duplicated
         elsewhere in the log record.
         It should never include user-generated data, such as file contents.
         When the JSON object represented here has a proto equivalent, the proto
         name will be indicated in the `@type` property.
         
        .google.protobuf.Struct request = 16;
      • mergeRequest

        public AuditLog.Builder mergeRequest​(com.google.protobuf.Struct value)
         The operation request. This may not include all request parameters,
         such as those that are too large, privacy-sensitive, or duplicated
         elsewhere in the log record.
         It should never include user-generated data, such as file contents.
         When the JSON object represented here has a proto equivalent, the proto
         name will be indicated in the `@type` property.
         
        .google.protobuf.Struct request = 16;
      • clearRequest

        public AuditLog.Builder clearRequest()
         The operation request. This may not include all request parameters,
         such as those that are too large, privacy-sensitive, or duplicated
         elsewhere in the log record.
         It should never include user-generated data, such as file contents.
         When the JSON object represented here has a proto equivalent, the proto
         name will be indicated in the `@type` property.
         
        .google.protobuf.Struct request = 16;
      • getRequestBuilder

        public com.google.protobuf.Struct.Builder getRequestBuilder()
         The operation request. This may not include all request parameters,
         such as those that are too large, privacy-sensitive, or duplicated
         elsewhere in the log record.
         It should never include user-generated data, such as file contents.
         When the JSON object represented here has a proto equivalent, the proto
         name will be indicated in the `@type` property.
         
        .google.protobuf.Struct request = 16;
      • getRequestOrBuilder

        public com.google.protobuf.StructOrBuilder getRequestOrBuilder()
         The operation request. This may not include all request parameters,
         such as those that are too large, privacy-sensitive, or duplicated
         elsewhere in the log record.
         It should never include user-generated data, such as file contents.
         When the JSON object represented here has a proto equivalent, the proto
         name will be indicated in the `@type` property.
         
        .google.protobuf.Struct request = 16;
        Specified by:
        getRequestOrBuilder in interface AuditLogOrBuilder
      • hasResponse

        public boolean hasResponse()
         The operation response. This may not include all response elements,
         such as those that are too large, privacy-sensitive, or duplicated
         elsewhere in the log record.
         It should never include user-generated data, such as file contents.
         When the JSON object represented here has a proto equivalent, the proto
         name will be indicated in the `@type` property.
         
        .google.protobuf.Struct response = 17;
        Specified by:
        hasResponse in interface AuditLogOrBuilder
        Returns:
        Whether the response field is set.
      • getResponse

        public com.google.protobuf.Struct getResponse()
         The operation response. This may not include all response elements,
         such as those that are too large, privacy-sensitive, or duplicated
         elsewhere in the log record.
         It should never include user-generated data, such as file contents.
         When the JSON object represented here has a proto equivalent, the proto
         name will be indicated in the `@type` property.
         
        .google.protobuf.Struct response = 17;
        Specified by:
        getResponse in interface AuditLogOrBuilder
        Returns:
        The response.
      • setResponse

        public AuditLog.Builder setResponse​(com.google.protobuf.Struct value)
         The operation response. This may not include all response elements,
         such as those that are too large, privacy-sensitive, or duplicated
         elsewhere in the log record.
         It should never include user-generated data, such as file contents.
         When the JSON object represented here has a proto equivalent, the proto
         name will be indicated in the `@type` property.
         
        .google.protobuf.Struct response = 17;
      • setResponse

        public AuditLog.Builder setResponse​(com.google.protobuf.Struct.Builder builderForValue)
         The operation response. This may not include all response elements,
         such as those that are too large, privacy-sensitive, or duplicated
         elsewhere in the log record.
         It should never include user-generated data, such as file contents.
         When the JSON object represented here has a proto equivalent, the proto
         name will be indicated in the `@type` property.
         
        .google.protobuf.Struct response = 17;
      • mergeResponse

        public AuditLog.Builder mergeResponse​(com.google.protobuf.Struct value)
         The operation response. This may not include all response elements,
         such as those that are too large, privacy-sensitive, or duplicated
         elsewhere in the log record.
         It should never include user-generated data, such as file contents.
         When the JSON object represented here has a proto equivalent, the proto
         name will be indicated in the `@type` property.
         
        .google.protobuf.Struct response = 17;
      • clearResponse

        public AuditLog.Builder clearResponse()
         The operation response. This may not include all response elements,
         such as those that are too large, privacy-sensitive, or duplicated
         elsewhere in the log record.
         It should never include user-generated data, such as file contents.
         When the JSON object represented here has a proto equivalent, the proto
         name will be indicated in the `@type` property.
         
        .google.protobuf.Struct response = 17;
      • getResponseBuilder

        public com.google.protobuf.Struct.Builder getResponseBuilder()
         The operation response. This may not include all response elements,
         such as those that are too large, privacy-sensitive, or duplicated
         elsewhere in the log record.
         It should never include user-generated data, such as file contents.
         When the JSON object represented here has a proto equivalent, the proto
         name will be indicated in the `@type` property.
         
        .google.protobuf.Struct response = 17;
      • getResponseOrBuilder

        public com.google.protobuf.StructOrBuilder getResponseOrBuilder()
         The operation response. This may not include all response elements,
         such as those that are too large, privacy-sensitive, or duplicated
         elsewhere in the log record.
         It should never include user-generated data, such as file contents.
         When the JSON object represented here has a proto equivalent, the proto
         name will be indicated in the `@type` property.
         
        .google.protobuf.Struct response = 17;
        Specified by:
        getResponseOrBuilder in interface AuditLogOrBuilder
      • hasMetadata

        public boolean hasMetadata()
         Other service-specific data about the request, response, and other
         information associated with the current audited event.
         
        .google.protobuf.Struct metadata = 18;
        Specified by:
        hasMetadata in interface AuditLogOrBuilder
        Returns:
        Whether the metadata field is set.
      • getMetadata

        public com.google.protobuf.Struct getMetadata()
         Other service-specific data about the request, response, and other
         information associated with the current audited event.
         
        .google.protobuf.Struct metadata = 18;
        Specified by:
        getMetadata in interface AuditLogOrBuilder
        Returns:
        The metadata.
      • setMetadata

        public AuditLog.Builder setMetadata​(com.google.protobuf.Struct value)
         Other service-specific data about the request, response, and other
         information associated with the current audited event.
         
        .google.protobuf.Struct metadata = 18;
      • setMetadata

        public AuditLog.Builder setMetadata​(com.google.protobuf.Struct.Builder builderForValue)
         Other service-specific data about the request, response, and other
         information associated with the current audited event.
         
        .google.protobuf.Struct metadata = 18;
      • mergeMetadata

        public AuditLog.Builder mergeMetadata​(com.google.protobuf.Struct value)
         Other service-specific data about the request, response, and other
         information associated with the current audited event.
         
        .google.protobuf.Struct metadata = 18;
      • clearMetadata

        public AuditLog.Builder clearMetadata()
         Other service-specific data about the request, response, and other
         information associated with the current audited event.
         
        .google.protobuf.Struct metadata = 18;
      • getMetadataBuilder

        public com.google.protobuf.Struct.Builder getMetadataBuilder()
         Other service-specific data about the request, response, and other
         information associated with the current audited event.
         
        .google.protobuf.Struct metadata = 18;
      • getMetadataOrBuilder

        public com.google.protobuf.StructOrBuilder getMetadataOrBuilder()
         Other service-specific data about the request, response, and other
         information associated with the current audited event.
         
        .google.protobuf.Struct metadata = 18;
        Specified by:
        getMetadataOrBuilder in interface AuditLogOrBuilder
      • hasServiceData

        @Deprecated
        public boolean hasServiceData()
        Deprecated.
        google.cloud.audit.AuditLog.service_data is deprecated. See google/cloud/audit/audit_log.proto;l=110
         Deprecated. Use the `metadata` field instead.
         Other service-specific data about the request, response, and other
         activities.
         
        .google.protobuf.Any service_data = 15 [deprecated = true];
        Specified by:
        hasServiceData in interface AuditLogOrBuilder
        Returns:
        Whether the serviceData field is set.
      • getServiceData

        @Deprecated
        public com.google.protobuf.Any getServiceData()
        Deprecated.
        google.cloud.audit.AuditLog.service_data is deprecated. See google/cloud/audit/audit_log.proto;l=110
         Deprecated. Use the `metadata` field instead.
         Other service-specific data about the request, response, and other
         activities.
         
        .google.protobuf.Any service_data = 15 [deprecated = true];
        Specified by:
        getServiceData in interface AuditLogOrBuilder
        Returns:
        The serviceData.
      • setServiceData

        @Deprecated
        public AuditLog.Builder setServiceData​(com.google.protobuf.Any value)
        Deprecated.
         Deprecated. Use the `metadata` field instead.
         Other service-specific data about the request, response, and other
         activities.
         
        .google.protobuf.Any service_data = 15 [deprecated = true];
      • setServiceData

        @Deprecated
        public AuditLog.Builder setServiceData​(com.google.protobuf.Any.Builder builderForValue)
        Deprecated.
         Deprecated. Use the `metadata` field instead.
         Other service-specific data about the request, response, and other
         activities.
         
        .google.protobuf.Any service_data = 15 [deprecated = true];
      • mergeServiceData

        @Deprecated
        public AuditLog.Builder mergeServiceData​(com.google.protobuf.Any value)
        Deprecated.
         Deprecated. Use the `metadata` field instead.
         Other service-specific data about the request, response, and other
         activities.
         
        .google.protobuf.Any service_data = 15 [deprecated = true];
      • clearServiceData

        @Deprecated
        public AuditLog.Builder clearServiceData()
        Deprecated.
         Deprecated. Use the `metadata` field instead.
         Other service-specific data about the request, response, and other
         activities.
         
        .google.protobuf.Any service_data = 15 [deprecated = true];
      • getServiceDataBuilder

        @Deprecated
        public com.google.protobuf.Any.Builder getServiceDataBuilder()
        Deprecated.
         Deprecated. Use the `metadata` field instead.
         Other service-specific data about the request, response, and other
         activities.
         
        .google.protobuf.Any service_data = 15 [deprecated = true];
      • getServiceDataOrBuilder

        @Deprecated
        public com.google.protobuf.AnyOrBuilder getServiceDataOrBuilder()
        Deprecated.
         Deprecated. Use the `metadata` field instead.
         Other service-specific data about the request, response, and other
         activities.
         
        .google.protobuf.Any service_data = 15 [deprecated = true];
        Specified by:
        getServiceDataOrBuilder in interface AuditLogOrBuilder
      • setUnknownFields

        public final AuditLog.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AuditLog.Builder>
      • mergeUnknownFields

        public final AuditLog.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AuditLog.Builder>