# Path: google/cloud/logging_v2/types/log_entry.py
# class LogEntry(proto.Message):
# class LogEntryOperation(proto.Message):
# class LogEntrySourceLocation(proto.Message):
# class LogSplit(proto.Message):


import proto  # type: ignore
from google.api import monitored_resource_pb2  # type: ignore
from google.cloud.logging_v2.types import log_entry
from google.protobuf import duration_pb2  # type: ignore
from google.rpc import status_pb2  # type: ignore
            available when calling ``entries.list``. However, those log
            entries can still be `exported with
            LogSinks <https://cloud.google.com/logging/docs/api/tasks/exporting-logs>`__.

            To improve throughput and to avoid exceeding the `quota
            limit <https://cloud.google.com/logging/quotas>`__ for calls
            to ``entries.write``, you should try to include several log
            entries in this list, rather than calling this method for
            each individual log entry.
        partial_success (bool):
            Optional. Whether valid entries should be written even if
            some other entries fail due to INVALID_ARGUMENT or
            PERMISSION_DENIED errors. If any entry is not written, then
            the response status is the error associated with one of the
            failed entries and the response includes error details keyed
            by the entries' zero-based index in the ``entries.write``
            method.
        dry_run (bool):
            Optional. If true, the request should expect
            normal response, but the entries won't be
            persisted nor exported. Useful for checking
            whether the logging API endpoints are working
            properly before sending valuable data.
    """

    log_name = proto.Field(proto.STRING, number=1,)
    resource = proto.Field(
        proto.MESSAGE, number=2, message=monitored_resource_pb2.MonitoredResource,
    )
    labels = proto.MapField(proto.STRING, proto.STRING, number=3,)

# Path: google/cloud/logging_v2/types/log_entry.py
# class LogEntry(proto.Message):
# class LogEntryOperation(proto.Message):
# class LogEntrySourceLocation(proto.Message):
# class LogSplit(proto.Message):


# Path: google/cloud/logging_v2/types/logging.py
import proto  # type: ignore
from google.api import monitored_resource_pb2  # type: ignore
from google.cloud.logging_v2.types import log_entry
from google.protobuf import duration_pb2  # type: ignore
from google.rpc import status_pb2  # type: ignore

            available when calling ``entries.list``. However, those log
            entries can still be `exported with
            LogSinks <https://cloud.google.com/logging/docs/api/tasks/exporting-logs>`__.

            To improve throughput and to avoid exceeding the `quota
            limit <https://cloud.google.com/logging/quotas>`__ for calls
            to ``entries.write``, you should try to include several log
            entries in this list, rather than calling this method for
            each individual log entry.
        partial_success (bool):
            Optional. Whether valid entries should be written even if
            some other entries fail due to INVALID_ARGUMENT or
            PERMISSION_DENIED errors. If any entry is not written, then
            the response status is the error associated with one of the
            failed entries and the response includes error details keyed
            by the entries' zero-based index in the ``entries.write``
            method.
        dry_run (bool):
            Optional. If true, the request should expect
            normal response, but the entries won't be
            persisted nor exported. Useful for checking
            whether the logging API endpoints are working
            properly before sending valuable data.
    """

    log_name = proto.Field(proto.STRING, number=1,)
    resource = proto.Field(
        proto.MESSAGE, number=2, message=monitored_resource_pb2.MonitoredResource,
    )
    labels = proto.MapField(proto.STRING, proto.STRING, number=3,)

    entries = proto.RepeatedField(proto.MESSAGE, number=4, message=log_entry.LogEntry,)