// Copyright 2020 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. DO NOT EDIT. // versions: // protoc-gen-go v1.22.0 // protoc v3.12.2 // source: google/logging/v2/logging_config.proto package logging import ( context "context" reflect "reflect" sync "sync" proto "github.com/golang/protobuf/proto" _ "github.com/golang/protobuf/ptypes/duration" empty "github.com/golang/protobuf/ptypes/empty" timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" field_mask "google.golang.org/genproto/protobuf/field_mask" 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" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // This is a compile-time assertion that a sufficiently up-to-date version // of the legacy proto package is being used. const _ = proto.ProtoPackageIsVersion4 // LogBucket lifecycle states (Beta). type LifecycleState int32 const ( // Unspecified state. This is only used/useful for distinguishing // unset values. LifecycleState_LIFECYCLE_STATE_UNSPECIFIED LifecycleState = 0 // The normal and active state. LifecycleState_ACTIVE LifecycleState = 1 // The bucket has been marked for deletion by the user. LifecycleState_DELETE_REQUESTED LifecycleState = 2 ) // Enum value maps for LifecycleState. var ( LifecycleState_name = map[int32]string{ 0: "LIFECYCLE_STATE_UNSPECIFIED", 1: "ACTIVE", 2: "DELETE_REQUESTED", } LifecycleState_value = map[string]int32{ "LIFECYCLE_STATE_UNSPECIFIED": 0, "ACTIVE": 1, "DELETE_REQUESTED": 2, } ) func (x LifecycleState) Enum() *LifecycleState { p := new(LifecycleState) *p = x return p } func (x LifecycleState) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (LifecycleState) Descriptor() protoreflect.EnumDescriptor { return file_google_logging_v2_logging_config_proto_enumTypes[0].Descriptor() } func (LifecycleState) Type() protoreflect.EnumType { return &file_google_logging_v2_logging_config_proto_enumTypes[0] } func (x LifecycleState) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use LifecycleState.Descriptor instead. func (LifecycleState) EnumDescriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{0} } // Available log entry formats. Log entries can be written to // 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 ) // Enum value maps for LogSink_VersionFormat. var ( LogSink_VersionFormat_name = map[int32]string{ 0: "VERSION_FORMAT_UNSPECIFIED", 1: "V2", 2: "V1", } LogSink_VersionFormat_value = map[string]int32{ "VERSION_FORMAT_UNSPECIFIED": 0, "V2": 1, "V1": 2, } ) func (x LogSink_VersionFormat) Enum() *LogSink_VersionFormat { p := new(LogSink_VersionFormat) *p = x return p } func (x LogSink_VersionFormat) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (LogSink_VersionFormat) Descriptor() protoreflect.EnumDescriptor { return file_google_logging_v2_logging_config_proto_enumTypes[1].Descriptor() } func (LogSink_VersionFormat) Type() protoreflect.EnumType { return &file_google_logging_v2_logging_config_proto_enumTypes[1] } func (x LogSink_VersionFormat) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use LogSink_VersionFormat.Descriptor instead. func (LogSink_VersionFormat) EnumDescriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{1, 0} } // Describes a repository of logs (Beta). type LogBucket struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The resource name of the bucket. // For example: // "projects/my-project-id/locations/my-location/buckets/my-bucket-id The // supported locations are: // "global" // "us-central1" // // For the location of `global` it is unspecified where logs are actually // stored. // Once a bucket has been created, the location can not be changed. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Describes this bucket. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Output only. The creation timestamp of the bucket. This is not set for any of the // default buckets. CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last update timestamp of the bucket. UpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Logs will be retained by default for this amount of time, after which they // will automatically be deleted. The minimum retention period is 1 day. // If this value is set to zero at bucket creation time, the default time of // 30 days will be used. RetentionDays int32 `protobuf:"varint,11,opt,name=retention_days,json=retentionDays,proto3" json:"retention_days,omitempty"` // Output only. The bucket lifecycle state. LifecycleState LifecycleState `protobuf:"varint,12,opt,name=lifecycle_state,json=lifecycleState,proto3,enum=google.logging.v2.LifecycleState" json:"lifecycle_state,omitempty"` } func (x *LogBucket) Reset() { *x = LogBucket{} if protoimpl.UnsafeEnabled { mi := &file_google_logging_v2_logging_config_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *LogBucket) String() string { return protoimpl.X.MessageStringOf(x) } func (*LogBucket) ProtoMessage() {} func (x *LogBucket) ProtoReflect() protoreflect.Message { mi := &file_google_logging_v2_logging_config_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use LogBucket.ProtoReflect.Descriptor instead. func (*LogBucket) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{0} } func (x *LogBucket) GetName() string { if x != nil { return x.Name } return "" } func (x *LogBucket) GetDescription() string { if x != nil { return x.Description } return "" } func (x *LogBucket) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } func (x *LogBucket) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } return nil } func (x *LogBucket) GetRetentionDays() int32 { if x != nil { return x.RetentionDays } return 0 } func (x *LogBucket) GetLifecycleState() LifecycleState { if x != nil { return x.LifecycleState } return LifecycleState_LIFECYCLE_STATE_UNSPECIFIED } // 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, organization, billing account, or // folder. type LogSink struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // 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. // First character has to be alphanumeric. Name string `protobuf:"bytes,1,opt,name=name,proto3" 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](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). Destination string `protobuf:"bytes,3,opt,name=destination,proto3" json:"destination,omitempty"` // Optional. An [advanced logs filter](https://cloud.google.com/logging/docs/view/advanced-queries). The only // exported log entries are those that are in the resource owning the sink and // that match the filter. For example: // // logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"` // Optional. A description of this sink. // The maximum length of the description is 8000 characters. Description string `protobuf:"bytes,18,opt,name=description,proto3" json:"description,omitempty"` // Optional. If set to True, then this sink is disabled and it does not // export any log entries. Disabled bool `protobuf:"varint,19,opt,name=disabled,proto3" json:"disabled,omitempty"` // Deprecated. The log entry format to use for this sink's exported log // entries. The v2 format is used by default and cannot be changed. // // Deprecated: Do not use. OutputVersionFormat LogSink_VersionFormat `protobuf:"varint,6,opt,name=output_version_format,json=outputVersionFormat,proto3,enum=google.logging.v2.LogSink_VersionFormat" json:"output_version_format,omitempty"` // Output only. An IAM identity–a service account or group—under which Logging // writes the exported log entries to the sink's destination. This field is // set by [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and // [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink] based on the // value 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](https://cloud.google.com/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,proto3" json:"writer_identity,omitempty"` // Optional. This field applies only to sinks owned by organizations and // folders. If the field is false, the default, only the logs owned by the // sink's parent resource are available for export. If the field is true, then // logs from all the projects, folders, and billing accounts contained in the // sink's parent resource are also available for export. Whether a particular // log entry from the children is exported depends on the sink's filter // expression. For example, if this field is true, then the filter // `resource.type=gce_instance` would export all Compute Engine VM instance // log entries from all projects in the sink's parent. To only export entries // from certain child projects, filter on the project part of the log name: // // logName:("projects/test-project1/" OR "projects/test-project2/") AND // resource.type=gce_instance IncludeChildren bool `protobuf:"varint,9,opt,name=include_children,json=includeChildren,proto3" json:"include_children,omitempty"` // Destination dependent options. // // Types that are assignable to Options: // *LogSink_BigqueryOptions Options isLogSink_Options `protobuf_oneof:"options"` // Output only. The creation timestamp of the sink. // // This field may not be present for older sinks. CreateTime *timestamp.Timestamp `protobuf:"bytes,13,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last update timestamp of the sink. // // This field may not be present for older sinks. UpdateTime *timestamp.Timestamp `protobuf:"bytes,14,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } func (x *LogSink) Reset() { *x = LogSink{} if protoimpl.UnsafeEnabled { mi := &file_google_logging_v2_logging_config_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *LogSink) String() string { return protoimpl.X.MessageStringOf(x) } func (*LogSink) ProtoMessage() {} func (x *LogSink) ProtoReflect() protoreflect.Message { mi := &file_google_logging_v2_logging_config_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use LogSink.ProtoReflect.Descriptor instead. func (*LogSink) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{1} } func (x *LogSink) GetName() string { if x != nil { return x.Name } return "" } func (x *LogSink) GetDestination() string { if x != nil { return x.Destination } return "" } func (x *LogSink) GetFilter() string { if x != nil { return x.Filter } return "" } func (x *LogSink) GetDescription() string { if x != nil { return x.Description } return "" } func (x *LogSink) GetDisabled() bool { if x != nil { return x.Disabled } return false } // Deprecated: Do not use. func (x *LogSink) GetOutputVersionFormat() LogSink_VersionFormat { if x != nil { return x.OutputVersionFormat } return LogSink_VERSION_FORMAT_UNSPECIFIED } func (x *LogSink) GetWriterIdentity() string { if x != nil { return x.WriterIdentity } return "" } func (x *LogSink) GetIncludeChildren() bool { if x != nil { return x.IncludeChildren } return false } func (m *LogSink) GetOptions() isLogSink_Options { if m != nil { return m.Options } return nil } func (x *LogSink) GetBigqueryOptions() *BigQueryOptions { if x, ok := x.GetOptions().(*LogSink_BigqueryOptions); ok { return x.BigqueryOptions } return nil } func (x *LogSink) GetCreateTime() *timestamp.Timestamp { if x != nil { return x.CreateTime } return nil } func (x *LogSink) GetUpdateTime() *timestamp.Timestamp { if x != nil { return x.UpdateTime } return nil } type isLogSink_Options interface { isLogSink_Options() } type LogSink_BigqueryOptions struct { // Optional. Options that affect sinks exporting data to BigQuery. BigqueryOptions *BigQueryOptions `protobuf:"bytes,12,opt,name=bigquery_options,json=bigqueryOptions,proto3,oneof"` } func (*LogSink_BigqueryOptions) isLogSink_Options() {} // Options that change functionality of a sink exporting data to BigQuery. type BigQueryOptions struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Optional. Whether to use [BigQuery's partition // tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By default, Logging // creates dated tables based on the log entries' timestamps, e.g. // syslog_20170523. With partitioned tables the date suffix is no longer // present and [special query // syntax](https://cloud.google.com/bigquery/docs/querying-partitioned-tables) has to be used instead. // In both cases, tables are sharded based on UTC timezone. UsePartitionedTables bool `protobuf:"varint,1,opt,name=use_partitioned_tables,json=usePartitionedTables,proto3" json:"use_partitioned_tables,omitempty"` // Output only. True if new timestamp column based partitioning is in use, // false if legacy ingestion-time partitioning is in use. // All new sinks will have this field set true and will use timestamp column // based partitioning. If use_partitioned_tables is false, this value has no // meaning and will be false. Legacy sinks using partitioned tables will have // this field set to false. UsesTimestampColumnPartitioning bool `protobuf:"varint,3,opt,name=uses_timestamp_column_partitioning,json=usesTimestampColumnPartitioning,proto3" json:"uses_timestamp_column_partitioning,omitempty"` } func (x *BigQueryOptions) Reset() { *x = BigQueryOptions{} if protoimpl.UnsafeEnabled { mi := &file_google_logging_v2_logging_config_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *BigQueryOptions) String() string { return protoimpl.X.MessageStringOf(x) } func (*BigQueryOptions) ProtoMessage() {} func (x *BigQueryOptions) ProtoReflect() protoreflect.Message { mi := &file_google_logging_v2_logging_config_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use BigQueryOptions.ProtoReflect.Descriptor instead. func (*BigQueryOptions) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{2} } func (x *BigQueryOptions) GetUsePartitionedTables() bool { if x != nil { return x.UsePartitionedTables } return false } func (x *BigQueryOptions) GetUsesTimestampColumnPartitioning() bool { if x != nil { return x.UsesTimestampColumnPartitioning } return false } // The parameters to `ListBuckets` (Beta). type ListBucketsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The parent resource whose buckets are to be listed: // // "projects/[PROJECT_ID]/locations/[LOCATION_ID]" // "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" // "folders/[FOLDER_ID]/locations/[LOCATION_ID]" // // Note: The locations portion of the resource must be specified, but // supplying the character `-` in place of [LOCATION_ID] will return all // buckets. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" 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,proto3" 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,proto3" json:"page_size,omitempty"` } func (x *ListBucketsRequest) Reset() { *x = ListBucketsRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_logging_v2_logging_config_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ListBucketsRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListBucketsRequest) ProtoMessage() {} func (x *ListBucketsRequest) ProtoReflect() protoreflect.Message { mi := &file_google_logging_v2_logging_config_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ListBucketsRequest.ProtoReflect.Descriptor instead. func (*ListBucketsRequest) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{3} } func (x *ListBucketsRequest) GetParent() string { if x != nil { return x.Parent } return "" } func (x *ListBucketsRequest) GetPageToken() string { if x != nil { return x.PageToken } return "" } func (x *ListBucketsRequest) GetPageSize() int32 { if x != nil { return x.PageSize } return 0 } // The response from ListBuckets (Beta). type ListBucketsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // A list of buckets. Buckets []*LogBucket `protobuf:"bytes,1,rep,name=buckets,proto3" json:"buckets,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,proto3" json:"next_page_token,omitempty"` } func (x *ListBucketsResponse) Reset() { *x = ListBucketsResponse{} if protoimpl.UnsafeEnabled { mi := &file_google_logging_v2_logging_config_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ListBucketsResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListBucketsResponse) ProtoMessage() {} func (x *ListBucketsResponse) ProtoReflect() protoreflect.Message { mi := &file_google_logging_v2_logging_config_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ListBucketsResponse.ProtoReflect.Descriptor instead. func (*ListBucketsResponse) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{4} } func (x *ListBucketsResponse) GetBuckets() []*LogBucket { if x != nil { return x.Buckets } return nil } func (x *ListBucketsResponse) GetNextPageToken() string { if x != nil { return x.NextPageToken } return "" } // The parameters to `UpdateBucket` (Beta). type UpdateBucketRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The full resource name of the bucket to update. // // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // // Example: // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. Also // requires permission "resourcemanager.projects.updateLiens" to set the // locked property Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Required. The updated bucket. Bucket *LogBucket `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"` // Required. Field mask that specifies the fields in `bucket` that need an update. A // bucket field will be overwritten if, and only if, it is in the update // mask. `name` and output only fields cannot be updated. // // For a detailed `FieldMask` definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask // // Example: `updateMask=retention_days`. UpdateMask *field_mask.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateBucketRequest) Reset() { *x = UpdateBucketRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_logging_v2_logging_config_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *UpdateBucketRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*UpdateBucketRequest) ProtoMessage() {} func (x *UpdateBucketRequest) ProtoReflect() protoreflect.Message { mi := &file_google_logging_v2_logging_config_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use UpdateBucketRequest.ProtoReflect.Descriptor instead. func (*UpdateBucketRequest) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{5} } func (x *UpdateBucketRequest) GetName() string { if x != nil { return x.Name } return "" } func (x *UpdateBucketRequest) GetBucket() *LogBucket { if x != nil { return x.Bucket } return nil } func (x *UpdateBucketRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } return nil } // The parameters to `GetBucket` (Beta). type GetBucketRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The resource name of the bucket: // // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // // Example: // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } func (x *GetBucketRequest) Reset() { *x = GetBucketRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_logging_v2_logging_config_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *GetBucketRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetBucketRequest) ProtoMessage() {} func (x *GetBucketRequest) ProtoReflect() protoreflect.Message { mi := &file_google_logging_v2_logging_config_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetBucketRequest.ProtoReflect.Descriptor instead. func (*GetBucketRequest) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{6} } func (x *GetBucketRequest) GetName() string { if x != nil { return x.Name } return "" } // The parameters to `ListSinks`. type ListSinksRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The parent resource whose sinks are to be listed: // // "projects/[PROJECT_ID]" // "organizations/[ORGANIZATION_ID]" // "billingAccounts/[BILLING_ACCOUNT_ID]" // "folders/[FOLDER_ID]" Parent string `protobuf:"bytes,1,opt,name=parent,proto3" 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,proto3" 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,proto3" json:"page_size,omitempty"` } func (x *ListSinksRequest) Reset() { *x = ListSinksRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_logging_v2_logging_config_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ListSinksRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListSinksRequest) ProtoMessage() {} func (x *ListSinksRequest) ProtoReflect() protoreflect.Message { mi := &file_google_logging_v2_logging_config_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ListSinksRequest.ProtoReflect.Descriptor instead. func (*ListSinksRequest) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{7} } func (x *ListSinksRequest) GetParent() string { if x != nil { return x.Parent } return "" } func (x *ListSinksRequest) GetPageToken() string { if x != nil { return x.PageToken } return "" } func (x *ListSinksRequest) GetPageSize() int32 { if x != nil { return x.PageSize } return 0 } // Result returned from `ListSinks`. type ListSinksResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // A list of sinks. Sinks []*LogSink `protobuf:"bytes,1,rep,name=sinks,proto3" 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,proto3" json:"next_page_token,omitempty"` } func (x *ListSinksResponse) Reset() { *x = ListSinksResponse{} if protoimpl.UnsafeEnabled { mi := &file_google_logging_v2_logging_config_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ListSinksResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListSinksResponse) ProtoMessage() {} func (x *ListSinksResponse) ProtoReflect() protoreflect.Message { mi := &file_google_logging_v2_logging_config_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ListSinksResponse.ProtoReflect.Descriptor instead. func (*ListSinksResponse) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{8} } func (x *ListSinksResponse) GetSinks() []*LogSink { if x != nil { return x.Sinks } return nil } func (x *ListSinksResponse) GetNextPageToken() string { if x != nil { return x.NextPageToken } return "" } // The parameters to `GetSink`. type GetSinkRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The resource name of the sink: // // "projects/[PROJECT_ID]/sinks/[SINK_ID]" // "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" // "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" // "folders/[FOLDER_ID]/sinks/[SINK_ID]" // // Example: `"projects/my-project-id/sinks/my-sink-id"`. SinkName string `protobuf:"bytes,1,opt,name=sink_name,json=sinkName,proto3" json:"sink_name,omitempty"` } func (x *GetSinkRequest) Reset() { *x = GetSinkRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_logging_v2_logging_config_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *GetSinkRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetSinkRequest) ProtoMessage() {} func (x *GetSinkRequest) ProtoReflect() protoreflect.Message { mi := &file_google_logging_v2_logging_config_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetSinkRequest.ProtoReflect.Descriptor instead. func (*GetSinkRequest) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{9} } func (x *GetSinkRequest) GetSinkName() string { if x != nil { return x.SinkName } return "" } // The parameters to `CreateSink`. type CreateSinkRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The resource in which to create the sink: // // "projects/[PROJECT_ID]" // "organizations/[ORGANIZATION_ID]" // "billingAccounts/[BILLING_ACCOUNT_ID]" // "folders/[FOLDER_ID]" // // Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" 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,proto3" 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 // the same group or service account used by Logging 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,proto3" json:"unique_writer_identity,omitempty"` } func (x *CreateSinkRequest) Reset() { *x = CreateSinkRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_logging_v2_logging_config_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CreateSinkRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*CreateSinkRequest) ProtoMessage() {} func (x *CreateSinkRequest) ProtoReflect() protoreflect.Message { mi := &file_google_logging_v2_logging_config_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CreateSinkRequest.ProtoReflect.Descriptor instead. func (*CreateSinkRequest) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{10} } func (x *CreateSinkRequest) GetParent() string { if x != nil { return x.Parent } return "" } func (x *CreateSinkRequest) GetSink() *LogSink { if x != nil { return x.Sink } return nil } func (x *CreateSinkRequest) GetUniqueWriterIdentity() bool { if x != nil { return x.UniqueWriterIdentity } return false } // The parameters to `UpdateSink`. type UpdateSinkRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // 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]" // "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" // "folders/[FOLDER_ID]/sinks/[SINK_ID]" // // Example: `"projects/my-project-id/sinks/my-sink-id"`. SinkName string `protobuf:"bytes,1,opt,name=sink_name,json=sinkName,proto3" json:"sink_name,omitempty"` // Required. The updated sink, whose name is the same identifier that appears as part // of `sink_name`. Sink *LogSink `protobuf:"bytes,2,opt,name=sink,proto3" json:"sink,omitempty"` // Optional. See [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] // 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 is 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 is true and the new value is // set to false or defaulted to false. UniqueWriterIdentity bool `protobuf:"varint,3,opt,name=unique_writer_identity,json=uniqueWriterIdentity,proto3" json:"unique_writer_identity,omitempty"` // Optional. Field mask that specifies the fields in `sink` that need // an update. A sink field will be overwritten if, and only if, it is // in the update mask. `name` and output only fields cannot be updated. // // An empty updateMask is temporarily treated as using the following mask // for backwards compatibility purposes: // destination,filter,includeChildren // At some point in the future, behavior will be removed and specifying an // empty updateMask will be an error. // // For a detailed `FieldMask` definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask // // Example: `updateMask=filter`. UpdateMask *field_mask.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateSinkRequest) Reset() { *x = UpdateSinkRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_logging_v2_logging_config_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *UpdateSinkRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*UpdateSinkRequest) ProtoMessage() {} func (x *UpdateSinkRequest) ProtoReflect() protoreflect.Message { mi := &file_google_logging_v2_logging_config_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use UpdateSinkRequest.ProtoReflect.Descriptor instead. func (*UpdateSinkRequest) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{11} } func (x *UpdateSinkRequest) GetSinkName() string { if x != nil { return x.SinkName } return "" } func (x *UpdateSinkRequest) GetSink() *LogSink { if x != nil { return x.Sink } return nil } func (x *UpdateSinkRequest) GetUniqueWriterIdentity() bool { if x != nil { return x.UniqueWriterIdentity } return false } func (x *UpdateSinkRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } return nil } // The parameters to `DeleteSink`. type DeleteSinkRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // 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]" // "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" // "folders/[FOLDER_ID]/sinks/[SINK_ID]" // // Example: `"projects/my-project-id/sinks/my-sink-id"`. SinkName string `protobuf:"bytes,1,opt,name=sink_name,json=sinkName,proto3" json:"sink_name,omitempty"` } func (x *DeleteSinkRequest) Reset() { *x = DeleteSinkRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_logging_v2_logging_config_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DeleteSinkRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*DeleteSinkRequest) ProtoMessage() {} func (x *DeleteSinkRequest) ProtoReflect() protoreflect.Message { mi := &file_google_logging_v2_logging_config_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use DeleteSinkRequest.ProtoReflect.Descriptor instead. func (*DeleteSinkRequest) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{12} } func (x *DeleteSinkRequest) GetSinkName() string { if x != nil { return x.SinkName } return "" } // Specifies a set of log entries that are not to be stored in // Logging. If your GCP resource receives a large volume of logs, you can // use exclusions to reduce your chargeable logs. Exclusions are // processed after log sinks, so you can export log entries before they are // excluded. Note that organization-level and folder-level exclusions don't // apply to child resources, and that you can't exclude audit log entries. type LogExclusion struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. A client-assigned identifier, such as `"load-balancer-exclusion"`. // Identifiers are limited to 100 characters and can include only letters, // digits, underscores, hyphens, and periods. First character has to be // alphanumeric. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Optional. A description of this exclusion. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // Required. An [advanced logs filter](https://cloud.google.com/logging/docs/view/advanced-queries) // that matches the log entries to be excluded. By using the // [sample function](https://cloud.google.com/logging/docs/view/advanced-queries#sample), // you can exclude less than 100% of the matching log entries. // For example, the following query matches 99% of low-severity log // entries from Google Cloud Storage buckets: // // `"resource.type=gcs_bucket severity google.protobuf.Timestamp 25, // 1: google.logging.v2.LogBucket.update_time:type_name -> google.protobuf.Timestamp 0, // 2: google.logging.v2.LogBucket.lifecycle_state:type_name -> google.logging.v2.LifecycleState 1, // 3: google.logging.v2.LogSink.output_version_format:type_name -> google.logging.v2.LogSink.VersionFormat 4, // 4: google.logging.v2.LogSink.bigquery_options:type_name -> google.logging.v2.BigQueryOptions 25, // 5: google.logging.v2.LogSink.create_time:type_name -> google.protobuf.Timestamp 25, // 6: google.logging.v2.LogSink.update_time:type_name -> google.protobuf.Timestamp 2, // 7: google.logging.v2.ListBucketsResponse.buckets:type_name -> google.logging.v2.LogBucket 2, // 8: google.logging.v2.UpdateBucketRequest.bucket:type_name -> google.logging.v2.LogBucket 26, // 9: google.logging.v2.UpdateBucketRequest.update_mask:type_name -> google.protobuf.FieldMask 3, // 10: google.logging.v2.ListSinksResponse.sinks:type_name -> google.logging.v2.LogSink 3, // 11: google.logging.v2.CreateSinkRequest.sink:type_name -> google.logging.v2.LogSink 3, // 12: google.logging.v2.UpdateSinkRequest.sink:type_name -> google.logging.v2.LogSink 26, // 13: google.logging.v2.UpdateSinkRequest.update_mask:type_name -> google.protobuf.FieldMask 25, // 14: google.logging.v2.LogExclusion.create_time:type_name -> google.protobuf.Timestamp 25, // 15: google.logging.v2.LogExclusion.update_time:type_name -> google.protobuf.Timestamp 15, // 16: google.logging.v2.ListExclusionsResponse.exclusions:type_name -> google.logging.v2.LogExclusion 15, // 17: google.logging.v2.CreateExclusionRequest.exclusion:type_name -> google.logging.v2.LogExclusion 15, // 18: google.logging.v2.UpdateExclusionRequest.exclusion:type_name -> google.logging.v2.LogExclusion 26, // 19: google.logging.v2.UpdateExclusionRequest.update_mask:type_name -> google.protobuf.FieldMask 24, // 20: google.logging.v2.UpdateCmekSettingsRequest.cmek_settings:type_name -> google.logging.v2.CmekSettings 26, // 21: google.logging.v2.UpdateCmekSettingsRequest.update_mask:type_name -> google.protobuf.FieldMask 5, // 22: google.logging.v2.ConfigServiceV2.ListBuckets:input_type -> google.logging.v2.ListBucketsRequest 8, // 23: google.logging.v2.ConfigServiceV2.GetBucket:input_type -> google.logging.v2.GetBucketRequest 7, // 24: google.logging.v2.ConfigServiceV2.UpdateBucket:input_type -> google.logging.v2.UpdateBucketRequest 9, // 25: google.logging.v2.ConfigServiceV2.ListSinks:input_type -> google.logging.v2.ListSinksRequest 11, // 26: google.logging.v2.ConfigServiceV2.GetSink:input_type -> google.logging.v2.GetSinkRequest 12, // 27: google.logging.v2.ConfigServiceV2.CreateSink:input_type -> google.logging.v2.CreateSinkRequest 13, // 28: google.logging.v2.ConfigServiceV2.UpdateSink:input_type -> google.logging.v2.UpdateSinkRequest 14, // 29: google.logging.v2.ConfigServiceV2.DeleteSink:input_type -> google.logging.v2.DeleteSinkRequest 16, // 30: google.logging.v2.ConfigServiceV2.ListExclusions:input_type -> google.logging.v2.ListExclusionsRequest 18, // 31: google.logging.v2.ConfigServiceV2.GetExclusion:input_type -> google.logging.v2.GetExclusionRequest 19, // 32: google.logging.v2.ConfigServiceV2.CreateExclusion:input_type -> google.logging.v2.CreateExclusionRequest 20, // 33: google.logging.v2.ConfigServiceV2.UpdateExclusion:input_type -> google.logging.v2.UpdateExclusionRequest 21, // 34: google.logging.v2.ConfigServiceV2.DeleteExclusion:input_type -> google.logging.v2.DeleteExclusionRequest 22, // 35: google.logging.v2.ConfigServiceV2.GetCmekSettings:input_type -> google.logging.v2.GetCmekSettingsRequest 23, // 36: google.logging.v2.ConfigServiceV2.UpdateCmekSettings:input_type -> google.logging.v2.UpdateCmekSettingsRequest 6, // 37: google.logging.v2.ConfigServiceV2.ListBuckets:output_type -> google.logging.v2.ListBucketsResponse 2, // 38: google.logging.v2.ConfigServiceV2.GetBucket:output_type -> google.logging.v2.LogBucket 2, // 39: google.logging.v2.ConfigServiceV2.UpdateBucket:output_type -> google.logging.v2.LogBucket 10, // 40: google.logging.v2.ConfigServiceV2.ListSinks:output_type -> google.logging.v2.ListSinksResponse 3, // 41: google.logging.v2.ConfigServiceV2.GetSink:output_type -> google.logging.v2.LogSink 3, // 42: google.logging.v2.ConfigServiceV2.CreateSink:output_type -> google.logging.v2.LogSink 3, // 43: google.logging.v2.ConfigServiceV2.UpdateSink:output_type -> google.logging.v2.LogSink 27, // 44: google.logging.v2.ConfigServiceV2.DeleteSink:output_type -> google.protobuf.Empty 17, // 45: google.logging.v2.ConfigServiceV2.ListExclusions:output_type -> google.logging.v2.ListExclusionsResponse 15, // 46: google.logging.v2.ConfigServiceV2.GetExclusion:output_type -> google.logging.v2.LogExclusion 15, // 47: google.logging.v2.ConfigServiceV2.CreateExclusion:output_type -> google.logging.v2.LogExclusion 15, // 48: google.logging.v2.ConfigServiceV2.UpdateExclusion:output_type -> google.logging.v2.LogExclusion 27, // 49: google.logging.v2.ConfigServiceV2.DeleteExclusion:output_type -> google.protobuf.Empty 24, // 50: google.logging.v2.ConfigServiceV2.GetCmekSettings:output_type -> google.logging.v2.CmekSettings 24, // 51: google.logging.v2.ConfigServiceV2.UpdateCmekSettings:output_type -> google.logging.v2.CmekSettings 37, // [37:52] is the sub-list for method output_type 22, // [22:37] is the sub-list for method input_type 22, // [22:22] is the sub-list for extension type_name 22, // [22:22] is the sub-list for extension extendee 0, // [0:22] is the sub-list for field type_name } func init() { file_google_logging_v2_logging_config_proto_init() } func file_google_logging_v2_logging_config_proto_init() { if File_google_logging_v2_logging_config_proto != nil { return } if !protoimpl.UnsafeEnabled { file_google_logging_v2_logging_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LogBucket); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_google_logging_v2_logging_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LogSink); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_google_logging_v2_logging_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BigQueryOptions); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_google_logging_v2_logging_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListBucketsRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_google_logging_v2_logging_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListBucketsResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_google_logging_v2_logging_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateBucketRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_google_logging_v2_logging_config_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetBucketRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_google_logging_v2_logging_config_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListSinksRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_google_logging_v2_logging_config_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListSinksResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_google_logging_v2_logging_config_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetSinkRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_google_logging_v2_logging_config_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateSinkRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_google_logging_v2_logging_config_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateSinkRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_google_logging_v2_logging_config_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteSinkRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_google_logging_v2_logging_config_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LogExclusion); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_google_logging_v2_logging_config_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListExclusionsRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_google_logging_v2_logging_config_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListExclusionsResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_google_logging_v2_logging_config_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetExclusionRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_google_logging_v2_logging_config_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateExclusionRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_google_logging_v2_logging_config_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateExclusionRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_google_logging_v2_logging_config_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteExclusionRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_google_logging_v2_logging_config_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetCmekSettingsRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_google_logging_v2_logging_config_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateCmekSettingsRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_google_logging_v2_logging_config_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CmekSettings); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } file_google_logging_v2_logging_config_proto_msgTypes[1].OneofWrappers = []interface{}{ (*LogSink_BigqueryOptions)(nil), } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_google_logging_v2_logging_config_proto_rawDesc, NumEnums: 2, NumMessages: 23, NumExtensions: 0, NumServices: 1, }, GoTypes: file_google_logging_v2_logging_config_proto_goTypes, DependencyIndexes: file_google_logging_v2_logging_config_proto_depIdxs, EnumInfos: file_google_logging_v2_logging_config_proto_enumTypes, MessageInfos: file_google_logging_v2_logging_config_proto_msgTypes, }.Build() File_google_logging_v2_logging_config_proto = out.File file_google_logging_v2_logging_config_proto_rawDesc = nil file_google_logging_v2_logging_config_proto_goTypes = nil file_google_logging_v2_logging_config_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 // ConfigServiceV2Client is the client API for ConfigServiceV2 service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type ConfigServiceV2Client interface { // Lists buckets (Beta). ListBuckets(ctx context.Context, in *ListBucketsRequest, opts ...grpc.CallOption) (*ListBucketsResponse, error) // Gets a bucket (Beta). GetBucket(ctx context.Context, in *GetBucketRequest, opts ...grpc.CallOption) (*LogBucket, error) // Updates a bucket. This method replaces the following fields in the // existing bucket with values from the new bucket: `retention_period` // // If the retention period is decreased and the bucket is locked, // FAILED_PRECONDITION will be returned. // // If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION // will be returned. // // A buckets region may not be modified after it is created. // This method is in Beta. UpdateBucket(ctx context.Context, in *UpdateBucketRequest, opts ...grpc.CallOption) (*LogBucket, error) // 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 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. This method replaces the following fields in the existing // sink with values from the new sink: `destination`, and `filter`. // // The updated sink 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) (*empty.Empty, error) // Lists all the exclusions in a parent resource. ListExclusions(ctx context.Context, in *ListExclusionsRequest, opts ...grpc.CallOption) (*ListExclusionsResponse, error) // Gets the description of an exclusion. GetExclusion(ctx context.Context, in *GetExclusionRequest, opts ...grpc.CallOption) (*LogExclusion, error) // Creates a new exclusion in a specified parent resource. // Only log entries belonging to that resource can be excluded. // You can have up to 10 exclusions in a resource. CreateExclusion(ctx context.Context, in *CreateExclusionRequest, opts ...grpc.CallOption) (*LogExclusion, error) // Changes one or more properties of an existing exclusion. UpdateExclusion(ctx context.Context, in *UpdateExclusionRequest, opts ...grpc.CallOption) (*LogExclusion, error) // Deletes an exclusion. DeleteExclusion(ctx context.Context, in *DeleteExclusionRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Gets the Logs Router CMEK settings for the given resource. // // Note: CMEK for the Logs Router can currently only be configured for GCP // organizations. Once configured, it applies to all projects and folders in // the GCP organization. // // See [Enabling CMEK for Logs // Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. GetCmekSettings(ctx context.Context, in *GetCmekSettingsRequest, opts ...grpc.CallOption) (*CmekSettings, error) // Updates the Logs Router CMEK settings for the given resource. // // Note: CMEK for the Logs Router can currently only be configured for GCP // organizations. Once configured, it applies to all projects and folders in // the GCP organization. // // [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings] // will fail if 1) `kms_key_name` is invalid, or 2) the associated service // account does not have the required // `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or // 3) access to the key is disabled. // // See [Enabling CMEK for Logs // Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. UpdateCmekSettings(ctx context.Context, in *UpdateCmekSettingsRequest, opts ...grpc.CallOption) (*CmekSettings, error) } type configServiceV2Client struct { cc grpc.ClientConnInterface } func NewConfigServiceV2Client(cc grpc.ClientConnInterface) ConfigServiceV2Client { return &configServiceV2Client{cc} } func (c *configServiceV2Client) ListBuckets(ctx context.Context, in *ListBucketsRequest, opts ...grpc.CallOption) (*ListBucketsResponse, error) { out := new(ListBucketsResponse) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/ListBuckets", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *configServiceV2Client) GetBucket(ctx context.Context, in *GetBucketRequest, opts ...grpc.CallOption) (*LogBucket, error) { out := new(LogBucket) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/GetBucket", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *configServiceV2Client) UpdateBucket(ctx context.Context, in *UpdateBucketRequest, opts ...grpc.CallOption) (*LogBucket, error) { out := new(LogBucket) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/UpdateBucket", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *configServiceV2Client) ListSinks(ctx context.Context, in *ListSinksRequest, opts ...grpc.CallOption) (*ListSinksResponse, error) { out := new(ListSinksResponse) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/ListSinks", in, out, 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 := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/GetSink", in, out, 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 := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/CreateSink", in, out, 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 := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/UpdateSink", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *configServiceV2Client) DeleteSink(ctx context.Context, in *DeleteSinkRequest, opts ...grpc.CallOption) (*empty.Empty, error) { out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/DeleteSink", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *configServiceV2Client) ListExclusions(ctx context.Context, in *ListExclusionsRequest, opts ...grpc.CallOption) (*ListExclusionsResponse, error) { out := new(ListExclusionsResponse) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/ListExclusions", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *configServiceV2Client) GetExclusion(ctx context.Context, in *GetExclusionRequest, opts ...grpc.CallOption) (*LogExclusion, error) { out := new(LogExclusion) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/GetExclusion", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *configServiceV2Client) CreateExclusion(ctx context.Context, in *CreateExclusionRequest, opts ...grpc.CallOption) (*LogExclusion, error) { out := new(LogExclusion) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/CreateExclusion", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *configServiceV2Client) UpdateExclusion(ctx context.Context, in *UpdateExclusionRequest, opts ...grpc.CallOption) (*LogExclusion, error) { out := new(LogExclusion) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/UpdateExclusion", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *configServiceV2Client) DeleteExclusion(ctx context.Context, in *DeleteExclusionRequest, opts ...grpc.CallOption) (*empty.Empty, error) { out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/DeleteExclusion", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *configServiceV2Client) GetCmekSettings(ctx context.Context, in *GetCmekSettingsRequest, opts ...grpc.CallOption) (*CmekSettings, error) { out := new(CmekSettings) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/GetCmekSettings", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *configServiceV2Client) UpdateCmekSettings(ctx context.Context, in *UpdateCmekSettingsRequest, opts ...grpc.CallOption) (*CmekSettings, error) { out := new(CmekSettings) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/UpdateCmekSettings", in, out, opts...) if err != nil { return nil, err } return out, nil } // ConfigServiceV2Server is the server API for ConfigServiceV2 service. type ConfigServiceV2Server interface { // Lists buckets (Beta). ListBuckets(context.Context, *ListBucketsRequest) (*ListBucketsResponse, error) // Gets a bucket (Beta). GetBucket(context.Context, *GetBucketRequest) (*LogBucket, error) // Updates a bucket. This method replaces the following fields in the // existing bucket with values from the new bucket: `retention_period` // // If the retention period is decreased and the bucket is locked, // FAILED_PRECONDITION will be returned. // // If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION // will be returned. // // A buckets region may not be modified after it is created. // This method is in Beta. UpdateBucket(context.Context, *UpdateBucketRequest) (*LogBucket, error) // 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 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. This method replaces the following fields in the existing // sink with values from the new sink: `destination`, and `filter`. // // The updated sink 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) (*empty.Empty, error) // Lists all the exclusions in a parent resource. ListExclusions(context.Context, *ListExclusionsRequest) (*ListExclusionsResponse, error) // Gets the description of an exclusion. GetExclusion(context.Context, *GetExclusionRequest) (*LogExclusion, error) // Creates a new exclusion in a specified parent resource. // Only log entries belonging to that resource can be excluded. // You can have up to 10 exclusions in a resource. CreateExclusion(context.Context, *CreateExclusionRequest) (*LogExclusion, error) // Changes one or more properties of an existing exclusion. UpdateExclusion(context.Context, *UpdateExclusionRequest) (*LogExclusion, error) // Deletes an exclusion. DeleteExclusion(context.Context, *DeleteExclusionRequest) (*empty.Empty, error) // Gets the Logs Router CMEK settings for the given resource. // // Note: CMEK for the Logs Router can currently only be configured for GCP // organizations. Once configured, it applies to all projects and folders in // the GCP organization. // // See [Enabling CMEK for Logs // Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. GetCmekSettings(context.Context, *GetCmekSettingsRequest) (*CmekSettings, error) // Updates the Logs Router CMEK settings for the given resource. // // Note: CMEK for the Logs Router can currently only be configured for GCP // organizations. Once configured, it applies to all projects and folders in // the GCP organization. // // [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings] // will fail if 1) `kms_key_name` is invalid, or 2) the associated service // account does not have the required // `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or // 3) access to the key is disabled. // // See [Enabling CMEK for Logs // Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. UpdateCmekSettings(context.Context, *UpdateCmekSettingsRequest) (*CmekSettings, error) } // UnimplementedConfigServiceV2Server can be embedded to have forward compatible implementations. type UnimplementedConfigServiceV2Server struct { } func (*UnimplementedConfigServiceV2Server) ListBuckets(context.Context, *ListBucketsRequest) (*ListBucketsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListBuckets not implemented") } func (*UnimplementedConfigServiceV2Server) GetBucket(context.Context, *GetBucketRequest) (*LogBucket, error) { return nil, status.Errorf(codes.Unimplemented, "method GetBucket not implemented") } func (*UnimplementedConfigServiceV2Server) UpdateBucket(context.Context, *UpdateBucketRequest) (*LogBucket, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateBucket not implemented") } func (*UnimplementedConfigServiceV2Server) ListSinks(context.Context, *ListSinksRequest) (*ListSinksResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListSinks not implemented") } func (*UnimplementedConfigServiceV2Server) GetSink(context.Context, *GetSinkRequest) (*LogSink, error) { return nil, status.Errorf(codes.Unimplemented, "method GetSink not implemented") } func (*UnimplementedConfigServiceV2Server) CreateSink(context.Context, *CreateSinkRequest) (*LogSink, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateSink not implemented") } func (*UnimplementedConfigServiceV2Server) UpdateSink(context.Context, *UpdateSinkRequest) (*LogSink, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateSink not implemented") } func (*UnimplementedConfigServiceV2Server) DeleteSink(context.Context, *DeleteSinkRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteSink not implemented") } func (*UnimplementedConfigServiceV2Server) ListExclusions(context.Context, *ListExclusionsRequest) (*ListExclusionsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListExclusions not implemented") } func (*UnimplementedConfigServiceV2Server) GetExclusion(context.Context, *GetExclusionRequest) (*LogExclusion, error) { return nil, status.Errorf(codes.Unimplemented, "method GetExclusion not implemented") } func (*UnimplementedConfigServiceV2Server) CreateExclusion(context.Context, *CreateExclusionRequest) (*LogExclusion, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateExclusion not implemented") } func (*UnimplementedConfigServiceV2Server) UpdateExclusion(context.Context, *UpdateExclusionRequest) (*LogExclusion, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateExclusion not implemented") } func (*UnimplementedConfigServiceV2Server) DeleteExclusion(context.Context, *DeleteExclusionRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteExclusion not implemented") } func (*UnimplementedConfigServiceV2Server) GetCmekSettings(context.Context, *GetCmekSettingsRequest) (*CmekSettings, error) { return nil, status.Errorf(codes.Unimplemented, "method GetCmekSettings not implemented") } func (*UnimplementedConfigServiceV2Server) UpdateCmekSettings(context.Context, *UpdateCmekSettingsRequest) (*CmekSettings, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateCmekSettings not implemented") } func RegisterConfigServiceV2Server(s *grpc.Server, srv ConfigServiceV2Server) { s.RegisterService(&_ConfigServiceV2_serviceDesc, srv) } func _ConfigServiceV2_ListBuckets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListBucketsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).ListBuckets(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/ListBuckets", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).ListBuckets(ctx, req.(*ListBucketsRequest)) } return interceptor(ctx, in, info, handler) } func _ConfigServiceV2_GetBucket_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetBucketRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).GetBucket(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/GetBucket", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).GetBucket(ctx, req.(*GetBucketRequest)) } return interceptor(ctx, in, info, handler) } func _ConfigServiceV2_UpdateBucket_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateBucketRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).UpdateBucket(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/UpdateBucket", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).UpdateBucket(ctx, req.(*UpdateBucketRequest)) } return interceptor(ctx, in, info, handler) } 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) } func _ConfigServiceV2_ListExclusions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListExclusionsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).ListExclusions(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/ListExclusions", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).ListExclusions(ctx, req.(*ListExclusionsRequest)) } return interceptor(ctx, in, info, handler) } func _ConfigServiceV2_GetExclusion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetExclusionRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).GetExclusion(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/GetExclusion", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).GetExclusion(ctx, req.(*GetExclusionRequest)) } return interceptor(ctx, in, info, handler) } func _ConfigServiceV2_CreateExclusion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateExclusionRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).CreateExclusion(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/CreateExclusion", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).CreateExclusion(ctx, req.(*CreateExclusionRequest)) } return interceptor(ctx, in, info, handler) } func _ConfigServiceV2_UpdateExclusion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateExclusionRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).UpdateExclusion(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/UpdateExclusion", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).UpdateExclusion(ctx, req.(*UpdateExclusionRequest)) } return interceptor(ctx, in, info, handler) } func _ConfigServiceV2_DeleteExclusion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteExclusionRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).DeleteExclusion(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/DeleteExclusion", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).DeleteExclusion(ctx, req.(*DeleteExclusionRequest)) } return interceptor(ctx, in, info, handler) } func _ConfigServiceV2_GetCmekSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetCmekSettingsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).GetCmekSettings(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/GetCmekSettings", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).GetCmekSettings(ctx, req.(*GetCmekSettingsRequest)) } return interceptor(ctx, in, info, handler) } func _ConfigServiceV2_UpdateCmekSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateCmekSettingsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).UpdateCmekSettings(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/UpdateCmekSettings", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).UpdateCmekSettings(ctx, req.(*UpdateCmekSettingsRequest)) } return interceptor(ctx, in, info, handler) } var _ConfigServiceV2_serviceDesc = grpc.ServiceDesc{ ServiceName: "google.logging.v2.ConfigServiceV2", HandlerType: (*ConfigServiceV2Server)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListBuckets", Handler: _ConfigServiceV2_ListBuckets_Handler, }, { MethodName: "GetBucket", Handler: _ConfigServiceV2_GetBucket_Handler, }, { MethodName: "UpdateBucket", Handler: _ConfigServiceV2_UpdateBucket_Handler, }, { 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, }, { MethodName: "ListExclusions", Handler: _ConfigServiceV2_ListExclusions_Handler, }, { MethodName: "GetExclusion", Handler: _ConfigServiceV2_GetExclusion_Handler, }, { MethodName: "CreateExclusion", Handler: _ConfigServiceV2_CreateExclusion_Handler, }, { MethodName: "UpdateExclusion", Handler: _ConfigServiceV2_UpdateExclusion_Handler, }, { MethodName: "DeleteExclusion", Handler: _ConfigServiceV2_DeleteExclusion_Handler, }, { MethodName: "GetCmekSettings", Handler: _ConfigServiceV2_GetCmekSettings_Handler, }, { MethodName: "UpdateCmekSettings", Handler: _ConfigServiceV2_UpdateCmekSettings_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "google/logging/v2/logging_config.proto", }