123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701 |
- // Code generated by protoc-gen-go.
- // source: google/logging/v2/logging_config.proto
- // DO NOT EDIT!
- package logging
- import proto "github.com/golang/protobuf/proto"
- import fmt "fmt"
- import math "math"
- import _ "google.golang.org/genproto/googleapis/api/annotations"
- import google_protobuf5 "github.com/golang/protobuf/ptypes/empty"
- import google_protobuf4 "github.com/golang/protobuf/ptypes/timestamp"
- import (
- context "golang.org/x/net/context"
- grpc "google.golang.org/grpc"
- )
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
- // Available log entry formats. Log entries can be written to Stackdriver
- // Logging in either format and can be exported in either format.
- // Version 2 is the preferred format.
- type LogSink_VersionFormat int32
- const (
- // An unspecified format version that will default to V2.
- LogSink_VERSION_FORMAT_UNSPECIFIED LogSink_VersionFormat = 0
- // `LogEntry` version 2 format.
- LogSink_V2 LogSink_VersionFormat = 1
- // `LogEntry` version 1 format.
- LogSink_V1 LogSink_VersionFormat = 2
- )
- var LogSink_VersionFormat_name = map[int32]string{
- 0: "VERSION_FORMAT_UNSPECIFIED",
- 1: "V2",
- 2: "V1",
- }
- var LogSink_VersionFormat_value = map[string]int32{
- "VERSION_FORMAT_UNSPECIFIED": 0,
- "V2": 1,
- "V1": 2,
- }
- func (x LogSink_VersionFormat) String() string {
- return proto.EnumName(LogSink_VersionFormat_name, int32(x))
- }
- func (LogSink_VersionFormat) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 0} }
- // Describes a sink used to export log entries to one of the following
- // destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a
- // Cloud Pub/Sub topic. A logs filter controls which log entries are
- // exported. The sink must be created within a project or organization.
- type LogSink struct {
- // Required. The client-assigned sink identifier, unique within the
- // project. Example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are
- // limited to 100 characters and can include only the following characters:
- // upper and lower-case alphanumeric characters, underscores, hyphens, and
- // periods.
- Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
- // Required. The export destination:
- //
- // "storage.googleapis.com/[GCS_BUCKET]"
- // "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
- // "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
- //
- // The sink's `writer_identity`, set when the sink is created, must
- // have permission to write to the destination or else the log
- // entries are not exported. For more information, see
- // [Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs).
- Destination string `protobuf:"bytes,3,opt,name=destination" json:"destination,omitempty"`
- // Optional.
- // An [advanced logs filter](/logging/docs/view/advanced_filters). The only
- // exported log entries are those that are in the resource owning the sink and
- // that match the filter. The filter must use the log entry format specified
- // by the `output_version_format` parameter. For example, in the v2 format:
- //
- // logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
- Filter string `protobuf:"bytes,5,opt,name=filter" json:"filter,omitempty"`
- // Optional. The log entry format to use for this sink's exported log
- // entries. The v2 format is used by default.
- // **The v1 format is deprecated** and should be used only as part of a
- // migration effort to v2.
- // See [Migration to the v2 API](/logging/docs/api/v2/migration-to-v2).
- OutputVersionFormat LogSink_VersionFormat `protobuf:"varint,6,opt,name=output_version_format,json=outputVersionFormat,enum=google.logging.v2.LogSink_VersionFormat" json:"output_version_format,omitempty"`
- // Output only. An IAM identity—a service account or group—under
- // which Stackdriver Logging writes the exported log entries to the sink's
- // destination. This field is set by
- // [sinks.create](/logging/docs/api/reference/rest/v2/projects.sinks/create)
- // and
- // [sinks.update](/logging/docs/api/reference/rest/v2/projects.sinks/update),
- // based on the setting of `unique_writer_identity` in those methods.
- //
- // Until you grant this identity write-access to the destination, log entry
- // exports from this sink will fail. For more information,
- // see [Granting access for a
- // resource](/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
- // Consult the destination service's documentation to determine the
- // appropriate IAM roles to assign to the identity.
- WriterIdentity string `protobuf:"bytes,8,opt,name=writer_identity,json=writerIdentity" json:"writer_identity,omitempty"`
- // Optional. The time at which this sink will begin exporting log entries.
- // Log entries are exported only if their timestamp is not earlier than the
- // start time. The default value of this field is the time the sink is
- // created or updated.
- StartTime *google_protobuf4.Timestamp `protobuf:"bytes,10,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
- // Optional. The time at which this sink will stop exporting log entries. Log
- // entries are exported only if their timestamp is earlier than the end time.
- // If this field is not supplied, there is no end time. If both a start time
- // and an end time are provided, then the end time must be later than the
- // start time.
- EndTime *google_protobuf4.Timestamp `protobuf:"bytes,11,opt,name=end_time,json=endTime" json:"end_time,omitempty"`
- }
- func (m *LogSink) Reset() { *m = LogSink{} }
- func (m *LogSink) String() string { return proto.CompactTextString(m) }
- func (*LogSink) ProtoMessage() {}
- func (*LogSink) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
- func (m *LogSink) GetName() string {
- if m != nil {
- return m.Name
- }
- return ""
- }
- func (m *LogSink) GetDestination() string {
- if m != nil {
- return m.Destination
- }
- return ""
- }
- func (m *LogSink) GetFilter() string {
- if m != nil {
- return m.Filter
- }
- return ""
- }
- func (m *LogSink) GetOutputVersionFormat() LogSink_VersionFormat {
- if m != nil {
- return m.OutputVersionFormat
- }
- return LogSink_VERSION_FORMAT_UNSPECIFIED
- }
- func (m *LogSink) GetWriterIdentity() string {
- if m != nil {
- return m.WriterIdentity
- }
- return ""
- }
- func (m *LogSink) GetStartTime() *google_protobuf4.Timestamp {
- if m != nil {
- return m.StartTime
- }
- return nil
- }
- func (m *LogSink) GetEndTime() *google_protobuf4.Timestamp {
- if m != nil {
- return m.EndTime
- }
- return nil
- }
- // The parameters to `ListSinks`.
- type ListSinksRequest struct {
- // Required. The parent resource whose sinks are to be listed.
- // Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
- Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
- // Optional. If present, then retrieve the next batch of results from the
- // preceding call to this method. `pageToken` must be the value of
- // `nextPageToken` from the previous response. The values of other method
- // parameters should be identical to those in the previous call.
- PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
- // Optional. The maximum number of results to return from this request.
- // Non-positive values are ignored. The presence of `nextPageToken` in the
- // response indicates that more results might be available.
- PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
- }
- func (m *ListSinksRequest) Reset() { *m = ListSinksRequest{} }
- func (m *ListSinksRequest) String() string { return proto.CompactTextString(m) }
- func (*ListSinksRequest) ProtoMessage() {}
- func (*ListSinksRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
- func (m *ListSinksRequest) GetParent() string {
- if m != nil {
- return m.Parent
- }
- return ""
- }
- func (m *ListSinksRequest) GetPageToken() string {
- if m != nil {
- return m.PageToken
- }
- return ""
- }
- func (m *ListSinksRequest) GetPageSize() int32 {
- if m != nil {
- return m.PageSize
- }
- return 0
- }
- // Result returned from `ListSinks`.
- type ListSinksResponse struct {
- // A list of sinks.
- Sinks []*LogSink `protobuf:"bytes,1,rep,name=sinks" json:"sinks,omitempty"`
- // If there might be more results than appear in this response, then
- // `nextPageToken` is included. To get the next set of results, call the same
- // method again using the value of `nextPageToken` as `pageToken`.
- NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
- }
- func (m *ListSinksResponse) Reset() { *m = ListSinksResponse{} }
- func (m *ListSinksResponse) String() string { return proto.CompactTextString(m) }
- func (*ListSinksResponse) ProtoMessage() {}
- func (*ListSinksResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
- func (m *ListSinksResponse) GetSinks() []*LogSink {
- if m != nil {
- return m.Sinks
- }
- return nil
- }
- func (m *ListSinksResponse) GetNextPageToken() string {
- if m != nil {
- return m.NextPageToken
- }
- return ""
- }
- // The parameters to `GetSink`.
- type GetSinkRequest struct {
- // Required. The parent resource name of the sink:
- //
- // "projects/[PROJECT_ID]/sinks/[SINK_ID]"
- // "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
- //
- // Example: `"projects/my-project-id/sinks/my-sink-id"`.
- SinkName string `protobuf:"bytes,1,opt,name=sink_name,json=sinkName" json:"sink_name,omitempty"`
- }
- func (m *GetSinkRequest) Reset() { *m = GetSinkRequest{} }
- func (m *GetSinkRequest) String() string { return proto.CompactTextString(m) }
- func (*GetSinkRequest) ProtoMessage() {}
- func (*GetSinkRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} }
- func (m *GetSinkRequest) GetSinkName() string {
- if m != nil {
- return m.SinkName
- }
- return ""
- }
- // The parameters to `CreateSink`.
- type CreateSinkRequest struct {
- // Required. The resource in which to create the sink:
- //
- // "projects/[PROJECT_ID]"
- // "organizations/[ORGANIZATION_ID]"
- //
- // Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
- Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
- // Required. The new sink, whose `name` parameter is a sink identifier that
- // is not already in use.
- Sink *LogSink `protobuf:"bytes,2,opt,name=sink" json:"sink,omitempty"`
- // Optional. Determines the kind of IAM identity returned as `writer_identity`
- // in the new sink. If this value is omitted or set to false, and if the
- // sink's parent is a project, then the value returned as `writer_identity` is
- // `cloud-logs@google.com`, the same identity used before the addition of
- // writer identities to this API. The sink's destination must be in the same
- // project as the sink itself.
- //
- // If this field is set to true, or if the sink is owned by a non-project
- // resource such as an organization, then the value of `writer_identity` will
- // be a unique service account used only for exports from the new sink. For
- // more information, see `writer_identity` in [LogSink][google.logging.v2.LogSink].
- UniqueWriterIdentity bool `protobuf:"varint,3,opt,name=unique_writer_identity,json=uniqueWriterIdentity" json:"unique_writer_identity,omitempty"`
- }
- func (m *CreateSinkRequest) Reset() { *m = CreateSinkRequest{} }
- func (m *CreateSinkRequest) String() string { return proto.CompactTextString(m) }
- func (*CreateSinkRequest) ProtoMessage() {}
- func (*CreateSinkRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{4} }
- func (m *CreateSinkRequest) GetParent() string {
- if m != nil {
- return m.Parent
- }
- return ""
- }
- func (m *CreateSinkRequest) GetSink() *LogSink {
- if m != nil {
- return m.Sink
- }
- return nil
- }
- func (m *CreateSinkRequest) GetUniqueWriterIdentity() bool {
- if m != nil {
- return m.UniqueWriterIdentity
- }
- return false
- }
- // The parameters to `UpdateSink`.
- type UpdateSinkRequest struct {
- // Required. The full resource name of the sink to update, including the
- // parent resource and the sink identifier:
- //
- // "projects/[PROJECT_ID]/sinks/[SINK_ID]"
- // "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
- //
- // Example: `"projects/my-project-id/sinks/my-sink-id"`.
- SinkName string `protobuf:"bytes,1,opt,name=sink_name,json=sinkName" json:"sink_name,omitempty"`
- // Required. The updated sink, whose name is the same identifier that appears
- // as part of `sink_name`. If `sink_name` does not exist, then
- // this method creates a new sink.
- Sink *LogSink `protobuf:"bytes,2,opt,name=sink" json:"sink,omitempty"`
- // Optional. See
- // [sinks.create](/logging/docs/api/reference/rest/v2/projects.sinks/create)
- // for a description of this field. When updating a sink, the effect of this
- // field on the value of `writer_identity` in the updated sink depends on both
- // the old and new values of this field:
- //
- // + If the old and new values of this field are both false or both true,
- // then there is no change to the sink's `writer_identity`.
- // + If the old value was false and the new value is true, then
- // `writer_identity` is changed to a unique service account.
- // + It is an error if the old value was true and the new value is false.
- UniqueWriterIdentity bool `protobuf:"varint,3,opt,name=unique_writer_identity,json=uniqueWriterIdentity" json:"unique_writer_identity,omitempty"`
- }
- func (m *UpdateSinkRequest) Reset() { *m = UpdateSinkRequest{} }
- func (m *UpdateSinkRequest) String() string { return proto.CompactTextString(m) }
- func (*UpdateSinkRequest) ProtoMessage() {}
- func (*UpdateSinkRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{5} }
- func (m *UpdateSinkRequest) GetSinkName() string {
- if m != nil {
- return m.SinkName
- }
- return ""
- }
- func (m *UpdateSinkRequest) GetSink() *LogSink {
- if m != nil {
- return m.Sink
- }
- return nil
- }
- func (m *UpdateSinkRequest) GetUniqueWriterIdentity() bool {
- if m != nil {
- return m.UniqueWriterIdentity
- }
- return false
- }
- // The parameters to `DeleteSink`.
- type DeleteSinkRequest struct {
- // Required. The full resource name of the sink to delete, including the
- // parent resource and the sink identifier:
- //
- // "projects/[PROJECT_ID]/sinks/[SINK_ID]"
- // "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
- //
- // It is an error if the sink does not exist. Example:
- // `"projects/my-project-id/sinks/my-sink-id"`. It is an error if
- // the sink does not exist.
- SinkName string `protobuf:"bytes,1,opt,name=sink_name,json=sinkName" json:"sink_name,omitempty"`
- }
- func (m *DeleteSinkRequest) Reset() { *m = DeleteSinkRequest{} }
- func (m *DeleteSinkRequest) String() string { return proto.CompactTextString(m) }
- func (*DeleteSinkRequest) ProtoMessage() {}
- func (*DeleteSinkRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{6} }
- func (m *DeleteSinkRequest) GetSinkName() string {
- if m != nil {
- return m.SinkName
- }
- return ""
- }
- func init() {
- proto.RegisterType((*LogSink)(nil), "google.logging.v2.LogSink")
- proto.RegisterType((*ListSinksRequest)(nil), "google.logging.v2.ListSinksRequest")
- proto.RegisterType((*ListSinksResponse)(nil), "google.logging.v2.ListSinksResponse")
- proto.RegisterType((*GetSinkRequest)(nil), "google.logging.v2.GetSinkRequest")
- proto.RegisterType((*CreateSinkRequest)(nil), "google.logging.v2.CreateSinkRequest")
- proto.RegisterType((*UpdateSinkRequest)(nil), "google.logging.v2.UpdateSinkRequest")
- proto.RegisterType((*DeleteSinkRequest)(nil), "google.logging.v2.DeleteSinkRequest")
- proto.RegisterEnum("google.logging.v2.LogSink_VersionFormat", LogSink_VersionFormat_name, LogSink_VersionFormat_value)
- }
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConn
- // 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.SupportPackageIsVersion4
- // Client API for ConfigServiceV2 service
- type ConfigServiceV2Client interface {
- // Lists sinks.
- ListSinks(ctx context.Context, in *ListSinksRequest, opts ...grpc.CallOption) (*ListSinksResponse, error)
- // Gets a sink.
- GetSink(ctx context.Context, in *GetSinkRequest, opts ...grpc.CallOption) (*LogSink, error)
- // Creates a sink that exports specified log entries to a destination. The
- // export of newly-ingested log entries begins immediately, unless the current
- // time is outside the sink's start and end times or the sink's
- // `writer_identity` is not permitted to write to the destination. A sink can
- // export log entries only from the resource owning the sink.
- CreateSink(ctx context.Context, in *CreateSinkRequest, opts ...grpc.CallOption) (*LogSink, error)
- // Updates a sink. If the named sink doesn't exist, then this method is
- // identical to
- // [sinks.create](/logging/docs/api/reference/rest/v2/projects.sinks/create).
- // If the named sink does exist, then this method replaces the following
- // fields in the existing sink with values from the new sink: `destination`,
- // `filter`, `output_version_format`, `start_time`, and `end_time`.
- // The updated filter might also have a new `writer_identity`; see the
- // `unique_writer_identity` field.
- UpdateSink(ctx context.Context, in *UpdateSinkRequest, opts ...grpc.CallOption) (*LogSink, error)
- // Deletes a sink. If the sink has a unique `writer_identity`, then that
- // service account is also deleted.
- DeleteSink(ctx context.Context, in *DeleteSinkRequest, opts ...grpc.CallOption) (*google_protobuf5.Empty, error)
- }
- type configServiceV2Client struct {
- cc *grpc.ClientConn
- }
- func NewConfigServiceV2Client(cc *grpc.ClientConn) ConfigServiceV2Client {
- return &configServiceV2Client{cc}
- }
- func (c *configServiceV2Client) ListSinks(ctx context.Context, in *ListSinksRequest, opts ...grpc.CallOption) (*ListSinksResponse, error) {
- out := new(ListSinksResponse)
- err := grpc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/ListSinks", in, out, c.cc, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *configServiceV2Client) GetSink(ctx context.Context, in *GetSinkRequest, opts ...grpc.CallOption) (*LogSink, error) {
- out := new(LogSink)
- err := grpc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/GetSink", in, out, c.cc, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *configServiceV2Client) CreateSink(ctx context.Context, in *CreateSinkRequest, opts ...grpc.CallOption) (*LogSink, error) {
- out := new(LogSink)
- err := grpc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/CreateSink", in, out, c.cc, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *configServiceV2Client) UpdateSink(ctx context.Context, in *UpdateSinkRequest, opts ...grpc.CallOption) (*LogSink, error) {
- out := new(LogSink)
- err := grpc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/UpdateSink", in, out, c.cc, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *configServiceV2Client) DeleteSink(ctx context.Context, in *DeleteSinkRequest, opts ...grpc.CallOption) (*google_protobuf5.Empty, error) {
- out := new(google_protobuf5.Empty)
- err := grpc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/DeleteSink", in, out, c.cc, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // Server API for ConfigServiceV2 service
- type ConfigServiceV2Server interface {
- // Lists sinks.
- ListSinks(context.Context, *ListSinksRequest) (*ListSinksResponse, error)
- // Gets a sink.
- GetSink(context.Context, *GetSinkRequest) (*LogSink, error)
- // Creates a sink that exports specified log entries to a destination. The
- // export of newly-ingested log entries begins immediately, unless the current
- // time is outside the sink's start and end times or the sink's
- // `writer_identity` is not permitted to write to the destination. A sink can
- // export log entries only from the resource owning the sink.
- CreateSink(context.Context, *CreateSinkRequest) (*LogSink, error)
- // Updates a sink. If the named sink doesn't exist, then this method is
- // identical to
- // [sinks.create](/logging/docs/api/reference/rest/v2/projects.sinks/create).
- // If the named sink does exist, then this method replaces the following
- // fields in the existing sink with values from the new sink: `destination`,
- // `filter`, `output_version_format`, `start_time`, and `end_time`.
- // The updated filter might also have a new `writer_identity`; see the
- // `unique_writer_identity` field.
- UpdateSink(context.Context, *UpdateSinkRequest) (*LogSink, error)
- // Deletes a sink. If the sink has a unique `writer_identity`, then that
- // service account is also deleted.
- DeleteSink(context.Context, *DeleteSinkRequest) (*google_protobuf5.Empty, error)
- }
- func RegisterConfigServiceV2Server(s *grpc.Server, srv ConfigServiceV2Server) {
- s.RegisterService(&_ConfigServiceV2_serviceDesc, srv)
- }
- func _ConfigServiceV2_ListSinks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ListSinksRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ConfigServiceV2Server).ListSinks(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/google.logging.v2.ConfigServiceV2/ListSinks",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ConfigServiceV2Server).ListSinks(ctx, req.(*ListSinksRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ConfigServiceV2_GetSink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetSinkRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ConfigServiceV2Server).GetSink(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/google.logging.v2.ConfigServiceV2/GetSink",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ConfigServiceV2Server).GetSink(ctx, req.(*GetSinkRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ConfigServiceV2_CreateSink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CreateSinkRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ConfigServiceV2Server).CreateSink(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/google.logging.v2.ConfigServiceV2/CreateSink",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ConfigServiceV2Server).CreateSink(ctx, req.(*CreateSinkRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ConfigServiceV2_UpdateSink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UpdateSinkRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ConfigServiceV2Server).UpdateSink(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/google.logging.v2.ConfigServiceV2/UpdateSink",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ConfigServiceV2Server).UpdateSink(ctx, req.(*UpdateSinkRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ConfigServiceV2_DeleteSink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DeleteSinkRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ConfigServiceV2Server).DeleteSink(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/google.logging.v2.ConfigServiceV2/DeleteSink",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ConfigServiceV2Server).DeleteSink(ctx, req.(*DeleteSinkRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _ConfigServiceV2_serviceDesc = grpc.ServiceDesc{
- ServiceName: "google.logging.v2.ConfigServiceV2",
- HandlerType: (*ConfigServiceV2Server)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "ListSinks",
- Handler: _ConfigServiceV2_ListSinks_Handler,
- },
- {
- MethodName: "GetSink",
- Handler: _ConfigServiceV2_GetSink_Handler,
- },
- {
- MethodName: "CreateSink",
- Handler: _ConfigServiceV2_CreateSink_Handler,
- },
- {
- MethodName: "UpdateSink",
- Handler: _ConfigServiceV2_UpdateSink_Handler,
- },
- {
- MethodName: "DeleteSink",
- Handler: _ConfigServiceV2_DeleteSink_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "google/logging/v2/logging_config.proto",
- }
- func init() { proto.RegisterFile("google/logging/v2/logging_config.proto", fileDescriptor2) }
- var fileDescriptor2 = []byte{
- // 787 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xed, 0x4e, 0x33, 0x45,
- 0x14, 0x76, 0x0b, 0x94, 0xf6, 0x90, 0x17, 0xda, 0xd1, 0x17, 0x37, 0x8b, 0xaf, 0xd4, 0x15, 0xb0,
- 0xa9, 0x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