mirror of
https://github.com/moby/moby.git
synced 2026-01-11 02:31:44 +00:00
vendor: cloud.google.com/go/logging v1.13.1
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
2
go.mod
2
go.mod
@@ -4,7 +4,7 @@ go 1.24.3
|
||||
|
||||
require (
|
||||
cloud.google.com/go/compute/metadata v0.8.0
|
||||
cloud.google.com/go/logging v1.13.0
|
||||
cloud.google.com/go/logging v1.13.1
|
||||
code.cloudfoundry.org/clock v1.37.0
|
||||
dario.cat/mergo v1.0.2
|
||||
github.com/AdaLogics/go-fuzz-headers v0.0.0-20240806141605-e8a1dd7889d6
|
||||
|
||||
4
go.sum
4
go.sum
@@ -10,8 +10,8 @@ cloud.google.com/go/compute/metadata v0.8.0 h1:HxMRIbao8w17ZX6wBnjhcDkW6lTFpgcao
|
||||
cloud.google.com/go/compute/metadata v0.8.0/go.mod h1:sYOGTp851OV9bOFJ9CH7elVvyzopvWQFNNghtDQ/Biw=
|
||||
cloud.google.com/go/iam v1.5.2 h1:qgFRAGEmd8z6dJ/qyEchAuL9jpswyODjA2lS+w234g8=
|
||||
cloud.google.com/go/iam v1.5.2/go.mod h1:SE1vg0N81zQqLzQEwxL2WI6yhetBdbNQuTvIKCSkUHE=
|
||||
cloud.google.com/go/logging v1.13.0 h1:7j0HgAp0B94o1YRDqiqm26w4q1rDMH7XNRU34lJXHYc=
|
||||
cloud.google.com/go/logging v1.13.0/go.mod h1:36CoKh6KA/M0PbhPKMq6/qety2DCAErbhXT62TuXALA=
|
||||
cloud.google.com/go/logging v1.13.1 h1:O7LvmO0kGLaHY/gq8cV7T0dyp6zJhYAOtZPX4TF3QtY=
|
||||
cloud.google.com/go/logging v1.13.1/go.mod h1:XAQkfkMBxQRjQek96WLPNze7vsOmay9H5PqfsNYDqvw=
|
||||
cloud.google.com/go/longrunning v0.6.7 h1:IGtfDWHhQCgCjwQjV9iiLnUta9LBCo8R9QmAFsS/PrE=
|
||||
cloud.google.com/go/longrunning v0.6.7/go.mod h1:EAFV3IZAKmM56TyiE6VAP3VoTzhZzySwI/YI1s/nRsY=
|
||||
code.cloudfoundry.org/clock v1.37.0 h1:7e/FmrQ8f3cJW1aR4jhKWaEimBp5Ub39dOeNXQHq8HM=
|
||||
|
||||
8
vendor/cloud.google.com/go/logging/CHANGES.md
generated
vendored
8
vendor/cloud.google.com/go/logging/CHANGES.md
generated
vendored
@@ -1,5 +1,13 @@
|
||||
# Changes
|
||||
|
||||
## [1.13.1](https://github.com/googleapis/google-cloud-go/compare/logging/v1.13.0...logging/v1.13.1) (2025-10-28)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **logging:** Upgrade gRPC service registration func ([486bd40](https://github.com/googleapis/google-cloud-go/commit/486bd406336fe91eae7c9040f2496ebfc8aee342))
|
||||
* **logging:** Upgrade gRPC service registration func ([#13139](https://github.com/googleapis/google-cloud-go/issues/13139)) ([39af2f9](https://github.com/googleapis/google-cloud-go/commit/39af2f9683b76ab290cc66b009ddc366fe63986b))
|
||||
|
||||
## [1.13.0](https://github.com/googleapis/google-cloud-go/compare/logging/v1.12.0...logging/v1.13.0) (2025-01-02)
|
||||
|
||||
|
||||
|
||||
2
vendor/cloud.google.com/go/logging/apiv2/auxiliary.go
generated
vendored
2
vendor/cloud.google.com/go/logging/apiv2/auxiliary.go
generated
vendored
@@ -1,4 +1,4 @@
|
||||
// Copyright 2024 Google LLC
|
||||
// Copyright 2025 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
||||
2
vendor/cloud.google.com/go/logging/apiv2/auxiliary_go123.go
generated
vendored
2
vendor/cloud.google.com/go/logging/apiv2/auxiliary_go123.go
generated
vendored
@@ -1,4 +1,4 @@
|
||||
// Copyright 2024 Google LLC
|
||||
// Copyright 2025 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
||||
6
vendor/cloud.google.com/go/logging/apiv2/config_client.go
generated
vendored
6
vendor/cloud.google.com/go/logging/apiv2/config_client.go
generated
vendored
@@ -1,4 +1,4 @@
|
||||
// Copyright 2024 Google LLC
|
||||
// Copyright 2025 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
@@ -828,7 +828,7 @@ func (c *configGRPCClient) Connection() *grpc.ClientConn {
|
||||
// use by Google-written clients.
|
||||
func (c *configGRPCClient) setGoogleClientInfo(keyval ...string) {
|
||||
kv := append([]string{"gl-go", gax.GoVersion}, keyval...)
|
||||
kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "grpc", grpc.Version)
|
||||
kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "grpc", grpc.Version, "pb", protoVersion)
|
||||
c.xGoogHeaders = []string{
|
||||
"x-goog-api-client", gax.XGoogHeader(kv...),
|
||||
}
|
||||
@@ -911,7 +911,7 @@ func defaultConfigRESTClientOptions() []option.ClientOption {
|
||||
// use by Google-written clients.
|
||||
func (c *configRESTClient) setGoogleClientInfo(keyval ...string) {
|
||||
kv := append([]string{"gl-go", gax.GoVersion}, keyval...)
|
||||
kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "rest", "UNKNOWN")
|
||||
kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "rest", "UNKNOWN", "pb", protoVersion)
|
||||
c.xGoogHeaders = []string{
|
||||
"x-goog-api-client", gax.XGoogHeader(kv...),
|
||||
}
|
||||
|
||||
2
vendor/cloud.google.com/go/logging/apiv2/doc.go
generated
vendored
2
vendor/cloud.google.com/go/logging/apiv2/doc.go
generated
vendored
@@ -1,4 +1,4 @@
|
||||
// Copyright 2024 Google LLC
|
||||
// Copyright 2025 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
||||
8
vendor/cloud.google.com/go/logging/apiv2/helpers.go
generated
vendored
8
vendor/cloud.google.com/go/logging/apiv2/helpers.go
generated
vendored
@@ -1,4 +1,4 @@
|
||||
// Copyright 2024 Google LLC
|
||||
// Copyright 2025 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
@@ -18,6 +18,7 @@ package logging
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"io"
|
||||
"log/slog"
|
||||
"net/http"
|
||||
@@ -28,10 +29,13 @@ import (
|
||||
"google.golang.org/api/option"
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"google.golang.org/protobuf/runtime/protoimpl"
|
||||
)
|
||||
|
||||
const serviceName = "logging.googleapis.com"
|
||||
|
||||
var protoVersion = fmt.Sprintf("1.%d", protoimpl.MaxVersion)
|
||||
|
||||
// For more information on implementing a client constructor hook, see
|
||||
// https://github.com/googleapis/google-cloud-go/wiki/Customizing-constructors.
|
||||
type clientHookParams struct{}
|
||||
@@ -69,7 +73,7 @@ func executeHTTPRequestWithResponse(ctx context.Context, client *http.Client, re
|
||||
return nil, nil, err
|
||||
}
|
||||
logger.DebugContext(ctx, "api response", "serviceName", serviceName, "rpcName", rpc, "response", internallog.HTTPResponse(resp, buf))
|
||||
if err = googleapi.CheckResponse(resp); err != nil {
|
||||
if err = googleapi.CheckResponseWithBody(resp, buf); err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
return buf, resp, nil
|
||||
|
||||
6
vendor/cloud.google.com/go/logging/apiv2/logging_client.go
generated
vendored
6
vendor/cloud.google.com/go/logging/apiv2/logging_client.go
generated
vendored
@@ -1,4 +1,4 @@
|
||||
// Copyright 2024 Google LLC
|
||||
// Copyright 2025 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
@@ -429,7 +429,7 @@ func (c *gRPCClient) Connection() *grpc.ClientConn {
|
||||
// use by Google-written clients.
|
||||
func (c *gRPCClient) setGoogleClientInfo(keyval ...string) {
|
||||
kv := append([]string{"gl-go", gax.GoVersion}, keyval...)
|
||||
kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "grpc", grpc.Version)
|
||||
kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "grpc", grpc.Version, "pb", protoVersion)
|
||||
c.xGoogHeaders = []string{
|
||||
"x-goog-api-client", gax.XGoogHeader(kv...),
|
||||
}
|
||||
@@ -497,7 +497,7 @@ func defaultRESTClientOptions() []option.ClientOption {
|
||||
// use by Google-written clients.
|
||||
func (c *restClient) setGoogleClientInfo(keyval ...string) {
|
||||
kv := append([]string{"gl-go", gax.GoVersion}, keyval...)
|
||||
kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "rest", "UNKNOWN")
|
||||
kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "rest", "UNKNOWN", "pb", protoVersion)
|
||||
c.xGoogHeaders = []string{
|
||||
"x-goog-api-client", gax.XGoogHeader(kv...),
|
||||
}
|
||||
|
||||
9
vendor/cloud.google.com/go/logging/apiv2/loggingpb/log_entry.pb.go
generated
vendored
9
vendor/cloud.google.com/go/logging/apiv2/loggingpb/log_entry.pb.go
generated
vendored
@@ -1,4 +1,4 @@
|
||||
// Copyright 2024 Google LLC
|
||||
// Copyright 2025 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
@@ -15,15 +15,12 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.35.2
|
||||
// protoc v4.25.3
|
||||
// protoc v4.25.7
|
||||
// source: google/logging/v2/log_entry.proto
|
||||
|
||||
package loggingpb
|
||||
|
||||
import (
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
monitoredres "google.golang.org/genproto/googleapis/api/monitoredres"
|
||||
_type "google.golang.org/genproto/googleapis/logging/type"
|
||||
@@ -32,6 +29,8 @@ import (
|
||||
anypb "google.golang.org/protobuf/types/known/anypb"
|
||||
structpb "google.golang.org/protobuf/types/known/structpb"
|
||||
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
346
vendor/cloud.google.com/go/logging/apiv2/loggingpb/logging.pb.go
generated
vendored
346
vendor/cloud.google.com/go/logging/apiv2/loggingpb/logging.pb.go
generated
vendored
@@ -1,4 +1,4 @@
|
||||
// Copyright 2024 Google LLC
|
||||
// Copyright 2025 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
@@ -15,26 +15,21 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.35.2
|
||||
// protoc v4.25.3
|
||||
// protoc v4.25.7
|
||||
// source: google/logging/v2/logging.proto
|
||||
|
||||
package loggingpb
|
||||
|
||||
import (
|
||||
context "context"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
monitoredres "google.golang.org/genproto/googleapis/api/monitoredres"
|
||||
status "google.golang.org/genproto/googleapis/rpc/status"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status1 "google.golang.org/grpc/status"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
durationpb "google.golang.org/protobuf/types/known/durationpb"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -1445,336 +1440,3 @@ func file_google_logging_v2_logging_proto_init() {
|
||||
file_google_logging_v2_logging_proto_goTypes = nil
|
||||
file_google_logging_v2_logging_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context
|
||||
var _ grpc.ClientConnInterface
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion6
|
||||
|
||||
// LoggingServiceV2Client is the client API for LoggingServiceV2 service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type LoggingServiceV2Client interface {
|
||||
// Deletes all the log entries in a log for the _Default Log Bucket. The log
|
||||
// reappears if it receives new entries. Log entries written shortly before
|
||||
// the delete operation might not be deleted. Entries received after the
|
||||
// delete operation with a timestamp before the operation will be deleted.
|
||||
DeleteLog(ctx context.Context, in *DeleteLogRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Writes log entries to Logging. This API method is the
|
||||
// only way to send log entries to Logging. This method
|
||||
// is used, directly or indirectly, by the Logging agent
|
||||
// (fluentd) and all logging libraries configured to use Logging.
|
||||
// A single request may contain log entries for a maximum of 1000
|
||||
// different resources (projects, organizations, billing accounts or
|
||||
// folders)
|
||||
WriteLogEntries(ctx context.Context, in *WriteLogEntriesRequest, opts ...grpc.CallOption) (*WriteLogEntriesResponse, error)
|
||||
// Lists log entries. Use this method to retrieve log entries that originated
|
||||
// from a project/folder/organization/billing account. For ways to export log
|
||||
// entries, see [Exporting
|
||||
// Logs](https://cloud.google.com/logging/docs/export).
|
||||
ListLogEntries(ctx context.Context, in *ListLogEntriesRequest, opts ...grpc.CallOption) (*ListLogEntriesResponse, error)
|
||||
// Lists the descriptors for monitored resource types used by Logging.
|
||||
ListMonitoredResourceDescriptors(ctx context.Context, in *ListMonitoredResourceDescriptorsRequest, opts ...grpc.CallOption) (*ListMonitoredResourceDescriptorsResponse, error)
|
||||
// Lists the logs in projects, organizations, folders, or billing accounts.
|
||||
// Only logs that have entries are listed.
|
||||
ListLogs(ctx context.Context, in *ListLogsRequest, opts ...grpc.CallOption) (*ListLogsResponse, error)
|
||||
// Streaming read of log entries as they are ingested. Until the stream is
|
||||
// terminated, it will continue reading logs.
|
||||
TailLogEntries(ctx context.Context, opts ...grpc.CallOption) (LoggingServiceV2_TailLogEntriesClient, error)
|
||||
}
|
||||
|
||||
type loggingServiceV2Client struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewLoggingServiceV2Client(cc grpc.ClientConnInterface) LoggingServiceV2Client {
|
||||
return &loggingServiceV2Client{cc}
|
||||
}
|
||||
|
||||
func (c *loggingServiceV2Client) DeleteLog(ctx context.Context, in *DeleteLogRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/google.logging.v2.LoggingServiceV2/DeleteLog", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *loggingServiceV2Client) WriteLogEntries(ctx context.Context, in *WriteLogEntriesRequest, opts ...grpc.CallOption) (*WriteLogEntriesResponse, error) {
|
||||
out := new(WriteLogEntriesResponse)
|
||||
err := c.cc.Invoke(ctx, "/google.logging.v2.LoggingServiceV2/WriteLogEntries", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *loggingServiceV2Client) ListLogEntries(ctx context.Context, in *ListLogEntriesRequest, opts ...grpc.CallOption) (*ListLogEntriesResponse, error) {
|
||||
out := new(ListLogEntriesResponse)
|
||||
err := c.cc.Invoke(ctx, "/google.logging.v2.LoggingServiceV2/ListLogEntries", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *loggingServiceV2Client) ListMonitoredResourceDescriptors(ctx context.Context, in *ListMonitoredResourceDescriptorsRequest, opts ...grpc.CallOption) (*ListMonitoredResourceDescriptorsResponse, error) {
|
||||
out := new(ListMonitoredResourceDescriptorsResponse)
|
||||
err := c.cc.Invoke(ctx, "/google.logging.v2.LoggingServiceV2/ListMonitoredResourceDescriptors", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *loggingServiceV2Client) ListLogs(ctx context.Context, in *ListLogsRequest, opts ...grpc.CallOption) (*ListLogsResponse, error) {
|
||||
out := new(ListLogsResponse)
|
||||
err := c.cc.Invoke(ctx, "/google.logging.v2.LoggingServiceV2/ListLogs", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *loggingServiceV2Client) TailLogEntries(ctx context.Context, opts ...grpc.CallOption) (LoggingServiceV2_TailLogEntriesClient, error) {
|
||||
stream, err := c.cc.NewStream(ctx, &_LoggingServiceV2_serviceDesc.Streams[0], "/google.logging.v2.LoggingServiceV2/TailLogEntries", opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
x := &loggingServiceV2TailLogEntriesClient{stream}
|
||||
return x, nil
|
||||
}
|
||||
|
||||
type LoggingServiceV2_TailLogEntriesClient interface {
|
||||
Send(*TailLogEntriesRequest) error
|
||||
Recv() (*TailLogEntriesResponse, error)
|
||||
grpc.ClientStream
|
||||
}
|
||||
|
||||
type loggingServiceV2TailLogEntriesClient struct {
|
||||
grpc.ClientStream
|
||||
}
|
||||
|
||||
func (x *loggingServiceV2TailLogEntriesClient) Send(m *TailLogEntriesRequest) error {
|
||||
return x.ClientStream.SendMsg(m)
|
||||
}
|
||||
|
||||
func (x *loggingServiceV2TailLogEntriesClient) Recv() (*TailLogEntriesResponse, error) {
|
||||
m := new(TailLogEntriesResponse)
|
||||
if err := x.ClientStream.RecvMsg(m); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return m, nil
|
||||
}
|
||||
|
||||
// LoggingServiceV2Server is the server API for LoggingServiceV2 service.
|
||||
type LoggingServiceV2Server interface {
|
||||
// Deletes all the log entries in a log for the _Default Log Bucket. The log
|
||||
// reappears if it receives new entries. Log entries written shortly before
|
||||
// the delete operation might not be deleted. Entries received after the
|
||||
// delete operation with a timestamp before the operation will be deleted.
|
||||
DeleteLog(context.Context, *DeleteLogRequest) (*emptypb.Empty, error)
|
||||
// Writes log entries to Logging. This API method is the
|
||||
// only way to send log entries to Logging. This method
|
||||
// is used, directly or indirectly, by the Logging agent
|
||||
// (fluentd) and all logging libraries configured to use Logging.
|
||||
// A single request may contain log entries for a maximum of 1000
|
||||
// different resources (projects, organizations, billing accounts or
|
||||
// folders)
|
||||
WriteLogEntries(context.Context, *WriteLogEntriesRequest) (*WriteLogEntriesResponse, error)
|
||||
// Lists log entries. Use this method to retrieve log entries that originated
|
||||
// from a project/folder/organization/billing account. For ways to export log
|
||||
// entries, see [Exporting
|
||||
// Logs](https://cloud.google.com/logging/docs/export).
|
||||
ListLogEntries(context.Context, *ListLogEntriesRequest) (*ListLogEntriesResponse, error)
|
||||
// Lists the descriptors for monitored resource types used by Logging.
|
||||
ListMonitoredResourceDescriptors(context.Context, *ListMonitoredResourceDescriptorsRequest) (*ListMonitoredResourceDescriptorsResponse, error)
|
||||
// Lists the logs in projects, organizations, folders, or billing accounts.
|
||||
// Only logs that have entries are listed.
|
||||
ListLogs(context.Context, *ListLogsRequest) (*ListLogsResponse, error)
|
||||
// Streaming read of log entries as they are ingested. Until the stream is
|
||||
// terminated, it will continue reading logs.
|
||||
TailLogEntries(LoggingServiceV2_TailLogEntriesServer) error
|
||||
}
|
||||
|
||||
// UnimplementedLoggingServiceV2Server can be embedded to have forward compatible implementations.
|
||||
type UnimplementedLoggingServiceV2Server struct {
|
||||
}
|
||||
|
||||
func (*UnimplementedLoggingServiceV2Server) DeleteLog(context.Context, *DeleteLogRequest) (*emptypb.Empty, error) {
|
||||
return nil, status1.Errorf(codes.Unimplemented, "method DeleteLog not implemented")
|
||||
}
|
||||
func (*UnimplementedLoggingServiceV2Server) WriteLogEntries(context.Context, *WriteLogEntriesRequest) (*WriteLogEntriesResponse, error) {
|
||||
return nil, status1.Errorf(codes.Unimplemented, "method WriteLogEntries not implemented")
|
||||
}
|
||||
func (*UnimplementedLoggingServiceV2Server) ListLogEntries(context.Context, *ListLogEntriesRequest) (*ListLogEntriesResponse, error) {
|
||||
return nil, status1.Errorf(codes.Unimplemented, "method ListLogEntries not implemented")
|
||||
}
|
||||
func (*UnimplementedLoggingServiceV2Server) ListMonitoredResourceDescriptors(context.Context, *ListMonitoredResourceDescriptorsRequest) (*ListMonitoredResourceDescriptorsResponse, error) {
|
||||
return nil, status1.Errorf(codes.Unimplemented, "method ListMonitoredResourceDescriptors not implemented")
|
||||
}
|
||||
func (*UnimplementedLoggingServiceV2Server) ListLogs(context.Context, *ListLogsRequest) (*ListLogsResponse, error) {
|
||||
return nil, status1.Errorf(codes.Unimplemented, "method ListLogs not implemented")
|
||||
}
|
||||
func (*UnimplementedLoggingServiceV2Server) TailLogEntries(LoggingServiceV2_TailLogEntriesServer) error {
|
||||
return status1.Errorf(codes.Unimplemented, "method TailLogEntries not implemented")
|
||||
}
|
||||
|
||||
func RegisterLoggingServiceV2Server(s *grpc.Server, srv LoggingServiceV2Server) {
|
||||
s.RegisterService(&_LoggingServiceV2_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _LoggingServiceV2_DeleteLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteLogRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(LoggingServiceV2Server).DeleteLog(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.logging.v2.LoggingServiceV2/DeleteLog",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(LoggingServiceV2Server).DeleteLog(ctx, req.(*DeleteLogRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _LoggingServiceV2_WriteLogEntries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(WriteLogEntriesRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(LoggingServiceV2Server).WriteLogEntries(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.logging.v2.LoggingServiceV2/WriteLogEntries",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(LoggingServiceV2Server).WriteLogEntries(ctx, req.(*WriteLogEntriesRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _LoggingServiceV2_ListLogEntries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListLogEntriesRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(LoggingServiceV2Server).ListLogEntries(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.logging.v2.LoggingServiceV2/ListLogEntries",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(LoggingServiceV2Server).ListLogEntries(ctx, req.(*ListLogEntriesRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _LoggingServiceV2_ListMonitoredResourceDescriptors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListMonitoredResourceDescriptorsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(LoggingServiceV2Server).ListMonitoredResourceDescriptors(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.logging.v2.LoggingServiceV2/ListMonitoredResourceDescriptors",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(LoggingServiceV2Server).ListMonitoredResourceDescriptors(ctx, req.(*ListMonitoredResourceDescriptorsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _LoggingServiceV2_ListLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListLogsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(LoggingServiceV2Server).ListLogs(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.logging.v2.LoggingServiceV2/ListLogs",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(LoggingServiceV2Server).ListLogs(ctx, req.(*ListLogsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _LoggingServiceV2_TailLogEntries_Handler(srv interface{}, stream grpc.ServerStream) error {
|
||||
return srv.(LoggingServiceV2Server).TailLogEntries(&loggingServiceV2TailLogEntriesServer{stream})
|
||||
}
|
||||
|
||||
type LoggingServiceV2_TailLogEntriesServer interface {
|
||||
Send(*TailLogEntriesResponse) error
|
||||
Recv() (*TailLogEntriesRequest, error)
|
||||
grpc.ServerStream
|
||||
}
|
||||
|
||||
type loggingServiceV2TailLogEntriesServer struct {
|
||||
grpc.ServerStream
|
||||
}
|
||||
|
||||
func (x *loggingServiceV2TailLogEntriesServer) Send(m *TailLogEntriesResponse) error {
|
||||
return x.ServerStream.SendMsg(m)
|
||||
}
|
||||
|
||||
func (x *loggingServiceV2TailLogEntriesServer) Recv() (*TailLogEntriesRequest, error) {
|
||||
m := new(TailLogEntriesRequest)
|
||||
if err := x.ServerStream.RecvMsg(m); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return m, nil
|
||||
}
|
||||
|
||||
var _LoggingServiceV2_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.logging.v2.LoggingServiceV2",
|
||||
HandlerType: (*LoggingServiceV2Server)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "DeleteLog",
|
||||
Handler: _LoggingServiceV2_DeleteLog_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "WriteLogEntries",
|
||||
Handler: _LoggingServiceV2_WriteLogEntries_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ListLogEntries",
|
||||
Handler: _LoggingServiceV2_ListLogEntries_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ListMonitoredResourceDescriptors",
|
||||
Handler: _LoggingServiceV2_ListMonitoredResourceDescriptors_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ListLogs",
|
||||
Handler: _LoggingServiceV2_ListLogs_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{
|
||||
{
|
||||
StreamName: "TailLogEntries",
|
||||
Handler: _LoggingServiceV2_TailLogEntries_Handler,
|
||||
ServerStreams: true,
|
||||
ClientStreams: true,
|
||||
},
|
||||
},
|
||||
Metadata: "google/logging/v2/logging.proto",
|
||||
}
|
||||
|
||||
1447
vendor/cloud.google.com/go/logging/apiv2/loggingpb/logging_config.pb.go
generated
vendored
1447
vendor/cloud.google.com/go/logging/apiv2/loggingpb/logging_config.pb.go
generated
vendored
File diff suppressed because it is too large
Load Diff
1508
vendor/cloud.google.com/go/logging/apiv2/loggingpb/logging_config_grpc.pb.go
generated
vendored
Normal file
1508
vendor/cloud.google.com/go/logging/apiv2/loggingpb/logging_config_grpc.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
380
vendor/cloud.google.com/go/logging/apiv2/loggingpb/logging_grpc.pb.go
generated
vendored
Normal file
380
vendor/cloud.google.com/go/logging/apiv2/loggingpb/logging_grpc.pb.go
generated
vendored
Normal file
@@ -0,0 +1,380 @@
|
||||
// Copyright 2025 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.3.0
|
||||
// - protoc v4.25.7
|
||||
// source: google/logging/v2/logging.proto
|
||||
|
||||
package loggingpb
|
||||
|
||||
import (
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
)
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
// Requires gRPC-Go v1.32.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion7
|
||||
|
||||
const (
|
||||
LoggingServiceV2_DeleteLog_FullMethodName = "/google.logging.v2.LoggingServiceV2/DeleteLog"
|
||||
LoggingServiceV2_WriteLogEntries_FullMethodName = "/google.logging.v2.LoggingServiceV2/WriteLogEntries"
|
||||
LoggingServiceV2_ListLogEntries_FullMethodName = "/google.logging.v2.LoggingServiceV2/ListLogEntries"
|
||||
LoggingServiceV2_ListMonitoredResourceDescriptors_FullMethodName = "/google.logging.v2.LoggingServiceV2/ListMonitoredResourceDescriptors"
|
||||
LoggingServiceV2_ListLogs_FullMethodName = "/google.logging.v2.LoggingServiceV2/ListLogs"
|
||||
LoggingServiceV2_TailLogEntries_FullMethodName = "/google.logging.v2.LoggingServiceV2/TailLogEntries"
|
||||
)
|
||||
|
||||
// LoggingServiceV2Client is the client API for LoggingServiceV2 service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||
type LoggingServiceV2Client interface {
|
||||
// Deletes all the log entries in a log for the _Default Log Bucket. The log
|
||||
// reappears if it receives new entries. Log entries written shortly before
|
||||
// the delete operation might not be deleted. Entries received after the
|
||||
// delete operation with a timestamp before the operation will be deleted.
|
||||
DeleteLog(ctx context.Context, in *DeleteLogRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Writes log entries to Logging. This API method is the
|
||||
// only way to send log entries to Logging. This method
|
||||
// is used, directly or indirectly, by the Logging agent
|
||||
// (fluentd) and all logging libraries configured to use Logging.
|
||||
// A single request may contain log entries for a maximum of 1000
|
||||
// different resources (projects, organizations, billing accounts or
|
||||
// folders)
|
||||
WriteLogEntries(ctx context.Context, in *WriteLogEntriesRequest, opts ...grpc.CallOption) (*WriteLogEntriesResponse, error)
|
||||
// Lists log entries. Use this method to retrieve log entries that originated
|
||||
// from a project/folder/organization/billing account. For ways to export log
|
||||
// entries, see [Exporting
|
||||
// Logs](https://cloud.google.com/logging/docs/export).
|
||||
ListLogEntries(ctx context.Context, in *ListLogEntriesRequest, opts ...grpc.CallOption) (*ListLogEntriesResponse, error)
|
||||
// Lists the descriptors for monitored resource types used by Logging.
|
||||
ListMonitoredResourceDescriptors(ctx context.Context, in *ListMonitoredResourceDescriptorsRequest, opts ...grpc.CallOption) (*ListMonitoredResourceDescriptorsResponse, error)
|
||||
// Lists the logs in projects, organizations, folders, or billing accounts.
|
||||
// Only logs that have entries are listed.
|
||||
ListLogs(ctx context.Context, in *ListLogsRequest, opts ...grpc.CallOption) (*ListLogsResponse, error)
|
||||
// Streaming read of log entries as they are ingested. Until the stream is
|
||||
// terminated, it will continue reading logs.
|
||||
TailLogEntries(ctx context.Context, opts ...grpc.CallOption) (LoggingServiceV2_TailLogEntriesClient, error)
|
||||
}
|
||||
|
||||
type loggingServiceV2Client struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewLoggingServiceV2Client(cc grpc.ClientConnInterface) LoggingServiceV2Client {
|
||||
return &loggingServiceV2Client{cc}
|
||||
}
|
||||
|
||||
func (c *loggingServiceV2Client) DeleteLog(ctx context.Context, in *DeleteLogRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, LoggingServiceV2_DeleteLog_FullMethodName, in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *loggingServiceV2Client) WriteLogEntries(ctx context.Context, in *WriteLogEntriesRequest, opts ...grpc.CallOption) (*WriteLogEntriesResponse, error) {
|
||||
out := new(WriteLogEntriesResponse)
|
||||
err := c.cc.Invoke(ctx, LoggingServiceV2_WriteLogEntries_FullMethodName, in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *loggingServiceV2Client) ListLogEntries(ctx context.Context, in *ListLogEntriesRequest, opts ...grpc.CallOption) (*ListLogEntriesResponse, error) {
|
||||
out := new(ListLogEntriesResponse)
|
||||
err := c.cc.Invoke(ctx, LoggingServiceV2_ListLogEntries_FullMethodName, in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *loggingServiceV2Client) ListMonitoredResourceDescriptors(ctx context.Context, in *ListMonitoredResourceDescriptorsRequest, opts ...grpc.CallOption) (*ListMonitoredResourceDescriptorsResponse, error) {
|
||||
out := new(ListMonitoredResourceDescriptorsResponse)
|
||||
err := c.cc.Invoke(ctx, LoggingServiceV2_ListMonitoredResourceDescriptors_FullMethodName, in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *loggingServiceV2Client) ListLogs(ctx context.Context, in *ListLogsRequest, opts ...grpc.CallOption) (*ListLogsResponse, error) {
|
||||
out := new(ListLogsResponse)
|
||||
err := c.cc.Invoke(ctx, LoggingServiceV2_ListLogs_FullMethodName, in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *loggingServiceV2Client) TailLogEntries(ctx context.Context, opts ...grpc.CallOption) (LoggingServiceV2_TailLogEntriesClient, error) {
|
||||
stream, err := c.cc.NewStream(ctx, &LoggingServiceV2_ServiceDesc.Streams[0], LoggingServiceV2_TailLogEntries_FullMethodName, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
x := &loggingServiceV2TailLogEntriesClient{stream}
|
||||
return x, nil
|
||||
}
|
||||
|
||||
type LoggingServiceV2_TailLogEntriesClient interface {
|
||||
Send(*TailLogEntriesRequest) error
|
||||
Recv() (*TailLogEntriesResponse, error)
|
||||
grpc.ClientStream
|
||||
}
|
||||
|
||||
type loggingServiceV2TailLogEntriesClient struct {
|
||||
grpc.ClientStream
|
||||
}
|
||||
|
||||
func (x *loggingServiceV2TailLogEntriesClient) Send(m *TailLogEntriesRequest) error {
|
||||
return x.ClientStream.SendMsg(m)
|
||||
}
|
||||
|
||||
func (x *loggingServiceV2TailLogEntriesClient) Recv() (*TailLogEntriesResponse, error) {
|
||||
m := new(TailLogEntriesResponse)
|
||||
if err := x.ClientStream.RecvMsg(m); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return m, nil
|
||||
}
|
||||
|
||||
// LoggingServiceV2Server is the server API for LoggingServiceV2 service.
|
||||
// All implementations should embed UnimplementedLoggingServiceV2Server
|
||||
// for forward compatibility
|
||||
type LoggingServiceV2Server interface {
|
||||
// Deletes all the log entries in a log for the _Default Log Bucket. The log
|
||||
// reappears if it receives new entries. Log entries written shortly before
|
||||
// the delete operation might not be deleted. Entries received after the
|
||||
// delete operation with a timestamp before the operation will be deleted.
|
||||
DeleteLog(context.Context, *DeleteLogRequest) (*emptypb.Empty, error)
|
||||
// Writes log entries to Logging. This API method is the
|
||||
// only way to send log entries to Logging. This method
|
||||
// is used, directly or indirectly, by the Logging agent
|
||||
// (fluentd) and all logging libraries configured to use Logging.
|
||||
// A single request may contain log entries for a maximum of 1000
|
||||
// different resources (projects, organizations, billing accounts or
|
||||
// folders)
|
||||
WriteLogEntries(context.Context, *WriteLogEntriesRequest) (*WriteLogEntriesResponse, error)
|
||||
// Lists log entries. Use this method to retrieve log entries that originated
|
||||
// from a project/folder/organization/billing account. For ways to export log
|
||||
// entries, see [Exporting
|
||||
// Logs](https://cloud.google.com/logging/docs/export).
|
||||
ListLogEntries(context.Context, *ListLogEntriesRequest) (*ListLogEntriesResponse, error)
|
||||
// Lists the descriptors for monitored resource types used by Logging.
|
||||
ListMonitoredResourceDescriptors(context.Context, *ListMonitoredResourceDescriptorsRequest) (*ListMonitoredResourceDescriptorsResponse, error)
|
||||
// Lists the logs in projects, organizations, folders, or billing accounts.
|
||||
// Only logs that have entries are listed.
|
||||
ListLogs(context.Context, *ListLogsRequest) (*ListLogsResponse, error)
|
||||
// Streaming read of log entries as they are ingested. Until the stream is
|
||||
// terminated, it will continue reading logs.
|
||||
TailLogEntries(LoggingServiceV2_TailLogEntriesServer) error
|
||||
}
|
||||
|
||||
// UnimplementedLoggingServiceV2Server should be embedded to have forward compatible implementations.
|
||||
type UnimplementedLoggingServiceV2Server struct {
|
||||
}
|
||||
|
||||
func (UnimplementedLoggingServiceV2Server) DeleteLog(context.Context, *DeleteLogRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DeleteLog not implemented")
|
||||
}
|
||||
func (UnimplementedLoggingServiceV2Server) WriteLogEntries(context.Context, *WriteLogEntriesRequest) (*WriteLogEntriesResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method WriteLogEntries not implemented")
|
||||
}
|
||||
func (UnimplementedLoggingServiceV2Server) ListLogEntries(context.Context, *ListLogEntriesRequest) (*ListLogEntriesResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ListLogEntries not implemented")
|
||||
}
|
||||
func (UnimplementedLoggingServiceV2Server) ListMonitoredResourceDescriptors(context.Context, *ListMonitoredResourceDescriptorsRequest) (*ListMonitoredResourceDescriptorsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ListMonitoredResourceDescriptors not implemented")
|
||||
}
|
||||
func (UnimplementedLoggingServiceV2Server) ListLogs(context.Context, *ListLogsRequest) (*ListLogsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ListLogs not implemented")
|
||||
}
|
||||
func (UnimplementedLoggingServiceV2Server) TailLogEntries(LoggingServiceV2_TailLogEntriesServer) error {
|
||||
return status.Errorf(codes.Unimplemented, "method TailLogEntries not implemented")
|
||||
}
|
||||
|
||||
// UnsafeLoggingServiceV2Server may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to LoggingServiceV2Server will
|
||||
// result in compilation errors.
|
||||
type UnsafeLoggingServiceV2Server interface {
|
||||
mustEmbedUnimplementedLoggingServiceV2Server()
|
||||
}
|
||||
|
||||
func RegisterLoggingServiceV2Server(s grpc.ServiceRegistrar, srv LoggingServiceV2Server) {
|
||||
s.RegisterService(&LoggingServiceV2_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _LoggingServiceV2_DeleteLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteLogRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(LoggingServiceV2Server).DeleteLog(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: LoggingServiceV2_DeleteLog_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(LoggingServiceV2Server).DeleteLog(ctx, req.(*DeleteLogRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _LoggingServiceV2_WriteLogEntries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(WriteLogEntriesRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(LoggingServiceV2Server).WriteLogEntries(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: LoggingServiceV2_WriteLogEntries_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(LoggingServiceV2Server).WriteLogEntries(ctx, req.(*WriteLogEntriesRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _LoggingServiceV2_ListLogEntries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListLogEntriesRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(LoggingServiceV2Server).ListLogEntries(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: LoggingServiceV2_ListLogEntries_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(LoggingServiceV2Server).ListLogEntries(ctx, req.(*ListLogEntriesRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _LoggingServiceV2_ListMonitoredResourceDescriptors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListMonitoredResourceDescriptorsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(LoggingServiceV2Server).ListMonitoredResourceDescriptors(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: LoggingServiceV2_ListMonitoredResourceDescriptors_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(LoggingServiceV2Server).ListMonitoredResourceDescriptors(ctx, req.(*ListMonitoredResourceDescriptorsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _LoggingServiceV2_ListLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListLogsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(LoggingServiceV2Server).ListLogs(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: LoggingServiceV2_ListLogs_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(LoggingServiceV2Server).ListLogs(ctx, req.(*ListLogsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _LoggingServiceV2_TailLogEntries_Handler(srv interface{}, stream grpc.ServerStream) error {
|
||||
return srv.(LoggingServiceV2Server).TailLogEntries(&loggingServiceV2TailLogEntriesServer{stream})
|
||||
}
|
||||
|
||||
type LoggingServiceV2_TailLogEntriesServer interface {
|
||||
Send(*TailLogEntriesResponse) error
|
||||
Recv() (*TailLogEntriesRequest, error)
|
||||
grpc.ServerStream
|
||||
}
|
||||
|
||||
type loggingServiceV2TailLogEntriesServer struct {
|
||||
grpc.ServerStream
|
||||
}
|
||||
|
||||
func (x *loggingServiceV2TailLogEntriesServer) Send(m *TailLogEntriesResponse) error {
|
||||
return x.ServerStream.SendMsg(m)
|
||||
}
|
||||
|
||||
func (x *loggingServiceV2TailLogEntriesServer) Recv() (*TailLogEntriesRequest, error) {
|
||||
m := new(TailLogEntriesRequest)
|
||||
if err := x.ServerStream.RecvMsg(m); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return m, nil
|
||||
}
|
||||
|
||||
// LoggingServiceV2_ServiceDesc is the grpc.ServiceDesc for LoggingServiceV2 service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var LoggingServiceV2_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.logging.v2.LoggingServiceV2",
|
||||
HandlerType: (*LoggingServiceV2Server)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "DeleteLog",
|
||||
Handler: _LoggingServiceV2_DeleteLog_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "WriteLogEntries",
|
||||
Handler: _LoggingServiceV2_WriteLogEntries_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ListLogEntries",
|
||||
Handler: _LoggingServiceV2_ListLogEntries_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ListMonitoredResourceDescriptors",
|
||||
Handler: _LoggingServiceV2_ListMonitoredResourceDescriptors_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ListLogs",
|
||||
Handler: _LoggingServiceV2_ListLogs_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{
|
||||
{
|
||||
StreamName: "TailLogEntries",
|
||||
Handler: _LoggingServiceV2_TailLogEntries_Handler,
|
||||
ServerStreams: true,
|
||||
ClientStreams: true,
|
||||
},
|
||||
},
|
||||
Metadata: "google/logging/v2/logging.proto",
|
||||
}
|
||||
247
vendor/cloud.google.com/go/logging/apiv2/loggingpb/logging_metrics.pb.go
generated
vendored
247
vendor/cloud.google.com/go/logging/apiv2/loggingpb/logging_metrics.pb.go
generated
vendored
@@ -1,4 +1,4 @@
|
||||
// Copyright 2024 Google LLC
|
||||
// Copyright 2025 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
@@ -15,26 +15,21 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.35.2
|
||||
// protoc v4.25.3
|
||||
// protoc v4.25.7
|
||||
// source: google/logging/v2/logging_metrics.proto
|
||||
|
||||
package loggingpb
|
||||
|
||||
import (
|
||||
context "context"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
distribution "google.golang.org/genproto/googleapis/api/distribution"
|
||||
metric "google.golang.org/genproto/googleapis/api/metric"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -975,237 +970,3 @@ func file_google_logging_v2_logging_metrics_proto_init() {
|
||||
file_google_logging_v2_logging_metrics_proto_goTypes = nil
|
||||
file_google_logging_v2_logging_metrics_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context
|
||||
var _ grpc.ClientConnInterface
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion6
|
||||
|
||||
// MetricsServiceV2Client is the client API for MetricsServiceV2 service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type MetricsServiceV2Client interface {
|
||||
// Lists logs-based metrics.
|
||||
ListLogMetrics(ctx context.Context, in *ListLogMetricsRequest, opts ...grpc.CallOption) (*ListLogMetricsResponse, error)
|
||||
// Gets a logs-based metric.
|
||||
GetLogMetric(ctx context.Context, in *GetLogMetricRequest, opts ...grpc.CallOption) (*LogMetric, error)
|
||||
// Creates a logs-based metric.
|
||||
CreateLogMetric(ctx context.Context, in *CreateLogMetricRequest, opts ...grpc.CallOption) (*LogMetric, error)
|
||||
// Creates or updates a logs-based metric.
|
||||
UpdateLogMetric(ctx context.Context, in *UpdateLogMetricRequest, opts ...grpc.CallOption) (*LogMetric, error)
|
||||
// Deletes a logs-based metric.
|
||||
DeleteLogMetric(ctx context.Context, in *DeleteLogMetricRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
}
|
||||
|
||||
type metricsServiceV2Client struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewMetricsServiceV2Client(cc grpc.ClientConnInterface) MetricsServiceV2Client {
|
||||
return &metricsServiceV2Client{cc}
|
||||
}
|
||||
|
||||
func (c *metricsServiceV2Client) ListLogMetrics(ctx context.Context, in *ListLogMetricsRequest, opts ...grpc.CallOption) (*ListLogMetricsResponse, error) {
|
||||
out := new(ListLogMetricsResponse)
|
||||
err := c.cc.Invoke(ctx, "/google.logging.v2.MetricsServiceV2/ListLogMetrics", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *metricsServiceV2Client) GetLogMetric(ctx context.Context, in *GetLogMetricRequest, opts ...grpc.CallOption) (*LogMetric, error) {
|
||||
out := new(LogMetric)
|
||||
err := c.cc.Invoke(ctx, "/google.logging.v2.MetricsServiceV2/GetLogMetric", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *metricsServiceV2Client) CreateLogMetric(ctx context.Context, in *CreateLogMetricRequest, opts ...grpc.CallOption) (*LogMetric, error) {
|
||||
out := new(LogMetric)
|
||||
err := c.cc.Invoke(ctx, "/google.logging.v2.MetricsServiceV2/CreateLogMetric", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *metricsServiceV2Client) UpdateLogMetric(ctx context.Context, in *UpdateLogMetricRequest, opts ...grpc.CallOption) (*LogMetric, error) {
|
||||
out := new(LogMetric)
|
||||
err := c.cc.Invoke(ctx, "/google.logging.v2.MetricsServiceV2/UpdateLogMetric", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *metricsServiceV2Client) DeleteLogMetric(ctx context.Context, in *DeleteLogMetricRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/google.logging.v2.MetricsServiceV2/DeleteLogMetric", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// MetricsServiceV2Server is the server API for MetricsServiceV2 service.
|
||||
type MetricsServiceV2Server interface {
|
||||
// Lists logs-based metrics.
|
||||
ListLogMetrics(context.Context, *ListLogMetricsRequest) (*ListLogMetricsResponse, error)
|
||||
// Gets a logs-based metric.
|
||||
GetLogMetric(context.Context, *GetLogMetricRequest) (*LogMetric, error)
|
||||
// Creates a logs-based metric.
|
||||
CreateLogMetric(context.Context, *CreateLogMetricRequest) (*LogMetric, error)
|
||||
// Creates or updates a logs-based metric.
|
||||
UpdateLogMetric(context.Context, *UpdateLogMetricRequest) (*LogMetric, error)
|
||||
// Deletes a logs-based metric.
|
||||
DeleteLogMetric(context.Context, *DeleteLogMetricRequest) (*emptypb.Empty, error)
|
||||
}
|
||||
|
||||
// UnimplementedMetricsServiceV2Server can be embedded to have forward compatible implementations.
|
||||
type UnimplementedMetricsServiceV2Server struct {
|
||||
}
|
||||
|
||||
func (*UnimplementedMetricsServiceV2Server) ListLogMetrics(context.Context, *ListLogMetricsRequest) (*ListLogMetricsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ListLogMetrics not implemented")
|
||||
}
|
||||
func (*UnimplementedMetricsServiceV2Server) GetLogMetric(context.Context, *GetLogMetricRequest) (*LogMetric, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetLogMetric not implemented")
|
||||
}
|
||||
func (*UnimplementedMetricsServiceV2Server) CreateLogMetric(context.Context, *CreateLogMetricRequest) (*LogMetric, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CreateLogMetric not implemented")
|
||||
}
|
||||
func (*UnimplementedMetricsServiceV2Server) UpdateLogMetric(context.Context, *UpdateLogMetricRequest) (*LogMetric, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateLogMetric not implemented")
|
||||
}
|
||||
func (*UnimplementedMetricsServiceV2Server) DeleteLogMetric(context.Context, *DeleteLogMetricRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DeleteLogMetric not implemented")
|
||||
}
|
||||
|
||||
func RegisterMetricsServiceV2Server(s *grpc.Server, srv MetricsServiceV2Server) {
|
||||
s.RegisterService(&_MetricsServiceV2_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _MetricsServiceV2_ListLogMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListLogMetricsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MetricsServiceV2Server).ListLogMetrics(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.logging.v2.MetricsServiceV2/ListLogMetrics",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MetricsServiceV2Server).ListLogMetrics(ctx, req.(*ListLogMetricsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MetricsServiceV2_GetLogMetric_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetLogMetricRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MetricsServiceV2Server).GetLogMetric(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.logging.v2.MetricsServiceV2/GetLogMetric",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MetricsServiceV2Server).GetLogMetric(ctx, req.(*GetLogMetricRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MetricsServiceV2_CreateLogMetric_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateLogMetricRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MetricsServiceV2Server).CreateLogMetric(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.logging.v2.MetricsServiceV2/CreateLogMetric",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MetricsServiceV2Server).CreateLogMetric(ctx, req.(*CreateLogMetricRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MetricsServiceV2_UpdateLogMetric_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateLogMetricRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MetricsServiceV2Server).UpdateLogMetric(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.logging.v2.MetricsServiceV2/UpdateLogMetric",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MetricsServiceV2Server).UpdateLogMetric(ctx, req.(*UpdateLogMetricRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MetricsServiceV2_DeleteLogMetric_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteLogMetricRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MetricsServiceV2Server).DeleteLogMetric(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.logging.v2.MetricsServiceV2/DeleteLogMetric",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MetricsServiceV2Server).DeleteLogMetric(ctx, req.(*DeleteLogMetricRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _MetricsServiceV2_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.logging.v2.MetricsServiceV2",
|
||||
HandlerType: (*MetricsServiceV2Server)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "ListLogMetrics",
|
||||
Handler: _MetricsServiceV2_ListLogMetrics_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetLogMetric",
|
||||
Handler: _MetricsServiceV2_GetLogMetric_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "CreateLogMetric",
|
||||
Handler: _MetricsServiceV2_CreateLogMetric_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateLogMetric",
|
||||
Handler: _MetricsServiceV2_UpdateLogMetric_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeleteLogMetric",
|
||||
Handler: _MetricsServiceV2_DeleteLogMetric_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "google/logging/v2/logging_metrics.proto",
|
||||
}
|
||||
|
||||
280
vendor/cloud.google.com/go/logging/apiv2/loggingpb/logging_metrics_grpc.pb.go
generated
vendored
Normal file
280
vendor/cloud.google.com/go/logging/apiv2/loggingpb/logging_metrics_grpc.pb.go
generated
vendored
Normal file
@@ -0,0 +1,280 @@
|
||||
// Copyright 2025 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.3.0
|
||||
// - protoc v4.25.7
|
||||
// source: google/logging/v2/logging_metrics.proto
|
||||
|
||||
package loggingpb
|
||||
|
||||
import (
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
)
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
// Requires gRPC-Go v1.32.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion7
|
||||
|
||||
const (
|
||||
MetricsServiceV2_ListLogMetrics_FullMethodName = "/google.logging.v2.MetricsServiceV2/ListLogMetrics"
|
||||
MetricsServiceV2_GetLogMetric_FullMethodName = "/google.logging.v2.MetricsServiceV2/GetLogMetric"
|
||||
MetricsServiceV2_CreateLogMetric_FullMethodName = "/google.logging.v2.MetricsServiceV2/CreateLogMetric"
|
||||
MetricsServiceV2_UpdateLogMetric_FullMethodName = "/google.logging.v2.MetricsServiceV2/UpdateLogMetric"
|
||||
MetricsServiceV2_DeleteLogMetric_FullMethodName = "/google.logging.v2.MetricsServiceV2/DeleteLogMetric"
|
||||
)
|
||||
|
||||
// MetricsServiceV2Client is the client API for MetricsServiceV2 service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||
type MetricsServiceV2Client interface {
|
||||
// Lists logs-based metrics.
|
||||
ListLogMetrics(ctx context.Context, in *ListLogMetricsRequest, opts ...grpc.CallOption) (*ListLogMetricsResponse, error)
|
||||
// Gets a logs-based metric.
|
||||
GetLogMetric(ctx context.Context, in *GetLogMetricRequest, opts ...grpc.CallOption) (*LogMetric, error)
|
||||
// Creates a logs-based metric.
|
||||
CreateLogMetric(ctx context.Context, in *CreateLogMetricRequest, opts ...grpc.CallOption) (*LogMetric, error)
|
||||
// Creates or updates a logs-based metric.
|
||||
UpdateLogMetric(ctx context.Context, in *UpdateLogMetricRequest, opts ...grpc.CallOption) (*LogMetric, error)
|
||||
// Deletes a logs-based metric.
|
||||
DeleteLogMetric(ctx context.Context, in *DeleteLogMetricRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
}
|
||||
|
||||
type metricsServiceV2Client struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewMetricsServiceV2Client(cc grpc.ClientConnInterface) MetricsServiceV2Client {
|
||||
return &metricsServiceV2Client{cc}
|
||||
}
|
||||
|
||||
func (c *metricsServiceV2Client) ListLogMetrics(ctx context.Context, in *ListLogMetricsRequest, opts ...grpc.CallOption) (*ListLogMetricsResponse, error) {
|
||||
out := new(ListLogMetricsResponse)
|
||||
err := c.cc.Invoke(ctx, MetricsServiceV2_ListLogMetrics_FullMethodName, in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *metricsServiceV2Client) GetLogMetric(ctx context.Context, in *GetLogMetricRequest, opts ...grpc.CallOption) (*LogMetric, error) {
|
||||
out := new(LogMetric)
|
||||
err := c.cc.Invoke(ctx, MetricsServiceV2_GetLogMetric_FullMethodName, in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *metricsServiceV2Client) CreateLogMetric(ctx context.Context, in *CreateLogMetricRequest, opts ...grpc.CallOption) (*LogMetric, error) {
|
||||
out := new(LogMetric)
|
||||
err := c.cc.Invoke(ctx, MetricsServiceV2_CreateLogMetric_FullMethodName, in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *metricsServiceV2Client) UpdateLogMetric(ctx context.Context, in *UpdateLogMetricRequest, opts ...grpc.CallOption) (*LogMetric, error) {
|
||||
out := new(LogMetric)
|
||||
err := c.cc.Invoke(ctx, MetricsServiceV2_UpdateLogMetric_FullMethodName, in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *metricsServiceV2Client) DeleteLogMetric(ctx context.Context, in *DeleteLogMetricRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, MetricsServiceV2_DeleteLogMetric_FullMethodName, in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// MetricsServiceV2Server is the server API for MetricsServiceV2 service.
|
||||
// All implementations should embed UnimplementedMetricsServiceV2Server
|
||||
// for forward compatibility
|
||||
type MetricsServiceV2Server interface {
|
||||
// Lists logs-based metrics.
|
||||
ListLogMetrics(context.Context, *ListLogMetricsRequest) (*ListLogMetricsResponse, error)
|
||||
// Gets a logs-based metric.
|
||||
GetLogMetric(context.Context, *GetLogMetricRequest) (*LogMetric, error)
|
||||
// Creates a logs-based metric.
|
||||
CreateLogMetric(context.Context, *CreateLogMetricRequest) (*LogMetric, error)
|
||||
// Creates or updates a logs-based metric.
|
||||
UpdateLogMetric(context.Context, *UpdateLogMetricRequest) (*LogMetric, error)
|
||||
// Deletes a logs-based metric.
|
||||
DeleteLogMetric(context.Context, *DeleteLogMetricRequest) (*emptypb.Empty, error)
|
||||
}
|
||||
|
||||
// UnimplementedMetricsServiceV2Server should be embedded to have forward compatible implementations.
|
||||
type UnimplementedMetricsServiceV2Server struct {
|
||||
}
|
||||
|
||||
func (UnimplementedMetricsServiceV2Server) ListLogMetrics(context.Context, *ListLogMetricsRequest) (*ListLogMetricsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ListLogMetrics not implemented")
|
||||
}
|
||||
func (UnimplementedMetricsServiceV2Server) GetLogMetric(context.Context, *GetLogMetricRequest) (*LogMetric, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetLogMetric not implemented")
|
||||
}
|
||||
func (UnimplementedMetricsServiceV2Server) CreateLogMetric(context.Context, *CreateLogMetricRequest) (*LogMetric, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CreateLogMetric not implemented")
|
||||
}
|
||||
func (UnimplementedMetricsServiceV2Server) UpdateLogMetric(context.Context, *UpdateLogMetricRequest) (*LogMetric, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateLogMetric not implemented")
|
||||
}
|
||||
func (UnimplementedMetricsServiceV2Server) DeleteLogMetric(context.Context, *DeleteLogMetricRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DeleteLogMetric not implemented")
|
||||
}
|
||||
|
||||
// UnsafeMetricsServiceV2Server may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to MetricsServiceV2Server will
|
||||
// result in compilation errors.
|
||||
type UnsafeMetricsServiceV2Server interface {
|
||||
mustEmbedUnimplementedMetricsServiceV2Server()
|
||||
}
|
||||
|
||||
func RegisterMetricsServiceV2Server(s grpc.ServiceRegistrar, srv MetricsServiceV2Server) {
|
||||
s.RegisterService(&MetricsServiceV2_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _MetricsServiceV2_ListLogMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListLogMetricsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MetricsServiceV2Server).ListLogMetrics(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: MetricsServiceV2_ListLogMetrics_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MetricsServiceV2Server).ListLogMetrics(ctx, req.(*ListLogMetricsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MetricsServiceV2_GetLogMetric_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetLogMetricRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MetricsServiceV2Server).GetLogMetric(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: MetricsServiceV2_GetLogMetric_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MetricsServiceV2Server).GetLogMetric(ctx, req.(*GetLogMetricRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MetricsServiceV2_CreateLogMetric_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateLogMetricRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MetricsServiceV2Server).CreateLogMetric(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: MetricsServiceV2_CreateLogMetric_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MetricsServiceV2Server).CreateLogMetric(ctx, req.(*CreateLogMetricRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MetricsServiceV2_UpdateLogMetric_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateLogMetricRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MetricsServiceV2Server).UpdateLogMetric(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: MetricsServiceV2_UpdateLogMetric_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MetricsServiceV2Server).UpdateLogMetric(ctx, req.(*UpdateLogMetricRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MetricsServiceV2_DeleteLogMetric_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteLogMetricRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MetricsServiceV2Server).DeleteLogMetric(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: MetricsServiceV2_DeleteLogMetric_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MetricsServiceV2Server).DeleteLogMetric(ctx, req.(*DeleteLogMetricRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// MetricsServiceV2_ServiceDesc is the grpc.ServiceDesc for MetricsServiceV2 service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var MetricsServiceV2_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.logging.v2.MetricsServiceV2",
|
||||
HandlerType: (*MetricsServiceV2Server)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "ListLogMetrics",
|
||||
Handler: _MetricsServiceV2_ListLogMetrics_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetLogMetric",
|
||||
Handler: _MetricsServiceV2_GetLogMetric_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "CreateLogMetric",
|
||||
Handler: _MetricsServiceV2_CreateLogMetric_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateLogMetric",
|
||||
Handler: _MetricsServiceV2_UpdateLogMetric_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeleteLogMetric",
|
||||
Handler: _MetricsServiceV2_DeleteLogMetric_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "google/logging/v2/logging_metrics.proto",
|
||||
}
|
||||
6
vendor/cloud.google.com/go/logging/apiv2/metrics_client.go
generated
vendored
6
vendor/cloud.google.com/go/logging/apiv2/metrics_client.go
generated
vendored
@@ -1,4 +1,4 @@
|
||||
// Copyright 2024 Google LLC
|
||||
// Copyright 2025 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
@@ -357,7 +357,7 @@ func (c *metricsGRPCClient) Connection() *grpc.ClientConn {
|
||||
// use by Google-written clients.
|
||||
func (c *metricsGRPCClient) setGoogleClientInfo(keyval ...string) {
|
||||
kv := append([]string{"gl-go", gax.GoVersion}, keyval...)
|
||||
kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "grpc", grpc.Version)
|
||||
kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "grpc", grpc.Version, "pb", protoVersion)
|
||||
c.xGoogHeaders = []string{
|
||||
"x-goog-api-client", gax.XGoogHeader(kv...),
|
||||
}
|
||||
@@ -425,7 +425,7 @@ func defaultMetricsRESTClientOptions() []option.ClientOption {
|
||||
// use by Google-written clients.
|
||||
func (c *metricsRESTClient) setGoogleClientInfo(keyval ...string) {
|
||||
kv := append([]string{"gl-go", gax.GoVersion}, keyval...)
|
||||
kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "rest", "UNKNOWN")
|
||||
kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "rest", "UNKNOWN", "pb", protoVersion)
|
||||
c.xGoogHeaders = []string{
|
||||
"x-goog-api-client", gax.XGoogHeader(kv...),
|
||||
}
|
||||
|
||||
2
vendor/cloud.google.com/go/logging/internal/version.go
generated
vendored
2
vendor/cloud.google.com/go/logging/internal/version.go
generated
vendored
@@ -15,4 +15,4 @@
|
||||
package internal
|
||||
|
||||
// Version is the current tagged release of the library.
|
||||
const Version = "1.13.0"
|
||||
const Version = "1.13.1"
|
||||
|
||||
4
vendor/modules.txt
vendored
4
vendor/modules.txt
vendored
@@ -24,8 +24,8 @@ cloud.google.com/go/auth/oauth2adapt
|
||||
# cloud.google.com/go/compute/metadata v0.8.0
|
||||
## explicit; go 1.23.0
|
||||
cloud.google.com/go/compute/metadata
|
||||
# cloud.google.com/go/logging v1.13.0
|
||||
## explicit; go 1.21
|
||||
# cloud.google.com/go/logging v1.13.1
|
||||
## explicit; go 1.24.0
|
||||
cloud.google.com/go/logging
|
||||
cloud.google.com/go/logging/apiv2
|
||||
cloud.google.com/go/logging/apiv2/loggingpb
|
||||
|
||||
Reference in New Issue
Block a user