// Copyright 2024 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.33.0 // protoc v4.25.3 // source: google/logging/v2/logging_config.proto package loggingpb import ( context "context" reflect "reflect" sync "sync" longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) 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) ) // List of different operation states. // High level state of the operation. This is used to report the job's // current state to the user. Once a long running operation is created, // the current state of the operation can be queried even before the // operation is finished and the final result is available. type OperationState int32 const ( // Should not be used. OperationState_OPERATION_STATE_UNSPECIFIED OperationState = 0 // The operation is scheduled. OperationState_OPERATION_STATE_SCHEDULED OperationState = 1 // Waiting for necessary permissions. OperationState_OPERATION_STATE_WAITING_FOR_PERMISSIONS OperationState = 2 // The operation is running. OperationState_OPERATION_STATE_RUNNING OperationState = 3 // The operation was completed successfully. OperationState_OPERATION_STATE_SUCCEEDED OperationState = 4 // The operation failed. OperationState_OPERATION_STATE_FAILED OperationState = 5 // The operation was cancelled by the user. OperationState_OPERATION_STATE_CANCELLED OperationState = 6 ) // Enum value maps for OperationState. var ( OperationState_name = map[int32]string{ 0: "OPERATION_STATE_UNSPECIFIED", 1: "OPERATION_STATE_SCHEDULED", 2: "OPERATION_STATE_WAITING_FOR_PERMISSIONS", 3: "OPERATION_STATE_RUNNING", 4: "OPERATION_STATE_SUCCEEDED", 5: "OPERATION_STATE_FAILED", 6: "OPERATION_STATE_CANCELLED", } OperationState_value = map[string]int32{ "OPERATION_STATE_UNSPECIFIED": 0, "OPERATION_STATE_SCHEDULED": 1, "OPERATION_STATE_WAITING_FOR_PERMISSIONS": 2, "OPERATION_STATE_RUNNING": 3, "OPERATION_STATE_SUCCEEDED": 4, "OPERATION_STATE_FAILED": 5, "OPERATION_STATE_CANCELLED": 6, } ) func (x OperationState) Enum() *OperationState { p := new(OperationState) *p = x return p } func (x OperationState) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (OperationState) Descriptor() protoreflect.EnumDescriptor { return file_google_logging_v2_logging_config_proto_enumTypes[0].Descriptor() } func (OperationState) Type() protoreflect.EnumType { return &file_google_logging_v2_logging_config_proto_enumTypes[0] } func (x OperationState) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use OperationState.Descriptor instead. func (OperationState) EnumDescriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{0} } // LogBucket lifecycle states. 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 resource has been marked for deletion by the user. For some resources // (e.g. buckets), this can be reversed by an un-delete operation. LifecycleState_DELETE_REQUESTED LifecycleState = 2 // The resource has been marked for an update by the user. It will remain in // this state until the update is complete. LifecycleState_UPDATING LifecycleState = 3 // The resource has been marked for creation by the user. It will remain in // this state until the creation is complete. LifecycleState_CREATING LifecycleState = 4 // The resource is in an INTERNAL error state. LifecycleState_FAILED LifecycleState = 5 ) // Enum value maps for LifecycleState. var ( LifecycleState_name = map[int32]string{ 0: "LIFECYCLE_STATE_UNSPECIFIED", 1: "ACTIVE", 2: "DELETE_REQUESTED", 3: "UPDATING", 4: "CREATING", 5: "FAILED", } LifecycleState_value = map[string]int32{ "LIFECYCLE_STATE_UNSPECIFIED": 0, "ACTIVE": 1, "DELETE_REQUESTED": 2, "UPDATING": 3, "CREATING": 4, "FAILED": 5, } ) 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[1].Descriptor() } func (LifecycleState) Type() protoreflect.EnumType { return &file_google_logging_v2_logging_config_proto_enumTypes[1] } 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{1} } // IndexType is used for custom indexing. It describes the type of an indexed // field. type IndexType int32 const ( // The index's type is unspecified. IndexType_INDEX_TYPE_UNSPECIFIED IndexType = 0 // The index is a string-type index. IndexType_INDEX_TYPE_STRING IndexType = 1 // The index is a integer-type index. IndexType_INDEX_TYPE_INTEGER IndexType = 2 ) // Enum value maps for IndexType. var ( IndexType_name = map[int32]string{ 0: "INDEX_TYPE_UNSPECIFIED", 1: "INDEX_TYPE_STRING", 2: "INDEX_TYPE_INTEGER", } IndexType_value = map[string]int32{ "INDEX_TYPE_UNSPECIFIED": 0, "INDEX_TYPE_STRING": 1, "INDEX_TYPE_INTEGER": 2, } ) func (x IndexType) Enum() *IndexType { p := new(IndexType) *p = x return p } func (x IndexType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (IndexType) Descriptor() protoreflect.EnumDescriptor { return file_google_logging_v2_logging_config_proto_enumTypes[2].Descriptor() } func (IndexType) Type() protoreflect.EnumType { return &file_google_logging_v2_logging_config_proto_enumTypes[2] } func (x IndexType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use IndexType.Descriptor instead. func (IndexType) EnumDescriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{2} } // Deprecated. This is unused. 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[3].Descriptor() } func (LogSink_VersionFormat) Type() protoreflect.EnumType { return &file_google_logging_v2_logging_config_proto_enumTypes[3] } 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{3, 0} } // Configuration for an indexed field. type IndexConfig struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The LogEntry field path to index. // // Note that some paths are automatically indexed, and other paths are not // eligible for indexing. See [indexing documentation]( // https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields) // for details. // // For example: `jsonPayload.request.status` FieldPath string `protobuf:"bytes,1,opt,name=field_path,json=fieldPath,proto3" json:"field_path,omitempty"` // Required. The type of data in this index. Type IndexType `protobuf:"varint,2,opt,name=type,proto3,enum=google.logging.v2.IndexType" json:"type,omitempty"` // Output only. The timestamp when the index was last modified. // // This is used to return the timestamp, and will be ignored if supplied // during update. CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` } func (x *IndexConfig) Reset() { *x = IndexConfig{} 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 *IndexConfig) String() string { return protoimpl.X.MessageStringOf(x) } func (*IndexConfig) ProtoMessage() {} func (x *IndexConfig) 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 IndexConfig.ProtoReflect.Descriptor instead. func (*IndexConfig) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{0} } func (x *IndexConfig) GetFieldPath() string { if x != nil { return x.FieldPath } return "" } func (x *IndexConfig) GetType() IndexType { if x != nil { return x.Type } return IndexType_INDEX_TYPE_UNSPECIFIED } func (x *IndexConfig) GetCreateTime() *timestamppb.Timestamp { if x != nil { return x.CreateTime } return nil } // Describes a repository in which log entries are stored. type LogBucket struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Output only. The resource name of the bucket. // // For example: // // `projects/my-project/locations/global/buckets/my-bucket` // // For a list of supported locations, see [Supported // Regions](https://cloud.google.com/logging/docs/region-support) // // For the location of `global` it is unspecified where log entries are // actually stored. // // After a bucket has been created, the location cannot 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 *timestamppb.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 *timestamppb.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"` // Whether the bucket is locked. // // The retention period on a locked bucket cannot be changed. Locked buckets // may only be deleted if they are empty. Locked bool `protobuf:"varint,9,opt,name=locked,proto3" json:"locked,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"` // Whether log analytics is enabled for this bucket. // // Once enabled, log analytics features cannot be disabled. AnalyticsEnabled bool `protobuf:"varint,14,opt,name=analytics_enabled,json=analyticsEnabled,proto3" json:"analytics_enabled,omitempty"` // Log entry field paths that are denied access in this bucket. // // The following fields and their children are eligible: `textPayload`, // `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`. // // Restricting a repeated field will restrict all values. Adding a parent will // block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`) RestrictedFields []string `protobuf:"bytes,15,rep,name=restricted_fields,json=restrictedFields,proto3" json:"restricted_fields,omitempty"` // A list of indexed fields and related configuration data. IndexConfigs []*IndexConfig `protobuf:"bytes,17,rep,name=index_configs,json=indexConfigs,proto3" json:"index_configs,omitempty"` // The CMEK settings of the log bucket. If present, new log entries written to // this log bucket are encrypted using the CMEK key provided in this // configuration. If a log bucket has CMEK settings, the CMEK settings cannot // be disabled later by updating the log bucket. Changing the KMS key is // allowed. CmekSettings *CmekSettings `protobuf:"bytes,19,opt,name=cmek_settings,json=cmekSettings,proto3" json:"cmek_settings,omitempty"` } func (x *LogBucket) Reset() { *x = LogBucket{} 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 *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[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 LogBucket.ProtoReflect.Descriptor instead. func (*LogBucket) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{1} } 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() *timestamppb.Timestamp { if x != nil { return x.CreateTime } return nil } func (x *LogBucket) GetUpdateTime() *timestamppb.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) GetLocked() bool { if x != nil { return x.Locked } return false } func (x *LogBucket) GetLifecycleState() LifecycleState { if x != nil { return x.LifecycleState } return LifecycleState_LIFECYCLE_STATE_UNSPECIFIED } func (x *LogBucket) GetAnalyticsEnabled() bool { if x != nil { return x.AnalyticsEnabled } return false } func (x *LogBucket) GetRestrictedFields() []string { if x != nil { return x.RestrictedFields } return nil } func (x *LogBucket) GetIndexConfigs() []*IndexConfig { if x != nil { return x.IndexConfigs } return nil } func (x *LogBucket) GetCmekSettings() *CmekSettings { if x != nil { return x.CmekSettings } return nil } // Describes a view over log entries in a bucket. type LogView struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The resource name of the view. // // For example: // // `projects/my-project/locations/global/buckets/my-bucket/views/my-view` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Describes this view. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Output only. The creation timestamp of the view. CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The last update timestamp of the view. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Filter that restricts which log entries in a bucket are visible in this // view. // // Filters are restricted to be a logical AND of ==/!= of any of the // following: // // - originating project/folder/organization/billing account. // - resource type // - log id // // For example: // // SOURCE("projects/myproject") AND resource.type = "gce_instance" // AND LOG_ID("stdout") Filter string `protobuf:"bytes,7,opt,name=filter,proto3" json:"filter,omitempty"` } func (x *LogView) Reset() { *x = LogView{} 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 *LogView) String() string { return protoimpl.X.MessageStringOf(x) } func (*LogView) ProtoMessage() {} func (x *LogView) 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 LogView.ProtoReflect.Descriptor instead. func (*LogView) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{2} } func (x *LogView) GetName() string { if x != nil { return x.Name } return "" } func (x *LogView) GetDescription() string { if x != nil { return x.Description } return "" } func (x *LogView) GetCreateTime() *timestamppb.Timestamp { if x != nil { return x.CreateTime } return nil } func (x *LogView) GetUpdateTime() *timestamppb.Timestamp { if x != nil { return x.UpdateTime } return nil } func (x *LogView) GetFilter() string { if x != nil { return x.Filter } return "" } // Describes a sink used to export log entries to one of the following // destinations in any project: a Cloud Storage bucket, a BigQuery dataset, a // Pub/Sub topic or a Cloud Logging log bucket. 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. // // For 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"` // Optional. Log entries that match any of these exclusion filters will not be // exported. // // If a log entry is matched by both `filter` and one of `exclusion_filters` // it will not be exported. Exclusions []*LogExclusion `protobuf:"bytes,16,rep,name=exclusions,proto3" json:"exclusions,omitempty"` // Deprecated. This field is unused. // // Deprecated: Marked as deprecated in google/logging/v2/logging_config.proto. 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 Cloud Logging writes the exported log entries to the sink's // destination. This field is either set by specifying // `custom_writer_identity` or set automatically 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. // // Sinks that have a destination that is a log bucket in the same project as // the sink cannot have a writer_identity and no additional permissions are // required. 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 // log entries 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 *timestamppb.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 *timestamppb.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[3] 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[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 LogSink.ProtoReflect.Descriptor instead. func (*LogSink) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{3} } 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 } func (x *LogSink) GetExclusions() []*LogExclusion { if x != nil { return x.Exclusions } return nil } // Deprecated: Marked as deprecated in google/logging/v2/logging_config.proto. 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() *timestamppb.Timestamp { if x != nil { return x.CreateTime } return nil } func (x *LogSink) GetUpdateTime() *timestamppb.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() {} // Describes a BigQuery dataset that was created by a link. type BigQueryDataset struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Output only. The full resource name of the BigQuery dataset. The DATASET_ID // will match the ID of the link, so the link must match the naming // restrictions of BigQuery datasets (alphanumeric characters and underscores // only). // // The dataset will have a resource path of // // "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET_ID]" DatasetId string `protobuf:"bytes,1,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"` } func (x *BigQueryDataset) Reset() { *x = BigQueryDataset{} 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 *BigQueryDataset) String() string { return protoimpl.X.MessageStringOf(x) } func (*BigQueryDataset) ProtoMessage() {} func (x *BigQueryDataset) 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 BigQueryDataset.ProtoReflect.Descriptor instead. func (*BigQueryDataset) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{4} } func (x *BigQueryDataset) GetDatasetId() string { if x != nil { return x.DatasetId } return "" } // Describes a link connected to an analytics enabled bucket. type Link struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The resource name of the link. The name can have up to 100 characters. // A valid link id (at the end of the link name) must only have alphanumeric // characters and underscores within it. // // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" // "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" // // For example: // // `projects/my-project/locations/global/buckets/my-bucket/links/my_link Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Describes this link. // // The maximum length of the description is 8000 characters. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // Output only. The creation timestamp of the link. CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The resource lifecycle state. LifecycleState LifecycleState `protobuf:"varint,4,opt,name=lifecycle_state,json=lifecycleState,proto3,enum=google.logging.v2.LifecycleState" json:"lifecycle_state,omitempty"` // The information of a BigQuery Dataset. When a link is created, a BigQuery // dataset is created along with it, in the same project as the LogBucket it's // linked to. This dataset will also have BigQuery Views corresponding to the // LogViews in the bucket. BigqueryDataset *BigQueryDataset `protobuf:"bytes,5,opt,name=bigquery_dataset,json=bigqueryDataset,proto3" json:"bigquery_dataset,omitempty"` } func (x *Link) Reset() { *x = Link{} 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 *Link) String() string { return protoimpl.X.MessageStringOf(x) } func (*Link) ProtoMessage() {} func (x *Link) 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 Link.ProtoReflect.Descriptor instead. func (*Link) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{5} } func (x *Link) GetName() string { if x != nil { return x.Name } return "" } func (x *Link) GetDescription() string { if x != nil { return x.Description } return "" } func (x *Link) GetCreateTime() *timestamppb.Timestamp { if x != nil { return x.CreateTime } return nil } func (x *Link) GetLifecycleState() LifecycleState { if x != nil { return x.LifecycleState } return LifecycleState_LIFECYCLE_STATE_UNSPECIFIED } func (x *Link) GetBigqueryDataset() *BigQueryDataset { if x != nil { return x.BigqueryDataset } return nil } // 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, Cloud 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[6] 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[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 BigQueryOptions.ProtoReflect.Descriptor instead. func (*BigQueryOptions) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{6} } 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`. 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[7] 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[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 ListBucketsRequest.ProtoReflect.Descriptor instead. func (*ListBucketsRequest) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{7} } 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. 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[8] 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[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 ListBucketsResponse.ProtoReflect.Descriptor instead. func (*ListBucketsResponse) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{8} } 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 `CreateBucket`. type CreateBucketRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The resource in which to create the log bucket: // // "projects/[PROJECT_ID]/locations/[LOCATION_ID]" // // For example: // // `"projects/my-project/locations/global"` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. A client-assigned identifier such as `"my-bucket"`. Identifiers // are limited to 100 characters and can include only letters, digits, // underscores, hyphens, and periods. BucketId string `protobuf:"bytes,2,opt,name=bucket_id,json=bucketId,proto3" json:"bucket_id,omitempty"` // Required. The new bucket. The region specified in the new bucket must be // compliant with any Location Restriction Org Policy. The name field in the // bucket is ignored. Bucket *LogBucket `protobuf:"bytes,3,opt,name=bucket,proto3" json:"bucket,omitempty"` } func (x *CreateBucketRequest) Reset() { *x = CreateBucketRequest{} 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 *CreateBucketRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*CreateBucketRequest) ProtoMessage() {} func (x *CreateBucketRequest) 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 CreateBucketRequest.ProtoReflect.Descriptor instead. func (*CreateBucketRequest) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{9} } func (x *CreateBucketRequest) GetParent() string { if x != nil { return x.Parent } return "" } func (x *CreateBucketRequest) GetBucketId() string { if x != nil { return x.BucketId } return "" } func (x *CreateBucketRequest) GetBucket() *LogBucket { if x != nil { return x.Bucket } return nil } // The parameters to `UpdateBucket`. 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]" // // For example: // // `"projects/my-project/locations/global/buckets/my-bucket"` 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 // // For example: `updateMask=retention_days` UpdateMask *fieldmaskpb.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[10] 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[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 UpdateBucketRequest.ProtoReflect.Descriptor instead. func (*UpdateBucketRequest) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{10} } 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() *fieldmaskpb.FieldMask { if x != nil { return x.UpdateMask } return nil } // The parameters to `GetBucket`. 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]" // // For example: // // `"projects/my-project/locations/global/buckets/my-bucket"` 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[11] 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[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 GetBucketRequest.ProtoReflect.Descriptor instead. func (*GetBucketRequest) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{11} } func (x *GetBucketRequest) GetName() string { if x != nil { return x.Name } return "" } // The parameters to `DeleteBucket`. type DeleteBucketRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The full resource name of the bucket to delete. // // "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]" // // For example: // // `"projects/my-project/locations/global/buckets/my-bucket"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } func (x *DeleteBucketRequest) Reset() { *x = DeleteBucketRequest{} 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 *DeleteBucketRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*DeleteBucketRequest) ProtoMessage() {} func (x *DeleteBucketRequest) 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 DeleteBucketRequest.ProtoReflect.Descriptor instead. func (*DeleteBucketRequest) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{12} } func (x *DeleteBucketRequest) GetName() string { if x != nil { return x.Name } return "" } // The parameters to `UndeleteBucket`. type UndeleteBucketRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The full resource name of the bucket to undelete. // // "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]" // // For example: // // `"projects/my-project/locations/global/buckets/my-bucket"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } func (x *UndeleteBucketRequest) Reset() { *x = UndeleteBucketRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_logging_v2_logging_config_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *UndeleteBucketRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*UndeleteBucketRequest) ProtoMessage() {} func (x *UndeleteBucketRequest) ProtoReflect() protoreflect.Message { mi := &file_google_logging_v2_logging_config_proto_msgTypes[13] 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 UndeleteBucketRequest.ProtoReflect.Descriptor instead. func (*UndeleteBucketRequest) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{13} } func (x *UndeleteBucketRequest) GetName() string { if x != nil { return x.Name } return "" } // The parameters to `ListViews`. type ListViewsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The bucket whose views are to be listed: // // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_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 *ListViewsRequest) Reset() { *x = ListViewsRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_logging_v2_logging_config_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ListViewsRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListViewsRequest) ProtoMessage() {} func (x *ListViewsRequest) ProtoReflect() protoreflect.Message { mi := &file_google_logging_v2_logging_config_proto_msgTypes[14] 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 ListViewsRequest.ProtoReflect.Descriptor instead. func (*ListViewsRequest) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{14} } func (x *ListViewsRequest) GetParent() string { if x != nil { return x.Parent } return "" } func (x *ListViewsRequest) GetPageToken() string { if x != nil { return x.PageToken } return "" } func (x *ListViewsRequest) GetPageSize() int32 { if x != nil { return x.PageSize } return 0 } // The response from ListViews. type ListViewsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // A list of views. Views []*LogView `protobuf:"bytes,1,rep,name=views,proto3" json:"views,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 *ListViewsResponse) Reset() { *x = ListViewsResponse{} if protoimpl.UnsafeEnabled { mi := &file_google_logging_v2_logging_config_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ListViewsResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListViewsResponse) ProtoMessage() {} func (x *ListViewsResponse) ProtoReflect() protoreflect.Message { mi := &file_google_logging_v2_logging_config_proto_msgTypes[15] 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 ListViewsResponse.ProtoReflect.Descriptor instead. func (*ListViewsResponse) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{15} } func (x *ListViewsResponse) GetViews() []*LogView { if x != nil { return x.Views } return nil } func (x *ListViewsResponse) GetNextPageToken() string { if x != nil { return x.NextPageToken } return "" } // The parameters to `CreateView`. type CreateViewRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The bucket in which to create the view // // `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"` // // For example: // // `"projects/my-project/locations/global/buckets/my-bucket"` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. A client-assigned identifier such as `"my-view"`. Identifiers are // limited to 100 characters and can include only letters, digits, // underscores, hyphens, and periods. ViewId string `protobuf:"bytes,2,opt,name=view_id,json=viewId,proto3" json:"view_id,omitempty"` // Required. The new view. View *LogView `protobuf:"bytes,3,opt,name=view,proto3" json:"view,omitempty"` } func (x *CreateViewRequest) Reset() { *x = CreateViewRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_logging_v2_logging_config_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CreateViewRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*CreateViewRequest) ProtoMessage() {} func (x *CreateViewRequest) ProtoReflect() protoreflect.Message { mi := &file_google_logging_v2_logging_config_proto_msgTypes[16] 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 CreateViewRequest.ProtoReflect.Descriptor instead. func (*CreateViewRequest) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{16} } func (x *CreateViewRequest) GetParent() string { if x != nil { return x.Parent } return "" } func (x *CreateViewRequest) GetViewId() string { if x != nil { return x.ViewId } return "" } func (x *CreateViewRequest) GetView() *LogView { if x != nil { return x.View } return nil } // The parameters to `UpdateView`. type UpdateViewRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The full resource name of the view to update // // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" // // For example: // // `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Required. The updated view. View *LogView `protobuf:"bytes,2,opt,name=view,proto3" json:"view,omitempty"` // Optional. Field mask that specifies the fields in `view` that need // an update. A 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 // // For example: `updateMask=filter` UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateViewRequest) Reset() { *x = UpdateViewRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_logging_v2_logging_config_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *UpdateViewRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*UpdateViewRequest) ProtoMessage() {} func (x *UpdateViewRequest) ProtoReflect() protoreflect.Message { mi := &file_google_logging_v2_logging_config_proto_msgTypes[17] 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 UpdateViewRequest.ProtoReflect.Descriptor instead. func (*UpdateViewRequest) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{17} } func (x *UpdateViewRequest) GetName() string { if x != nil { return x.Name } return "" } func (x *UpdateViewRequest) GetView() *LogView { if x != nil { return x.View } return nil } func (x *UpdateViewRequest) GetUpdateMask() *fieldmaskpb.FieldMask { if x != nil { return x.UpdateMask } return nil } // The parameters to `GetView`. type GetViewRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The resource name of the policy: // // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" // // For example: // // `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } func (x *GetViewRequest) Reset() { *x = GetViewRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_logging_v2_logging_config_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *GetViewRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetViewRequest) ProtoMessage() {} func (x *GetViewRequest) ProtoReflect() protoreflect.Message { mi := &file_google_logging_v2_logging_config_proto_msgTypes[18] 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 GetViewRequest.ProtoReflect.Descriptor instead. func (*GetViewRequest) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{18} } func (x *GetViewRequest) GetName() string { if x != nil { return x.Name } return "" } // The parameters to `DeleteView`. type DeleteViewRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The full resource name of the view to delete: // // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" // // For example: // // `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } func (x *DeleteViewRequest) Reset() { *x = DeleteViewRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_logging_v2_logging_config_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DeleteViewRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*DeleteViewRequest) ProtoMessage() {} func (x *DeleteViewRequest) ProtoReflect() protoreflect.Message { mi := &file_google_logging_v2_logging_config_proto_msgTypes[19] 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 DeleteViewRequest.ProtoReflect.Descriptor instead. func (*DeleteViewRequest) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{19} } func (x *DeleteViewRequest) 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[20] 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[20] 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{20} } 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[21] 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[21] 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{21} } 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]" // // For example: // // `"projects/my-project/sinks/my-sink"` 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[22] 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[22] 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{22} } 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]" // // For examples: // // `"projects/my-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 Cloud 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[23] 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[23] 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{23} } 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]" // // For example: // // `"projects/my-project/sinks/my-sink"` 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 // // For example: `updateMask=filter` UpdateMask *fieldmaskpb.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[24] 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[24] 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{24} } 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() *fieldmaskpb.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]" // // For example: // // `"projects/my-project/sinks/my-sink"` 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[25] 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[25] 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{25} } func (x *DeleteSinkRequest) GetSinkName() string { if x != nil { return x.SinkName } return "" } // The parameters to CreateLink. type CreateLinkRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The full resource name of the bucket to create a link for. // // "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]" Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The new link. Link *Link `protobuf:"bytes,2,opt,name=link,proto3" json:"link,omitempty"` // Required. The ID to use for the link. The link_id can have up to 100 // characters. A valid link_id must only have alphanumeric characters and // underscores within it. LinkId string `protobuf:"bytes,3,opt,name=link_id,json=linkId,proto3" json:"link_id,omitempty"` } func (x *CreateLinkRequest) Reset() { *x = CreateLinkRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_logging_v2_logging_config_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CreateLinkRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*CreateLinkRequest) ProtoMessage() {} func (x *CreateLinkRequest) ProtoReflect() protoreflect.Message { mi := &file_google_logging_v2_logging_config_proto_msgTypes[26] 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 CreateLinkRequest.ProtoReflect.Descriptor instead. func (*CreateLinkRequest) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{26} } func (x *CreateLinkRequest) GetParent() string { if x != nil { return x.Parent } return "" } func (x *CreateLinkRequest) GetLink() *Link { if x != nil { return x.Link } return nil } func (x *CreateLinkRequest) GetLinkId() string { if x != nil { return x.LinkId } return "" } // The parameters to DeleteLink. type DeleteLinkRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The full resource name of the link to delete. // // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" // "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } func (x *DeleteLinkRequest) Reset() { *x = DeleteLinkRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_logging_v2_logging_config_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DeleteLinkRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*DeleteLinkRequest) ProtoMessage() {} func (x *DeleteLinkRequest) ProtoReflect() protoreflect.Message { mi := &file_google_logging_v2_logging_config_proto_msgTypes[27] 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 DeleteLinkRequest.ProtoReflect.Descriptor instead. func (*DeleteLinkRequest) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{27} } func (x *DeleteLinkRequest) GetName() string { if x != nil { return x.Name } return "" } // The parameters to ListLinks. type ListLinksRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The parent resource whose links are to be listed: // // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/" // "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]/ 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. 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. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` } func (x *ListLinksRequest) Reset() { *x = ListLinksRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_logging_v2_logging_config_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ListLinksRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListLinksRequest) ProtoMessage() {} func (x *ListLinksRequest) ProtoReflect() protoreflect.Message { mi := &file_google_logging_v2_logging_config_proto_msgTypes[28] 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 ListLinksRequest.ProtoReflect.Descriptor instead. func (*ListLinksRequest) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{28} } func (x *ListLinksRequest) GetParent() string { if x != nil { return x.Parent } return "" } func (x *ListLinksRequest) GetPageToken() string { if x != nil { return x.PageToken } return "" } func (x *ListLinksRequest) GetPageSize() int32 { if x != nil { return x.PageSize } return 0 } // The response from ListLinks. type ListLinksResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // A list of links. Links []*Link `protobuf:"bytes,1,rep,name=links,proto3" json:"links,omitempty"` // If there might be more results than those appearing 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 *ListLinksResponse) Reset() { *x = ListLinksResponse{} if protoimpl.UnsafeEnabled { mi := &file_google_logging_v2_logging_config_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ListLinksResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListLinksResponse) ProtoMessage() {} func (x *ListLinksResponse) ProtoReflect() protoreflect.Message { mi := &file_google_logging_v2_logging_config_proto_msgTypes[29] 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 ListLinksResponse.ProtoReflect.Descriptor instead. func (*ListLinksResponse) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{29} } func (x *ListLinksResponse) GetLinks() []*Link { if x != nil { return x.Links } return nil } func (x *ListLinksResponse) GetNextPageToken() string { if x != nil { return x.NextPageToken } return "" } // The parameters to GetLink. type GetLinkRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The resource name of the link: // // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" // "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID] Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } func (x *GetLinkRequest) Reset() { *x = GetLinkRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_logging_v2_logging_config_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *GetLinkRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetLinkRequest) ProtoMessage() {} func (x *GetLinkRequest) ProtoReflect() protoreflect.Message { mi := &file_google_logging_v2_logging_config_proto_msgTypes[30] 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 GetLinkRequest.ProtoReflect.Descriptor instead. func (*GetLinkRequest) Descriptor() ([]byte, []int) { return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{30} } func (x *GetLinkRequest) GetName() string { if x != nil { return x.Name } return "" } // Specifies a set of log entries that are filtered out by a sink. If // your Google Cloud resource receives a large volume of log entries, you can // use exclusions to reduce your chargeable logs. Note that exclusions on // organization-level and folder-level sinks don't apply to child resources. // Note also that you cannot modify the _Required sink or exclude logs from it. 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.logging.v2.IndexType 54, // 1: google.logging.v2.IndexConfig.create_time:type_name -> google.protobuf.Timestamp 54, // 2: google.logging.v2.LogBucket.create_time:type_name -> google.protobuf.Timestamp 54, // 3: google.logging.v2.LogBucket.update_time:type_name -> google.protobuf.Timestamp 1, // 4: google.logging.v2.LogBucket.lifecycle_state:type_name -> google.logging.v2.LifecycleState 4, // 5: google.logging.v2.LogBucket.index_configs:type_name -> google.logging.v2.IndexConfig 44, // 6: google.logging.v2.LogBucket.cmek_settings:type_name -> google.logging.v2.CmekSettings 54, // 7: google.logging.v2.LogView.create_time:type_name -> google.protobuf.Timestamp 54, // 8: google.logging.v2.LogView.update_time:type_name -> google.protobuf.Timestamp 35, // 9: google.logging.v2.LogSink.exclusions:type_name -> google.logging.v2.LogExclusion 3, // 10: google.logging.v2.LogSink.output_version_format:type_name -> google.logging.v2.LogSink.VersionFormat 10, // 11: google.logging.v2.LogSink.bigquery_options:type_name -> google.logging.v2.BigQueryOptions 54, // 12: google.logging.v2.LogSink.create_time:type_name -> google.protobuf.Timestamp 54, // 13: google.logging.v2.LogSink.update_time:type_name -> google.protobuf.Timestamp 54, // 14: google.logging.v2.Link.create_time:type_name -> google.protobuf.Timestamp 1, // 15: google.logging.v2.Link.lifecycle_state:type_name -> google.logging.v2.LifecycleState 8, // 16: google.logging.v2.Link.bigquery_dataset:type_name -> google.logging.v2.BigQueryDataset 5, // 17: google.logging.v2.ListBucketsResponse.buckets:type_name -> google.logging.v2.LogBucket 5, // 18: google.logging.v2.CreateBucketRequest.bucket:type_name -> google.logging.v2.LogBucket 5, // 19: google.logging.v2.UpdateBucketRequest.bucket:type_name -> google.logging.v2.LogBucket 55, // 20: google.logging.v2.UpdateBucketRequest.update_mask:type_name -> google.protobuf.FieldMask 6, // 21: google.logging.v2.ListViewsResponse.views:type_name -> google.logging.v2.LogView 6, // 22: google.logging.v2.CreateViewRequest.view:type_name -> google.logging.v2.LogView 6, // 23: google.logging.v2.UpdateViewRequest.view:type_name -> google.logging.v2.LogView 55, // 24: google.logging.v2.UpdateViewRequest.update_mask:type_name -> google.protobuf.FieldMask 7, // 25: google.logging.v2.ListSinksResponse.sinks:type_name -> google.logging.v2.LogSink 7, // 26: google.logging.v2.CreateSinkRequest.sink:type_name -> google.logging.v2.LogSink 7, // 27: google.logging.v2.UpdateSinkRequest.sink:type_name -> google.logging.v2.LogSink 55, // 28: google.logging.v2.UpdateSinkRequest.update_mask:type_name -> google.protobuf.FieldMask 9, // 29: google.logging.v2.CreateLinkRequest.link:type_name -> google.logging.v2.Link 9, // 30: google.logging.v2.ListLinksResponse.links:type_name -> google.logging.v2.Link 54, // 31: google.logging.v2.LogExclusion.create_time:type_name -> google.protobuf.Timestamp 54, // 32: google.logging.v2.LogExclusion.update_time:type_name -> google.protobuf.Timestamp 35, // 33: google.logging.v2.ListExclusionsResponse.exclusions:type_name -> google.logging.v2.LogExclusion 35, // 34: google.logging.v2.CreateExclusionRequest.exclusion:type_name -> google.logging.v2.LogExclusion 35, // 35: google.logging.v2.UpdateExclusionRequest.exclusion:type_name -> google.logging.v2.LogExclusion 55, // 36: google.logging.v2.UpdateExclusionRequest.update_mask:type_name -> google.protobuf.FieldMask 44, // 37: google.logging.v2.UpdateCmekSettingsRequest.cmek_settings:type_name -> google.logging.v2.CmekSettings 55, // 38: google.logging.v2.UpdateCmekSettingsRequest.update_mask:type_name -> google.protobuf.FieldMask 47, // 39: google.logging.v2.UpdateSettingsRequest.settings:type_name -> google.logging.v2.Settings 55, // 40: google.logging.v2.UpdateSettingsRequest.update_mask:type_name -> google.protobuf.FieldMask 54, // 41: google.logging.v2.CopyLogEntriesMetadata.start_time:type_name -> google.protobuf.Timestamp 54, // 42: google.logging.v2.CopyLogEntriesMetadata.end_time:type_name -> google.protobuf.Timestamp 0, // 43: google.logging.v2.CopyLogEntriesMetadata.state:type_name -> google.logging.v2.OperationState 48, // 44: google.logging.v2.CopyLogEntriesMetadata.request:type_name -> google.logging.v2.CopyLogEntriesRequest 54, // 45: google.logging.v2.BucketMetadata.start_time:type_name -> google.protobuf.Timestamp 54, // 46: google.logging.v2.BucketMetadata.end_time:type_name -> google.protobuf.Timestamp 0, // 47: google.logging.v2.BucketMetadata.state:type_name -> google.logging.v2.OperationState 13, // 48: google.logging.v2.BucketMetadata.create_bucket_request:type_name -> google.logging.v2.CreateBucketRequest 14, // 49: google.logging.v2.BucketMetadata.update_bucket_request:type_name -> google.logging.v2.UpdateBucketRequest 54, // 50: google.logging.v2.LinkMetadata.start_time:type_name -> google.protobuf.Timestamp 54, // 51: google.logging.v2.LinkMetadata.end_time:type_name -> google.protobuf.Timestamp 0, // 52: google.logging.v2.LinkMetadata.state:type_name -> google.logging.v2.OperationState 30, // 53: google.logging.v2.LinkMetadata.create_link_request:type_name -> google.logging.v2.CreateLinkRequest 31, // 54: google.logging.v2.LinkMetadata.delete_link_request:type_name -> google.logging.v2.DeleteLinkRequest 11, // 55: google.logging.v2.ConfigServiceV2.ListBuckets:input_type -> google.logging.v2.ListBucketsRequest 15, // 56: google.logging.v2.ConfigServiceV2.GetBucket:input_type -> google.logging.v2.GetBucketRequest 13, // 57: google.logging.v2.ConfigServiceV2.CreateBucketAsync:input_type -> google.logging.v2.CreateBucketRequest 14, // 58: google.logging.v2.ConfigServiceV2.UpdateBucketAsync:input_type -> google.logging.v2.UpdateBucketRequest 13, // 59: google.logging.v2.ConfigServiceV2.CreateBucket:input_type -> google.logging.v2.CreateBucketRequest 14, // 60: google.logging.v2.ConfigServiceV2.UpdateBucket:input_type -> google.logging.v2.UpdateBucketRequest 16, // 61: google.logging.v2.ConfigServiceV2.DeleteBucket:input_type -> google.logging.v2.DeleteBucketRequest 17, // 62: google.logging.v2.ConfigServiceV2.UndeleteBucket:input_type -> google.logging.v2.UndeleteBucketRequest 18, // 63: google.logging.v2.ConfigServiceV2.ListViews:input_type -> google.logging.v2.ListViewsRequest 22, // 64: google.logging.v2.ConfigServiceV2.GetView:input_type -> google.logging.v2.GetViewRequest 20, // 65: google.logging.v2.ConfigServiceV2.CreateView:input_type -> google.logging.v2.CreateViewRequest 21, // 66: google.logging.v2.ConfigServiceV2.UpdateView:input_type -> google.logging.v2.UpdateViewRequest 23, // 67: google.logging.v2.ConfigServiceV2.DeleteView:input_type -> google.logging.v2.DeleteViewRequest 24, // 68: google.logging.v2.ConfigServiceV2.ListSinks:input_type -> google.logging.v2.ListSinksRequest 26, // 69: google.logging.v2.ConfigServiceV2.GetSink:input_type -> google.logging.v2.GetSinkRequest 27, // 70: google.logging.v2.ConfigServiceV2.CreateSink:input_type -> google.logging.v2.CreateSinkRequest 28, // 71: google.logging.v2.ConfigServiceV2.UpdateSink:input_type -> google.logging.v2.UpdateSinkRequest 29, // 72: google.logging.v2.ConfigServiceV2.DeleteSink:input_type -> google.logging.v2.DeleteSinkRequest 30, // 73: google.logging.v2.ConfigServiceV2.CreateLink:input_type -> google.logging.v2.CreateLinkRequest 31, // 74: google.logging.v2.ConfigServiceV2.DeleteLink:input_type -> google.logging.v2.DeleteLinkRequest 32, // 75: google.logging.v2.ConfigServiceV2.ListLinks:input_type -> google.logging.v2.ListLinksRequest 34, // 76: google.logging.v2.ConfigServiceV2.GetLink:input_type -> google.logging.v2.GetLinkRequest 36, // 77: google.logging.v2.ConfigServiceV2.ListExclusions:input_type -> google.logging.v2.ListExclusionsRequest 38, // 78: google.logging.v2.ConfigServiceV2.GetExclusion:input_type -> google.logging.v2.GetExclusionRequest 39, // 79: google.logging.v2.ConfigServiceV2.CreateExclusion:input_type -> google.logging.v2.CreateExclusionRequest 40, // 80: google.logging.v2.ConfigServiceV2.UpdateExclusion:input_type -> google.logging.v2.UpdateExclusionRequest 41, // 81: google.logging.v2.ConfigServiceV2.DeleteExclusion:input_type -> google.logging.v2.DeleteExclusionRequest 42, // 82: google.logging.v2.ConfigServiceV2.GetCmekSettings:input_type -> google.logging.v2.GetCmekSettingsRequest 43, // 83: google.logging.v2.ConfigServiceV2.UpdateCmekSettings:input_type -> google.logging.v2.UpdateCmekSettingsRequest 45, // 84: google.logging.v2.ConfigServiceV2.GetSettings:input_type -> google.logging.v2.GetSettingsRequest 46, // 85: google.logging.v2.ConfigServiceV2.UpdateSettings:input_type -> google.logging.v2.UpdateSettingsRequest 48, // 86: google.logging.v2.ConfigServiceV2.CopyLogEntries:input_type -> google.logging.v2.CopyLogEntriesRequest 12, // 87: google.logging.v2.ConfigServiceV2.ListBuckets:output_type -> google.logging.v2.ListBucketsResponse 5, // 88: google.logging.v2.ConfigServiceV2.GetBucket:output_type -> google.logging.v2.LogBucket 56, // 89: google.logging.v2.ConfigServiceV2.CreateBucketAsync:output_type -> google.longrunning.Operation 56, // 90: google.logging.v2.ConfigServiceV2.UpdateBucketAsync:output_type -> google.longrunning.Operation 5, // 91: google.logging.v2.ConfigServiceV2.CreateBucket:output_type -> google.logging.v2.LogBucket 5, // 92: google.logging.v2.ConfigServiceV2.UpdateBucket:output_type -> google.logging.v2.LogBucket 57, // 93: google.logging.v2.ConfigServiceV2.DeleteBucket:output_type -> google.protobuf.Empty 57, // 94: google.logging.v2.ConfigServiceV2.UndeleteBucket:output_type -> google.protobuf.Empty 19, // 95: google.logging.v2.ConfigServiceV2.ListViews:output_type -> google.logging.v2.ListViewsResponse 6, // 96: google.logging.v2.ConfigServiceV2.GetView:output_type -> google.logging.v2.LogView 6, // 97: google.logging.v2.ConfigServiceV2.CreateView:output_type -> google.logging.v2.LogView 6, // 98: google.logging.v2.ConfigServiceV2.UpdateView:output_type -> google.logging.v2.LogView 57, // 99: google.logging.v2.ConfigServiceV2.DeleteView:output_type -> google.protobuf.Empty 25, // 100: google.logging.v2.ConfigServiceV2.ListSinks:output_type -> google.logging.v2.ListSinksResponse 7, // 101: google.logging.v2.ConfigServiceV2.GetSink:output_type -> google.logging.v2.LogSink 7, // 102: google.logging.v2.ConfigServiceV2.CreateSink:output_type -> google.logging.v2.LogSink 7, // 103: google.logging.v2.ConfigServiceV2.UpdateSink:output_type -> google.logging.v2.LogSink 57, // 104: google.logging.v2.ConfigServiceV2.DeleteSink:output_type -> google.protobuf.Empty 56, // 105: google.logging.v2.ConfigServiceV2.CreateLink:output_type -> google.longrunning.Operation 56, // 106: google.logging.v2.ConfigServiceV2.DeleteLink:output_type -> google.longrunning.Operation 33, // 107: google.logging.v2.ConfigServiceV2.ListLinks:output_type -> google.logging.v2.ListLinksResponse 9, // 108: google.logging.v2.ConfigServiceV2.GetLink:output_type -> google.logging.v2.Link 37, // 109: google.logging.v2.ConfigServiceV2.ListExclusions:output_type -> google.logging.v2.ListExclusionsResponse 35, // 110: google.logging.v2.ConfigServiceV2.GetExclusion:output_type -> google.logging.v2.LogExclusion 35, // 111: google.logging.v2.ConfigServiceV2.CreateExclusion:output_type -> google.logging.v2.LogExclusion 35, // 112: google.logging.v2.ConfigServiceV2.UpdateExclusion:output_type -> google.logging.v2.LogExclusion 57, // 113: google.logging.v2.ConfigServiceV2.DeleteExclusion:output_type -> google.protobuf.Empty 44, // 114: google.logging.v2.ConfigServiceV2.GetCmekSettings:output_type -> google.logging.v2.CmekSettings 44, // 115: google.logging.v2.ConfigServiceV2.UpdateCmekSettings:output_type -> google.logging.v2.CmekSettings 47, // 116: google.logging.v2.ConfigServiceV2.GetSettings:output_type -> google.logging.v2.Settings 47, // 117: google.logging.v2.ConfigServiceV2.UpdateSettings:output_type -> google.logging.v2.Settings 56, // 118: google.logging.v2.ConfigServiceV2.CopyLogEntries:output_type -> google.longrunning.Operation 87, // [87:119] is the sub-list for method output_type 55, // [55:87] is the sub-list for method input_type 55, // [55:55] is the sub-list for extension type_name 55, // [55:55] is the sub-list for extension extendee 0, // [0:55] 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.(*IndexConfig); 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.(*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[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LogView); 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.(*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[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BigQueryDataset); 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.(*Link); 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.(*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[7].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[8].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[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateBucketRequest); 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.(*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[11].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[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteBucketRequest); 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.(*UndeleteBucketRequest); 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.(*ListViewsRequest); 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.(*ListViewsResponse); 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.(*CreateViewRequest); 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.(*UpdateViewRequest); 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.(*GetViewRequest); 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.(*DeleteViewRequest); 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.(*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[21].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[22].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[23].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[24].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[25].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[26].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateLinkRequest); 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[27].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteLinkRequest); 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[28].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListLinksRequest); 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[29].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListLinksResponse); 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[30].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetLinkRequest); 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[31].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[32].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[33].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[34].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[35].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[36].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[37].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[38].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[39].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[40].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[41].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetSettingsRequest); 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[42].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateSettingsRequest); 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[43].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Settings); 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[44].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CopyLogEntriesRequest); 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[45].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CopyLogEntriesMetadata); 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[46].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CopyLogEntriesResponse); 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[47].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BucketMetadata); 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[48].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LinkMetadata); 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[49].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LocationMetadata); 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].OneofWrappers = []interface{}{ (*LogSink_BigqueryOptions)(nil), } file_google_logging_v2_logging_config_proto_msgTypes[47].OneofWrappers = []interface{}{ (*BucketMetadata_CreateBucketRequest)(nil), (*BucketMetadata_UpdateBucketRequest)(nil), } file_google_logging_v2_logging_config_proto_msgTypes[48].OneofWrappers = []interface{}{ (*LinkMetadata_CreateLinkRequest)(nil), (*LinkMetadata_DeleteLinkRequest)(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: 4, NumMessages: 50, 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 log buckets. ListBuckets(ctx context.Context, in *ListBucketsRequest, opts ...grpc.CallOption) (*ListBucketsResponse, error) // Gets a log bucket. GetBucket(ctx context.Context, in *GetBucketRequest, opts ...grpc.CallOption) (*LogBucket, error) // Creates a log bucket asynchronously that can be used to store log entries. // // After a bucket has been created, the bucket's location cannot be changed. CreateBucketAsync(ctx context.Context, in *CreateBucketRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) // Updates a log bucket asynchronously. // // If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then // `FAILED_PRECONDITION` will be returned. // // After a bucket has been created, the bucket's location cannot be changed. UpdateBucketAsync(ctx context.Context, in *UpdateBucketRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) // Creates a log bucket that can be used to store log entries. After a bucket // has been created, the bucket's location cannot be changed. CreateBucket(ctx context.Context, in *CreateBucketRequest, opts ...grpc.CallOption) (*LogBucket, error) // Updates a log bucket. // // If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then // `FAILED_PRECONDITION` will be returned. // // After a bucket has been created, the bucket's location cannot be changed. UpdateBucket(ctx context.Context, in *UpdateBucketRequest, opts ...grpc.CallOption) (*LogBucket, error) // Deletes a log bucket. // // Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state. // After 7 days, the bucket will be purged and all log entries in the bucket // will be permanently deleted. DeleteBucket(ctx context.Context, in *DeleteBucketRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Undeletes a log bucket. A bucket that has been deleted can be undeleted // within the grace period of 7 days. UndeleteBucket(ctx context.Context, in *UndeleteBucketRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Lists views on a log bucket. ListViews(ctx context.Context, in *ListViewsRequest, opts ...grpc.CallOption) (*ListViewsResponse, error) // Gets a view on a log bucket.. GetView(ctx context.Context, in *GetViewRequest, opts ...grpc.CallOption) (*LogView, error) // Creates a view over log entries in a log bucket. A bucket may contain a // maximum of 30 views. CreateView(ctx context.Context, in *CreateViewRequest, opts ...grpc.CallOption) (*LogView, error) // Updates a view on a log bucket. This method replaces the following fields // in the existing view with values from the new view: `filter`. // If an `UNAVAILABLE` error is returned, this indicates that system is not in // a state where it can update the view. If this occurs, please try again in a // few minutes. UpdateView(ctx context.Context, in *UpdateViewRequest, opts ...grpc.CallOption) (*LogView, error) // Deletes a view on a log bucket. // If an `UNAVAILABLE` error is returned, this indicates that system is not in // a state where it can delete the view. If this occurs, please try again in a // few minutes. DeleteView(ctx context.Context, in *DeleteViewRequest, opts ...grpc.CallOption) (*emptypb.Empty, 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) (*emptypb.Empty, error) // Asynchronously creates a linked dataset in BigQuery which makes it possible // to use BigQuery to read the logs stored in the log bucket. A log bucket may // currently only contain one link. CreateLink(ctx context.Context, in *CreateLinkRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) // Deletes a link. This will also delete the corresponding BigQuery linked // dataset. DeleteLink(ctx context.Context, in *DeleteLinkRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) // Lists links. ListLinks(ctx context.Context, in *ListLinksRequest, opts ...grpc.CallOption) (*ListLinksResponse, error) // Gets a link. GetLink(ctx context.Context, in *GetLinkRequest, opts ...grpc.CallOption) (*Link, error) // Lists all the exclusions on the _Default sink in a parent resource. ListExclusions(ctx context.Context, in *ListExclusionsRequest, opts ...grpc.CallOption) (*ListExclusionsResponse, error) // Gets the description of an exclusion in the _Default sink. GetExclusion(ctx context.Context, in *GetExclusionRequest, opts ...grpc.CallOption) (*LogExclusion, error) // Creates a new exclusion in the _Default sink 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 in the _Default // sink. UpdateExclusion(ctx context.Context, in *UpdateExclusionRequest, opts ...grpc.CallOption) (*LogExclusion, error) // Deletes an exclusion in the _Default sink. DeleteExclusion(ctx context.Context, in *DeleteExclusionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Gets the Logging CMEK settings for the given resource. // // Note: CMEK for the Log Router can be configured for Google Cloud projects, // folders, organizations and billing accounts. Once configured for an // organization, it applies to all projects and folders in the Google Cloud // organization. // // See [Enabling CMEK for Log // 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 Log Router CMEK settings for the given resource. // // Note: CMEK for the Log Router can currently only be configured for Google // Cloud organizations. Once configured, it applies to all projects and // folders in the Google Cloud 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 Log // Router](https://cloud.google.com/logging/docs/routing/managed-encryption) // for more information. UpdateCmekSettings(ctx context.Context, in *UpdateCmekSettingsRequest, opts ...grpc.CallOption) (*CmekSettings, error) // Gets the Log Router settings for the given resource. // // Note: Settings for the Log Router can be get for Google Cloud projects, // folders, organizations and billing accounts. Currently it can only be // configured for organizations. Once configured for an organization, it // applies to all projects and folders in the Google Cloud organization. // // See [Enabling CMEK for Log // Router](https://cloud.google.com/logging/docs/routing/managed-encryption) // for more information. GetSettings(ctx context.Context, in *GetSettingsRequest, opts ...grpc.CallOption) (*Settings, error) // Updates the Log Router settings for the given resource. // // Note: Settings for the Log Router can currently only be configured for // Google Cloud organizations. Once configured, it applies to all projects and // folders in the Google Cloud organization. // // [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] // 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. 4) `location_id` is not supported by // Logging. 5) `location_id` violate OrgPolicy. // // See [Enabling CMEK for Log // Router](https://cloud.google.com/logging/docs/routing/managed-encryption) // for more information. UpdateSettings(ctx context.Context, in *UpdateSettingsRequest, opts ...grpc.CallOption) (*Settings, error) // Copies a set of log entries from a log bucket to a Cloud Storage bucket. CopyLogEntries(ctx context.Context, in *CopyLogEntriesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, 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) CreateBucketAsync(ctx context.Context, in *CreateBucketRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { out := new(longrunningpb.Operation) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/CreateBucketAsync", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *configServiceV2Client) UpdateBucketAsync(ctx context.Context, in *UpdateBucketRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { out := new(longrunningpb.Operation) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/UpdateBucketAsync", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *configServiceV2Client) CreateBucket(ctx context.Context, in *CreateBucketRequest, opts ...grpc.CallOption) (*LogBucket, error) { out := new(LogBucket) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/CreateBucket", 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) DeleteBucket(ctx context.Context, in *DeleteBucketRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/DeleteBucket", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *configServiceV2Client) UndeleteBucket(ctx context.Context, in *UndeleteBucketRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/UndeleteBucket", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *configServiceV2Client) ListViews(ctx context.Context, in *ListViewsRequest, opts ...grpc.CallOption) (*ListViewsResponse, error) { out := new(ListViewsResponse) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/ListViews", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *configServiceV2Client) GetView(ctx context.Context, in *GetViewRequest, opts ...grpc.CallOption) (*LogView, error) { out := new(LogView) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/GetView", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *configServiceV2Client) CreateView(ctx context.Context, in *CreateViewRequest, opts ...grpc.CallOption) (*LogView, error) { out := new(LogView) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/CreateView", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *configServiceV2Client) UpdateView(ctx context.Context, in *UpdateViewRequest, opts ...grpc.CallOption) (*LogView, error) { out := new(LogView) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/UpdateView", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *configServiceV2Client) DeleteView(ctx context.Context, in *DeleteViewRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/DeleteView", 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) (*emptypb.Empty, error) { out := new(emptypb.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) CreateLink(ctx context.Context, in *CreateLinkRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { out := new(longrunningpb.Operation) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/CreateLink", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *configServiceV2Client) DeleteLink(ctx context.Context, in *DeleteLinkRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { out := new(longrunningpb.Operation) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/DeleteLink", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *configServiceV2Client) ListLinks(ctx context.Context, in *ListLinksRequest, opts ...grpc.CallOption) (*ListLinksResponse, error) { out := new(ListLinksResponse) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/ListLinks", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *configServiceV2Client) GetLink(ctx context.Context, in *GetLinkRequest, opts ...grpc.CallOption) (*Link, error) { out := new(Link) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/GetLink", 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) (*emptypb.Empty, error) { out := new(emptypb.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 } func (c *configServiceV2Client) GetSettings(ctx context.Context, in *GetSettingsRequest, opts ...grpc.CallOption) (*Settings, error) { out := new(Settings) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/GetSettings", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *configServiceV2Client) UpdateSettings(ctx context.Context, in *UpdateSettingsRequest, opts ...grpc.CallOption) (*Settings, error) { out := new(Settings) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/UpdateSettings", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *configServiceV2Client) CopyLogEntries(ctx context.Context, in *CopyLogEntriesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { out := new(longrunningpb.Operation) err := c.cc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/CopyLogEntries", in, out, opts...) if err != nil { return nil, err } return out, nil } // ConfigServiceV2Server is the server API for ConfigServiceV2 service. type ConfigServiceV2Server interface { // Lists log buckets. ListBuckets(context.Context, *ListBucketsRequest) (*ListBucketsResponse, error) // Gets a log bucket. GetBucket(context.Context, *GetBucketRequest) (*LogBucket, error) // Creates a log bucket asynchronously that can be used to store log entries. // // After a bucket has been created, the bucket's location cannot be changed. CreateBucketAsync(context.Context, *CreateBucketRequest) (*longrunningpb.Operation, error) // Updates a log bucket asynchronously. // // If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then // `FAILED_PRECONDITION` will be returned. // // After a bucket has been created, the bucket's location cannot be changed. UpdateBucketAsync(context.Context, *UpdateBucketRequest) (*longrunningpb.Operation, error) // Creates a log bucket that can be used to store log entries. After a bucket // has been created, the bucket's location cannot be changed. CreateBucket(context.Context, *CreateBucketRequest) (*LogBucket, error) // Updates a log bucket. // // If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then // `FAILED_PRECONDITION` will be returned. // // After a bucket has been created, the bucket's location cannot be changed. UpdateBucket(context.Context, *UpdateBucketRequest) (*LogBucket, error) // Deletes a log bucket. // // Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state. // After 7 days, the bucket will be purged and all log entries in the bucket // will be permanently deleted. DeleteBucket(context.Context, *DeleteBucketRequest) (*emptypb.Empty, error) // Undeletes a log bucket. A bucket that has been deleted can be undeleted // within the grace period of 7 days. UndeleteBucket(context.Context, *UndeleteBucketRequest) (*emptypb.Empty, error) // Lists views on a log bucket. ListViews(context.Context, *ListViewsRequest) (*ListViewsResponse, error) // Gets a view on a log bucket.. GetView(context.Context, *GetViewRequest) (*LogView, error) // Creates a view over log entries in a log bucket. A bucket may contain a // maximum of 30 views. CreateView(context.Context, *CreateViewRequest) (*LogView, error) // Updates a view on a log bucket. This method replaces the following fields // in the existing view with values from the new view: `filter`. // If an `UNAVAILABLE` error is returned, this indicates that system is not in // a state where it can update the view. If this occurs, please try again in a // few minutes. UpdateView(context.Context, *UpdateViewRequest) (*LogView, error) // Deletes a view on a log bucket. // If an `UNAVAILABLE` error is returned, this indicates that system is not in // a state where it can delete the view. If this occurs, please try again in a // few minutes. DeleteView(context.Context, *DeleteViewRequest) (*emptypb.Empty, 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) (*emptypb.Empty, error) // Asynchronously creates a linked dataset in BigQuery which makes it possible // to use BigQuery to read the logs stored in the log bucket. A log bucket may // currently only contain one link. CreateLink(context.Context, *CreateLinkRequest) (*longrunningpb.Operation, error) // Deletes a link. This will also delete the corresponding BigQuery linked // dataset. DeleteLink(context.Context, *DeleteLinkRequest) (*longrunningpb.Operation, error) // Lists links. ListLinks(context.Context, *ListLinksRequest) (*ListLinksResponse, error) // Gets a link. GetLink(context.Context, *GetLinkRequest) (*Link, error) // Lists all the exclusions on the _Default sink in a parent resource. ListExclusions(context.Context, *ListExclusionsRequest) (*ListExclusionsResponse, error) // Gets the description of an exclusion in the _Default sink. GetExclusion(context.Context, *GetExclusionRequest) (*LogExclusion, error) // Creates a new exclusion in the _Default sink 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 in the _Default // sink. UpdateExclusion(context.Context, *UpdateExclusionRequest) (*LogExclusion, error) // Deletes an exclusion in the _Default sink. DeleteExclusion(context.Context, *DeleteExclusionRequest) (*emptypb.Empty, error) // Gets the Logging CMEK settings for the given resource. // // Note: CMEK for the Log Router can be configured for Google Cloud projects, // folders, organizations and billing accounts. Once configured for an // organization, it applies to all projects and folders in the Google Cloud // organization. // // See [Enabling CMEK for Log // Router](https://cloud.google.com/logging/docs/routing/managed-encryption) // for more information. GetCmekSettings(context.Context, *GetCmekSettingsRequest) (*CmekSettings, error) // Updates the Log Router CMEK settings for the given resource. // // Note: CMEK for the Log Router can currently only be configured for Google // Cloud organizations. Once configured, it applies to all projects and // folders in the Google Cloud 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 Log // Router](https://cloud.google.com/logging/docs/routing/managed-encryption) // for more information. UpdateCmekSettings(context.Context, *UpdateCmekSettingsRequest) (*CmekSettings, error) // Gets the Log Router settings for the given resource. // // Note: Settings for the Log Router can be get for Google Cloud projects, // folders, organizations and billing accounts. Currently it can only be // configured for organizations. Once configured for an organization, it // applies to all projects and folders in the Google Cloud organization. // // See [Enabling CMEK for Log // Router](https://cloud.google.com/logging/docs/routing/managed-encryption) // for more information. GetSettings(context.Context, *GetSettingsRequest) (*Settings, error) // Updates the Log Router settings for the given resource. // // Note: Settings for the Log Router can currently only be configured for // Google Cloud organizations. Once configured, it applies to all projects and // folders in the Google Cloud organization. // // [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] // 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. 4) `location_id` is not supported by // Logging. 5) `location_id` violate OrgPolicy. // // See [Enabling CMEK for Log // Router](https://cloud.google.com/logging/docs/routing/managed-encryption) // for more information. UpdateSettings(context.Context, *UpdateSettingsRequest) (*Settings, error) // Copies a set of log entries from a log bucket to a Cloud Storage bucket. CopyLogEntries(context.Context, *CopyLogEntriesRequest) (*longrunningpb.Operation, 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) CreateBucketAsync(context.Context, *CreateBucketRequest) (*longrunningpb.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateBucketAsync not implemented") } func (*UnimplementedConfigServiceV2Server) UpdateBucketAsync(context.Context, *UpdateBucketRequest) (*longrunningpb.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateBucketAsync not implemented") } func (*UnimplementedConfigServiceV2Server) CreateBucket(context.Context, *CreateBucketRequest) (*LogBucket, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateBucket not implemented") } func (*UnimplementedConfigServiceV2Server) UpdateBucket(context.Context, *UpdateBucketRequest) (*LogBucket, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateBucket not implemented") } func (*UnimplementedConfigServiceV2Server) DeleteBucket(context.Context, *DeleteBucketRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteBucket not implemented") } func (*UnimplementedConfigServiceV2Server) UndeleteBucket(context.Context, *UndeleteBucketRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method UndeleteBucket not implemented") } func (*UnimplementedConfigServiceV2Server) ListViews(context.Context, *ListViewsRequest) (*ListViewsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListViews not implemented") } func (*UnimplementedConfigServiceV2Server) GetView(context.Context, *GetViewRequest) (*LogView, error) { return nil, status.Errorf(codes.Unimplemented, "method GetView not implemented") } func (*UnimplementedConfigServiceV2Server) CreateView(context.Context, *CreateViewRequest) (*LogView, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateView not implemented") } func (*UnimplementedConfigServiceV2Server) UpdateView(context.Context, *UpdateViewRequest) (*LogView, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateView not implemented") } func (*UnimplementedConfigServiceV2Server) DeleteView(context.Context, *DeleteViewRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteView 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) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteSink not implemented") } func (*UnimplementedConfigServiceV2Server) CreateLink(context.Context, *CreateLinkRequest) (*longrunningpb.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateLink not implemented") } func (*UnimplementedConfigServiceV2Server) DeleteLink(context.Context, *DeleteLinkRequest) (*longrunningpb.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteLink not implemented") } func (*UnimplementedConfigServiceV2Server) ListLinks(context.Context, *ListLinksRequest) (*ListLinksResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListLinks not implemented") } func (*UnimplementedConfigServiceV2Server) GetLink(context.Context, *GetLinkRequest) (*Link, error) { return nil, status.Errorf(codes.Unimplemented, "method GetLink 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) (*emptypb.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 (*UnimplementedConfigServiceV2Server) GetSettings(context.Context, *GetSettingsRequest) (*Settings, error) { return nil, status.Errorf(codes.Unimplemented, "method GetSettings not implemented") } func (*UnimplementedConfigServiceV2Server) UpdateSettings(context.Context, *UpdateSettingsRequest) (*Settings, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateSettings not implemented") } func (*UnimplementedConfigServiceV2Server) CopyLogEntries(context.Context, *CopyLogEntriesRequest) (*longrunningpb.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method CopyLogEntries 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_CreateBucketAsync_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateBucketRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).CreateBucketAsync(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/CreateBucketAsync", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).CreateBucketAsync(ctx, req.(*CreateBucketRequest)) } return interceptor(ctx, in, info, handler) } func _ConfigServiceV2_UpdateBucketAsync_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).UpdateBucketAsync(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/UpdateBucketAsync", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).UpdateBucketAsync(ctx, req.(*UpdateBucketRequest)) } return interceptor(ctx, in, info, handler) } func _ConfigServiceV2_CreateBucket_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateBucketRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).CreateBucket(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/CreateBucket", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).CreateBucket(ctx, req.(*CreateBucketRequest)) } 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_DeleteBucket_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteBucketRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).DeleteBucket(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/DeleteBucket", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).DeleteBucket(ctx, req.(*DeleteBucketRequest)) } return interceptor(ctx, in, info, handler) } func _ConfigServiceV2_UndeleteBucket_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UndeleteBucketRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).UndeleteBucket(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/UndeleteBucket", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).UndeleteBucket(ctx, req.(*UndeleteBucketRequest)) } return interceptor(ctx, in, info, handler) } func _ConfigServiceV2_ListViews_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListViewsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).ListViews(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/ListViews", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).ListViews(ctx, req.(*ListViewsRequest)) } return interceptor(ctx, in, info, handler) } func _ConfigServiceV2_GetView_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetViewRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).GetView(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/GetView", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).GetView(ctx, req.(*GetViewRequest)) } return interceptor(ctx, in, info, handler) } func _ConfigServiceV2_CreateView_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateViewRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).CreateView(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/CreateView", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).CreateView(ctx, req.(*CreateViewRequest)) } return interceptor(ctx, in, info, handler) } func _ConfigServiceV2_UpdateView_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateViewRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).UpdateView(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/UpdateView", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).UpdateView(ctx, req.(*UpdateViewRequest)) } return interceptor(ctx, in, info, handler) } func _ConfigServiceV2_DeleteView_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteViewRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).DeleteView(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/DeleteView", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).DeleteView(ctx, req.(*DeleteViewRequest)) } 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_CreateLink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateLinkRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).CreateLink(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/CreateLink", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).CreateLink(ctx, req.(*CreateLinkRequest)) } return interceptor(ctx, in, info, handler) } func _ConfigServiceV2_DeleteLink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteLinkRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).DeleteLink(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/DeleteLink", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).DeleteLink(ctx, req.(*DeleteLinkRequest)) } return interceptor(ctx, in, info, handler) } func _ConfigServiceV2_ListLinks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListLinksRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).ListLinks(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/ListLinks", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).ListLinks(ctx, req.(*ListLinksRequest)) } return interceptor(ctx, in, info, handler) } func _ConfigServiceV2_GetLink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetLinkRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).GetLink(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/GetLink", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).GetLink(ctx, req.(*GetLinkRequest)) } 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) } func _ConfigServiceV2_GetSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetSettingsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).GetSettings(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/GetSettings", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).GetSettings(ctx, req.(*GetSettingsRequest)) } return interceptor(ctx, in, info, handler) } func _ConfigServiceV2_UpdateSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateSettingsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).UpdateSettings(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/UpdateSettings", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).UpdateSettings(ctx, req.(*UpdateSettingsRequest)) } return interceptor(ctx, in, info, handler) } func _ConfigServiceV2_CopyLogEntries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CopyLogEntriesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ConfigServiceV2Server).CopyLogEntries(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.logging.v2.ConfigServiceV2/CopyLogEntries", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceV2Server).CopyLogEntries(ctx, req.(*CopyLogEntriesRequest)) } 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: "CreateBucketAsync", Handler: _ConfigServiceV2_CreateBucketAsync_Handler, }, { MethodName: "UpdateBucketAsync", Handler: _ConfigServiceV2_UpdateBucketAsync_Handler, }, { MethodName: "CreateBucket", Handler: _ConfigServiceV2_CreateBucket_Handler, }, { MethodName: "UpdateBucket", Handler: _ConfigServiceV2_UpdateBucket_Handler, }, { MethodName: "DeleteBucket", Handler: _ConfigServiceV2_DeleteBucket_Handler, }, { MethodName: "UndeleteBucket", Handler: _ConfigServiceV2_UndeleteBucket_Handler, }, { MethodName: "ListViews", Handler: _ConfigServiceV2_ListViews_Handler, }, { MethodName: "GetView", Handler: _ConfigServiceV2_GetView_Handler, }, { MethodName: "CreateView", Handler: _ConfigServiceV2_CreateView_Handler, }, { MethodName: "UpdateView", Handler: _ConfigServiceV2_UpdateView_Handler, }, { MethodName: "DeleteView", Handler: _ConfigServiceV2_DeleteView_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: "CreateLink", Handler: _ConfigServiceV2_CreateLink_Handler, }, { MethodName: "DeleteLink", Handler: _ConfigServiceV2_DeleteLink_Handler, }, { MethodName: "ListLinks", Handler: _ConfigServiceV2_ListLinks_Handler, }, { MethodName: "GetLink", Handler: _ConfigServiceV2_GetLink_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, }, { MethodName: "GetSettings", Handler: _ConfigServiceV2_GetSettings_Handler, }, { MethodName: "UpdateSettings", Handler: _ConfigServiceV2_UpdateSettings_Handler, }, { MethodName: "CopyLogEntries", Handler: _ConfigServiceV2_CopyLogEntries_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "google/logging/v2/logging_config.proto", }