Class AuditLog

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.cloud.audit.AuditLog
All Implemented Interfaces:
AuditLogOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class AuditLog extends com.google.protobuf.GeneratedMessageV3 implements AuditLogOrBuilder
 Common audit log format for Google Cloud Platform API operations.
 
Protobuf type google.cloud.audit.AuditLog
See Also:
  • Field Details

    • SERVICE_NAME_FIELD_NUMBER

      public static final int SERVICE_NAME_FIELD_NUMBER
      See Also:
    • METHOD_NAME_FIELD_NUMBER

      public static final int METHOD_NAME_FIELD_NUMBER
      See Also:
    • RESOURCE_NAME_FIELD_NUMBER

      public static final int RESOURCE_NAME_FIELD_NUMBER
      See Also:
    • RESOURCE_LOCATION_FIELD_NUMBER

      public static final int RESOURCE_LOCATION_FIELD_NUMBER
      See Also:
    • RESOURCE_ORIGINAL_STATE_FIELD_NUMBER

      public static final int RESOURCE_ORIGINAL_STATE_FIELD_NUMBER
      See Also:
    • NUM_RESPONSE_ITEMS_FIELD_NUMBER

      public static final int NUM_RESPONSE_ITEMS_FIELD_NUMBER
      See Also:
    • STATUS_FIELD_NUMBER

      public static final int STATUS_FIELD_NUMBER
      See Also:
    • AUTHENTICATION_INFO_FIELD_NUMBER

      public static final int AUTHENTICATION_INFO_FIELD_NUMBER
      See Also:
    • AUTHORIZATION_INFO_FIELD_NUMBER

      public static final int AUTHORIZATION_INFO_FIELD_NUMBER
      See Also:
    • REQUEST_METADATA_FIELD_NUMBER

      public static final int REQUEST_METADATA_FIELD_NUMBER
      See Also:
    • REQUEST_FIELD_NUMBER

      public static final int REQUEST_FIELD_NUMBER
      See Also:
    • RESPONSE_FIELD_NUMBER

      public static final int RESPONSE_FIELD_NUMBER
      See Also:
    • METADATA_FIELD_NUMBER

      public static final int METADATA_FIELD_NUMBER
      See Also:
    • SERVICE_DATA_FIELD_NUMBER

      public static final int SERVICE_DATA_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getServiceName

      public 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.
    • getMethodName

      public 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.
    • getResourceName

      public 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.
    • 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.
    • getResourceLocationOrBuilder

      public ResourceLocationOrBuilder getResourceLocationOrBuilder()
       The resource location information.
       
      .google.cloud.audit.ResourceLocation resource_location = 20;
      Specified by:
      getResourceLocationOrBuilder in interface AuditLogOrBuilder
    • 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 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.
    • getResourceOriginalStateOrBuilder

      public 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.
    • 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.
    • getStatusOrBuilder

      public StatusOrBuilder getStatusOrBuilder()
       The status of the overall operation.
       
      .google.rpc.Status status = 2;
      Specified by:
      getStatusOrBuilder in interface AuditLogOrBuilder
    • 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.
    • getAuthenticationInfo

      public AuthenticationInfo getAuthenticationInfo()
       Authentication information.
       
      .google.cloud.audit.AuthenticationInfo authentication_info = 3;
      Specified by:
      getAuthenticationInfo in interface AuditLogOrBuilder
      Returns:
      The authenticationInfo.
    • getAuthenticationInfoOrBuilder

      public AuthenticationInfoOrBuilder getAuthenticationInfoOrBuilder()
       Authentication information.
       
      .google.cloud.audit.AuthenticationInfo authentication_info = 3;
      Specified by:
      getAuthenticationInfoOrBuilder in interface AuditLogOrBuilder
    • getAuthorizationInfoList

      public 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
    • getAuthorizationInfoOrBuilderList

      public 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
    • 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
    • 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
    • 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.
    • getRequestMetadataOrBuilder

      public RequestMetadataOrBuilder getRequestMetadataOrBuilder()
       Metadata about the operation.
       
      .google.cloud.audit.RequestMetadata request_metadata = 4;
      Specified by:
      getRequestMetadataOrBuilder in interface AuditLogOrBuilder
    • 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 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.
    • getRequestOrBuilder

      public 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 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.
    • getResponseOrBuilder

      public 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 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.
    • getMetadataOrBuilder

      public 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.
       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 Any getServiceData()
      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:
      getServiceData in interface AuditLogOrBuilder
      Returns:
      The serviceData.
    • getServiceDataOrBuilder

      @Deprecated public 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AuditLog parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuditLog parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuditLog parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuditLog parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuditLog parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuditLog parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuditLog parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AuditLog parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AuditLog parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AuditLog parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AuditLog parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AuditLog parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static AuditLog.Builder newBuilder()
    • newBuilder

      public static AuditLog.Builder newBuilder(AuditLog prototype)
    • toBuilder

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

      protected AuditLog.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static AuditLog getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AuditLog> parser()
    • getParserForType

      public com.google.protobuf.Parser<AuditLog> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public AuditLog getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder