...

Source file src/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb/snooze_service.pb.go

Documentation: cloud.google.com/go/monitoring/apiv3/v2/monitoringpb

     1  // Copyright 2023 Google LLC
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.33.0
    18  // 	protoc        v4.25.3
    19  // source: google/monitoring/v3/snooze_service.proto
    20  
    21  package monitoringpb
    22  
    23  import (
    24  	context "context"
    25  	reflect "reflect"
    26  	sync "sync"
    27  
    28  	_ "google.golang.org/genproto/googleapis/api/annotations"
    29  	grpc "google.golang.org/grpc"
    30  	codes "google.golang.org/grpc/codes"
    31  	status "google.golang.org/grpc/status"
    32  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    33  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    34  	fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
    35  )
    36  
    37  const (
    38  	// Verify that this generated code is sufficiently up-to-date.
    39  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    40  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    41  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    42  )
    43  
    44  // The message definition for creating a `Snooze`. Users must provide the body
    45  // of the `Snooze` to be created but must omit the `Snooze` field, `name`.
    46  type CreateSnoozeRequest struct {
    47  	state         protoimpl.MessageState
    48  	sizeCache     protoimpl.SizeCache
    49  	unknownFields protoimpl.UnknownFields
    50  
    51  	// Required. The
    52  	// [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
    53  	// a `Snooze` should be created. The format is:
    54  	//
    55  	//	projects/[PROJECT_ID_OR_NUMBER]
    56  	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
    57  	// Required. The `Snooze` to create. Omit the `name` field, as it will be
    58  	// filled in by the API.
    59  	Snooze *Snooze `protobuf:"bytes,2,opt,name=snooze,proto3" json:"snooze,omitempty"`
    60  }
    61  
    62  func (x *CreateSnoozeRequest) Reset() {
    63  	*x = CreateSnoozeRequest{}
    64  	if protoimpl.UnsafeEnabled {
    65  		mi := &file_google_monitoring_v3_snooze_service_proto_msgTypes[0]
    66  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    67  		ms.StoreMessageInfo(mi)
    68  	}
    69  }
    70  
    71  func (x *CreateSnoozeRequest) String() string {
    72  	return protoimpl.X.MessageStringOf(x)
    73  }
    74  
    75  func (*CreateSnoozeRequest) ProtoMessage() {}
    76  
    77  func (x *CreateSnoozeRequest) ProtoReflect() protoreflect.Message {
    78  	mi := &file_google_monitoring_v3_snooze_service_proto_msgTypes[0]
    79  	if protoimpl.UnsafeEnabled && x != nil {
    80  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    81  		if ms.LoadMessageInfo() == nil {
    82  			ms.StoreMessageInfo(mi)
    83  		}
    84  		return ms
    85  	}
    86  	return mi.MessageOf(x)
    87  }
    88  
    89  // Deprecated: Use CreateSnoozeRequest.ProtoReflect.Descriptor instead.
    90  func (*CreateSnoozeRequest) Descriptor() ([]byte, []int) {
    91  	return file_google_monitoring_v3_snooze_service_proto_rawDescGZIP(), []int{0}
    92  }
    93  
    94  func (x *CreateSnoozeRequest) GetParent() string {
    95  	if x != nil {
    96  		return x.Parent
    97  	}
    98  	return ""
    99  }
   100  
   101  func (x *CreateSnoozeRequest) GetSnooze() *Snooze {
   102  	if x != nil {
   103  		return x.Snooze
   104  	}
   105  	return nil
   106  }
   107  
   108  // The message definition for listing `Snooze`s associated with the given
   109  // `parent`, satisfying the optional `filter`.
   110  type ListSnoozesRequest struct {
   111  	state         protoimpl.MessageState
   112  	sizeCache     protoimpl.SizeCache
   113  	unknownFields protoimpl.UnknownFields
   114  
   115  	// Required. The
   116  	// [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
   117  	// `Snooze`s should be listed. The format is:
   118  	//
   119  	//	projects/[PROJECT_ID_OR_NUMBER]
   120  	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
   121  	// Optional. Optional filter to restrict results to the given criteria. The
   122  	// following fields are supported.
   123  	//
   124  	//   - `interval.start_time`
   125  	//   - `interval.end_time`
   126  	//
   127  	// For example:
   128  	//
   129  	//	```
   130  	//	interval.start_time > "2022-03-11T00:00:00-08:00" AND
   131  	//	    interval.end_time < "2022-03-12T00:00:00-08:00"
   132  	//	```
   133  	Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
   134  	// Optional. The maximum number of results to return for a single query. The
   135  	// server may further constrain the maximum number of results returned in a
   136  	// single page. The value should be in the range [1, 1000]. If the value given
   137  	// is outside this range, the server will decide the number of results to be
   138  	// returned.
   139  	PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
   140  	// Optional. The `next_page_token` from a previous call to
   141  	// `ListSnoozesRequest` to get the next page of results.
   142  	PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
   143  }
   144  
   145  func (x *ListSnoozesRequest) Reset() {
   146  	*x = ListSnoozesRequest{}
   147  	if protoimpl.UnsafeEnabled {
   148  		mi := &file_google_monitoring_v3_snooze_service_proto_msgTypes[1]
   149  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   150  		ms.StoreMessageInfo(mi)
   151  	}
   152  }
   153  
   154  func (x *ListSnoozesRequest) String() string {
   155  	return protoimpl.X.MessageStringOf(x)
   156  }
   157  
   158  func (*ListSnoozesRequest) ProtoMessage() {}
   159  
   160  func (x *ListSnoozesRequest) ProtoReflect() protoreflect.Message {
   161  	mi := &file_google_monitoring_v3_snooze_service_proto_msgTypes[1]
   162  	if protoimpl.UnsafeEnabled && x != nil {
   163  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   164  		if ms.LoadMessageInfo() == nil {
   165  			ms.StoreMessageInfo(mi)
   166  		}
   167  		return ms
   168  	}
   169  	return mi.MessageOf(x)
   170  }
   171  
   172  // Deprecated: Use ListSnoozesRequest.ProtoReflect.Descriptor instead.
   173  func (*ListSnoozesRequest) Descriptor() ([]byte, []int) {
   174  	return file_google_monitoring_v3_snooze_service_proto_rawDescGZIP(), []int{1}
   175  }
   176  
   177  func (x *ListSnoozesRequest) GetParent() string {
   178  	if x != nil {
   179  		return x.Parent
   180  	}
   181  	return ""
   182  }
   183  
   184  func (x *ListSnoozesRequest) GetFilter() string {
   185  	if x != nil {
   186  		return x.Filter
   187  	}
   188  	return ""
   189  }
   190  
   191  func (x *ListSnoozesRequest) GetPageSize() int32 {
   192  	if x != nil {
   193  		return x.PageSize
   194  	}
   195  	return 0
   196  }
   197  
   198  func (x *ListSnoozesRequest) GetPageToken() string {
   199  	if x != nil {
   200  		return x.PageToken
   201  	}
   202  	return ""
   203  }
   204  
   205  // The results of a successful `ListSnoozes` call, containing the matching
   206  // `Snooze`s.
   207  type ListSnoozesResponse struct {
   208  	state         protoimpl.MessageState
   209  	sizeCache     protoimpl.SizeCache
   210  	unknownFields protoimpl.UnknownFields
   211  
   212  	// `Snooze`s matching this list call.
   213  	Snoozes []*Snooze `protobuf:"bytes,1,rep,name=snoozes,proto3" json:"snoozes,omitempty"`
   214  	// Page token for repeated calls to `ListSnoozes`, to fetch additional pages
   215  	// of results. If this is empty or missing, there are no more pages.
   216  	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
   217  }
   218  
   219  func (x *ListSnoozesResponse) Reset() {
   220  	*x = ListSnoozesResponse{}
   221  	if protoimpl.UnsafeEnabled {
   222  		mi := &file_google_monitoring_v3_snooze_service_proto_msgTypes[2]
   223  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   224  		ms.StoreMessageInfo(mi)
   225  	}
   226  }
   227  
   228  func (x *ListSnoozesResponse) String() string {
   229  	return protoimpl.X.MessageStringOf(x)
   230  }
   231  
   232  func (*ListSnoozesResponse) ProtoMessage() {}
   233  
   234  func (x *ListSnoozesResponse) ProtoReflect() protoreflect.Message {
   235  	mi := &file_google_monitoring_v3_snooze_service_proto_msgTypes[2]
   236  	if protoimpl.UnsafeEnabled && x != nil {
   237  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   238  		if ms.LoadMessageInfo() == nil {
   239  			ms.StoreMessageInfo(mi)
   240  		}
   241  		return ms
   242  	}
   243  	return mi.MessageOf(x)
   244  }
   245  
   246  // Deprecated: Use ListSnoozesResponse.ProtoReflect.Descriptor instead.
   247  func (*ListSnoozesResponse) Descriptor() ([]byte, []int) {
   248  	return file_google_monitoring_v3_snooze_service_proto_rawDescGZIP(), []int{2}
   249  }
   250  
   251  func (x *ListSnoozesResponse) GetSnoozes() []*Snooze {
   252  	if x != nil {
   253  		return x.Snoozes
   254  	}
   255  	return nil
   256  }
   257  
   258  func (x *ListSnoozesResponse) GetNextPageToken() string {
   259  	if x != nil {
   260  		return x.NextPageToken
   261  	}
   262  	return ""
   263  }
   264  
   265  // The message definition for retrieving a `Snooze`. Users must specify the
   266  // field, `name`, which identifies the `Snooze`.
   267  type GetSnoozeRequest struct {
   268  	state         protoimpl.MessageState
   269  	sizeCache     protoimpl.SizeCache
   270  	unknownFields protoimpl.UnknownFields
   271  
   272  	// Required. The ID of the `Snooze` to retrieve. The format is:
   273  	//
   274  	//	projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
   275  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   276  }
   277  
   278  func (x *GetSnoozeRequest) Reset() {
   279  	*x = GetSnoozeRequest{}
   280  	if protoimpl.UnsafeEnabled {
   281  		mi := &file_google_monitoring_v3_snooze_service_proto_msgTypes[3]
   282  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   283  		ms.StoreMessageInfo(mi)
   284  	}
   285  }
   286  
   287  func (x *GetSnoozeRequest) String() string {
   288  	return protoimpl.X.MessageStringOf(x)
   289  }
   290  
   291  func (*GetSnoozeRequest) ProtoMessage() {}
   292  
   293  func (x *GetSnoozeRequest) ProtoReflect() protoreflect.Message {
   294  	mi := &file_google_monitoring_v3_snooze_service_proto_msgTypes[3]
   295  	if protoimpl.UnsafeEnabled && x != nil {
   296  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   297  		if ms.LoadMessageInfo() == nil {
   298  			ms.StoreMessageInfo(mi)
   299  		}
   300  		return ms
   301  	}
   302  	return mi.MessageOf(x)
   303  }
   304  
   305  // Deprecated: Use GetSnoozeRequest.ProtoReflect.Descriptor instead.
   306  func (*GetSnoozeRequest) Descriptor() ([]byte, []int) {
   307  	return file_google_monitoring_v3_snooze_service_proto_rawDescGZIP(), []int{3}
   308  }
   309  
   310  func (x *GetSnoozeRequest) GetName() string {
   311  	if x != nil {
   312  		return x.Name
   313  	}
   314  	return ""
   315  }
   316  
   317  // The message definition for updating a `Snooze`. The field, `snooze.name`
   318  // identifies the `Snooze` to be updated. The remainder of `snooze` gives the
   319  // content the `Snooze` in question will be assigned.
   320  //
   321  // What fields can be updated depends on the start time and end time of the
   322  // `Snooze`.
   323  //
   324  //   - end time is in the past: These `Snooze`s are considered
   325  //     read-only and cannot be updated.
   326  //   - start time is in the past and end time is in the future: `display_name`
   327  //     and `interval.end_time` can be updated.
   328  //   - start time is in the future: `display_name`, `interval.start_time` and
   329  //     `interval.end_time` can be updated.
   330  type UpdateSnoozeRequest struct {
   331  	state         protoimpl.MessageState
   332  	sizeCache     protoimpl.SizeCache
   333  	unknownFields protoimpl.UnknownFields
   334  
   335  	// Required. The `Snooze` to update. Must have the name field present.
   336  	Snooze *Snooze `protobuf:"bytes,1,opt,name=snooze,proto3" json:"snooze,omitempty"`
   337  	// Required. The fields to update.
   338  	//
   339  	// For each field listed in `update_mask`:
   340  	//
   341  	//   - If the `Snooze` object supplied in the `UpdateSnoozeRequest` has a
   342  	//     value for that field, the value of the field in the existing `Snooze`
   343  	//     will be set to the value of the field in the supplied `Snooze`.
   344  	//   - If the field does not have a value in the supplied `Snooze`, the field
   345  	//     in the existing `Snooze` is set to its default value.
   346  	//
   347  	// Fields not listed retain their existing value.
   348  	//
   349  	// The following are the field names that are accepted in `update_mask`:
   350  	//
   351  	//   - `display_name`
   352  	//   - `interval.start_time`
   353  	//   - `interval.end_time`
   354  	//
   355  	// That said, the start time and end time of the `Snooze` determines which
   356  	// fields can legally be updated. Before attempting an update, users should
   357  	// consult the documentation for `UpdateSnoozeRequest`, which talks about
   358  	// which fields can be updated.
   359  	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
   360  }
   361  
   362  func (x *UpdateSnoozeRequest) Reset() {
   363  	*x = UpdateSnoozeRequest{}
   364  	if protoimpl.UnsafeEnabled {
   365  		mi := &file_google_monitoring_v3_snooze_service_proto_msgTypes[4]
   366  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   367  		ms.StoreMessageInfo(mi)
   368  	}
   369  }
   370  
   371  func (x *UpdateSnoozeRequest) String() string {
   372  	return protoimpl.X.MessageStringOf(x)
   373  }
   374  
   375  func (*UpdateSnoozeRequest) ProtoMessage() {}
   376  
   377  func (x *UpdateSnoozeRequest) ProtoReflect() protoreflect.Message {
   378  	mi := &file_google_monitoring_v3_snooze_service_proto_msgTypes[4]
   379  	if protoimpl.UnsafeEnabled && x != nil {
   380  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   381  		if ms.LoadMessageInfo() == nil {
   382  			ms.StoreMessageInfo(mi)
   383  		}
   384  		return ms
   385  	}
   386  	return mi.MessageOf(x)
   387  }
   388  
   389  // Deprecated: Use UpdateSnoozeRequest.ProtoReflect.Descriptor instead.
   390  func (*UpdateSnoozeRequest) Descriptor() ([]byte, []int) {
   391  	return file_google_monitoring_v3_snooze_service_proto_rawDescGZIP(), []int{4}
   392  }
   393  
   394  func (x *UpdateSnoozeRequest) GetSnooze() *Snooze {
   395  	if x != nil {
   396  		return x.Snooze
   397  	}
   398  	return nil
   399  }
   400  
   401  func (x *UpdateSnoozeRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
   402  	if x != nil {
   403  		return x.UpdateMask
   404  	}
   405  	return nil
   406  }
   407  
   408  var File_google_monitoring_v3_snooze_service_proto protoreflect.FileDescriptor
   409  
   410  var file_google_monitoring_v3_snooze_service_proto_rawDesc = []byte{
   411  	0x0a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72,
   412  	0x69, 0x6e, 0x67, 0x2f, 0x76, 0x33, 0x2f, 0x73, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x5f, 0x73, 0x65,
   413  	0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x67, 0x6f, 0x6f,
   414  	0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76,
   415  	0x33, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e,
   416  	0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
   417  	0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65,
   418  	0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   419  	0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76,
   420  	0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   421  	0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70,
   422  	0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x6e,
   423  	0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x33, 0x2f, 0x73, 0x6e, 0x6f, 0x6f, 0x7a,
   424  	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
   425  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d,
   426  	0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x92, 0x01, 0x0a, 0x13, 0x43, 0x72,
   427  	0x65, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
   428  	0x74, 0x12, 0x40, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
   429  	0x09, 0x42, 0x28, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x22, 0x12, 0x20, 0x6d, 0x6f, 0x6e, 0x69, 0x74,
   430  	0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
   431  	0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x52, 0x06, 0x70, 0x61, 0x72,
   432  	0x65, 0x6e, 0x74, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x18, 0x02, 0x20,
   433  	0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e,
   434  	0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x53, 0x6e, 0x6f, 0x6f, 0x7a,
   435  	0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x73, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x22, 0xb9,
   436  	0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x73, 0x52, 0x65,
   437  	0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18,
   438  	0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x28, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x22, 0x12, 0x20, 0x6d,
   439  	0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   440  	0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x52,
   441  	0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65,
   442  	0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x66, 0x69,
   443  	0x6c, 0x74, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a,
   444  	0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61,
   445  	0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74,
   446  	0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52,
   447  	0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x75, 0x0a, 0x13, 0x4c, 0x69,
   448  	0x73, 0x74, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
   449  	0x65, 0x12, 0x36, 0x0a, 0x07, 0x73, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03,
   450  	0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69,
   451  	0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65,
   452  	0x52, 0x07, 0x73, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78,
   453  	0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01,
   454  	0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65,
   455  	0x6e, 0x22, 0x50, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x52, 0x65,
   456  	0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
   457  	0x01, 0x28, 0x09, 0x42, 0x28, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x22, 0x0a, 0x20, 0x6d, 0x6f, 0x6e,
   458  	0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
   459  	0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x52, 0x04, 0x6e,
   460  	0x61, 0x6d, 0x65, 0x22, 0x92, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x6e,
   461  	0x6f, 0x6f, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x06, 0x73,
   462  	0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f,
   463  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e,
   464  	0x76, 0x33, 0x2e, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06,
   465  	0x73, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
   466  	0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
   467  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69,
   468  	0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70,
   469  	0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x32, 0x98, 0x06, 0x0a, 0x0d, 0x53, 0x6e, 0x6f,
   470  	0x6f, 0x7a, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x98, 0x01, 0x0a, 0x0c, 0x43,
   471  	0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x12, 0x29, 0x2e, 0x67, 0x6f,
   472  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e,
   473  	0x76, 0x33, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x52,
   474  	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   475  	0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x53, 0x6e,
   476  	0x6f, 0x6f, 0x7a, 0x65, 0x22, 0x3f, 0xda, 0x41, 0x0d, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c,
   477  	0x73, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x3a, 0x06, 0x73, 0x6e,
   478  	0x6f, 0x6f, 0x7a, 0x65, 0x22, 0x1f, 0x2f, 0x76, 0x33, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,
   479  	0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x6e,
   480  	0x6f, 0x6f, 0x7a, 0x65, 0x73, 0x12, 0x94, 0x01, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e,
   481  	0x6f, 0x6f, 0x7a, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d,
   482  	0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x4c, 0x69, 0x73,
   483  	0x74, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
   484  	0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72,
   485  	0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x6f, 0x6f, 0x7a,
   486  	0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0xda, 0x41, 0x06, 0x70,
   487  	0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x76, 0x33,
   488  	0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
   489  	0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x73, 0x12, 0x81, 0x01, 0x0a,
   490  	0x09, 0x47, 0x65, 0x74, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x12, 0x26, 0x2e, 0x67, 0x6f, 0x6f,
   491  	0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76,
   492  	0x33, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
   493  	0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69,
   494  	0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65,
   495  	0x22, 0x2e, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12,
   496  	0x1f, 0x2f, 0x76, 0x33, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,
   497  	0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x73, 0x2f, 0x2a, 0x7d,
   498  	0x12, 0xa4, 0x01, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x6f, 0x6f, 0x7a,
   499  	0x65, 0x12, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74,
   500  	0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53,
   501  	0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x67,
   502  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67,
   503  	0x2e, 0x76, 0x33, 0x2e, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x22, 0x4b, 0xda, 0x41, 0x12, 0x73,
   504  	0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73,
   505  	0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x06, 0x73, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x32,
   506  	0x26, 0x2f, 0x76, 0x33, 0x2f, 0x7b, 0x73, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x2e, 0x6e, 0x61, 0x6d,
   507  	0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6e, 0x6f,
   508  	0x6f, 0x7a, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x1a, 0xa9, 0x01, 0xca, 0x41, 0x19, 0x6d, 0x6f, 0x6e,
   509  	0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
   510  	0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x89, 0x01, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a,
   511  	0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
   512  	0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d,
   513  	0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f,
   514  	0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e,
   515  	0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72,
   516  	0x69, 0x6e, 0x67, 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e,
   517  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61,
   518  	0x75, 0x74, 0x68, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x72,
   519  	0x65, 0x61, 0x64, 0x42, 0xcd, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
   520  	0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33,
   521  	0x42, 0x12, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50,
   522  	0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f,
   523  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x6d, 0x6f, 0x6e, 0x69,
   524  	0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x33, 0x2f, 0x76, 0x32, 0x2f,
   525  	0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x3b, 0x6d, 0x6f, 0x6e,
   526  	0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x70, 0x62, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67,
   527  	0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72,
   528  	0x69, 0x6e, 0x67, 0x2e, 0x56, 0x33, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c,
   529  	0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67,
   530  	0x5c, 0x56, 0x33, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c,
   531  	0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x3a,
   532  	0x3a, 0x56, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   533  }
   534  
   535  var (
   536  	file_google_monitoring_v3_snooze_service_proto_rawDescOnce sync.Once
   537  	file_google_monitoring_v3_snooze_service_proto_rawDescData = file_google_monitoring_v3_snooze_service_proto_rawDesc
   538  )
   539  
   540  func file_google_monitoring_v3_snooze_service_proto_rawDescGZIP() []byte {
   541  	file_google_monitoring_v3_snooze_service_proto_rawDescOnce.Do(func() {
   542  		file_google_monitoring_v3_snooze_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_monitoring_v3_snooze_service_proto_rawDescData)
   543  	})
   544  	return file_google_monitoring_v3_snooze_service_proto_rawDescData
   545  }
   546  
   547  var file_google_monitoring_v3_snooze_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
   548  var file_google_monitoring_v3_snooze_service_proto_goTypes = []interface{}{
   549  	(*CreateSnoozeRequest)(nil),   // 0: google.monitoring.v3.CreateSnoozeRequest
   550  	(*ListSnoozesRequest)(nil),    // 1: google.monitoring.v3.ListSnoozesRequest
   551  	(*ListSnoozesResponse)(nil),   // 2: google.monitoring.v3.ListSnoozesResponse
   552  	(*GetSnoozeRequest)(nil),      // 3: google.monitoring.v3.GetSnoozeRequest
   553  	(*UpdateSnoozeRequest)(nil),   // 4: google.monitoring.v3.UpdateSnoozeRequest
   554  	(*Snooze)(nil),                // 5: google.monitoring.v3.Snooze
   555  	(*fieldmaskpb.FieldMask)(nil), // 6: google.protobuf.FieldMask
   556  }
   557  var file_google_monitoring_v3_snooze_service_proto_depIdxs = []int32{
   558  	5, // 0: google.monitoring.v3.CreateSnoozeRequest.snooze:type_name -> google.monitoring.v3.Snooze
   559  	5, // 1: google.monitoring.v3.ListSnoozesResponse.snoozes:type_name -> google.monitoring.v3.Snooze
   560  	5, // 2: google.monitoring.v3.UpdateSnoozeRequest.snooze:type_name -> google.monitoring.v3.Snooze
   561  	6, // 3: google.monitoring.v3.UpdateSnoozeRequest.update_mask:type_name -> google.protobuf.FieldMask
   562  	0, // 4: google.monitoring.v3.SnoozeService.CreateSnooze:input_type -> google.monitoring.v3.CreateSnoozeRequest
   563  	1, // 5: google.monitoring.v3.SnoozeService.ListSnoozes:input_type -> google.monitoring.v3.ListSnoozesRequest
   564  	3, // 6: google.monitoring.v3.SnoozeService.GetSnooze:input_type -> google.monitoring.v3.GetSnoozeRequest
   565  	4, // 7: google.monitoring.v3.SnoozeService.UpdateSnooze:input_type -> google.monitoring.v3.UpdateSnoozeRequest
   566  	5, // 8: google.monitoring.v3.SnoozeService.CreateSnooze:output_type -> google.monitoring.v3.Snooze
   567  	2, // 9: google.monitoring.v3.SnoozeService.ListSnoozes:output_type -> google.monitoring.v3.ListSnoozesResponse
   568  	5, // 10: google.monitoring.v3.SnoozeService.GetSnooze:output_type -> google.monitoring.v3.Snooze
   569  	5, // 11: google.monitoring.v3.SnoozeService.UpdateSnooze:output_type -> google.monitoring.v3.Snooze
   570  	8, // [8:12] is the sub-list for method output_type
   571  	4, // [4:8] is the sub-list for method input_type
   572  	4, // [4:4] is the sub-list for extension type_name
   573  	4, // [4:4] is the sub-list for extension extendee
   574  	0, // [0:4] is the sub-list for field type_name
   575  }
   576  
   577  func init() { file_google_monitoring_v3_snooze_service_proto_init() }
   578  func file_google_monitoring_v3_snooze_service_proto_init() {
   579  	if File_google_monitoring_v3_snooze_service_proto != nil {
   580  		return
   581  	}
   582  	file_google_monitoring_v3_snooze_proto_init()
   583  	if !protoimpl.UnsafeEnabled {
   584  		file_google_monitoring_v3_snooze_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   585  			switch v := v.(*CreateSnoozeRequest); i {
   586  			case 0:
   587  				return &v.state
   588  			case 1:
   589  				return &v.sizeCache
   590  			case 2:
   591  				return &v.unknownFields
   592  			default:
   593  				return nil
   594  			}
   595  		}
   596  		file_google_monitoring_v3_snooze_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   597  			switch v := v.(*ListSnoozesRequest); i {
   598  			case 0:
   599  				return &v.state
   600  			case 1:
   601  				return &v.sizeCache
   602  			case 2:
   603  				return &v.unknownFields
   604  			default:
   605  				return nil
   606  			}
   607  		}
   608  		file_google_monitoring_v3_snooze_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   609  			switch v := v.(*ListSnoozesResponse); i {
   610  			case 0:
   611  				return &v.state
   612  			case 1:
   613  				return &v.sizeCache
   614  			case 2:
   615  				return &v.unknownFields
   616  			default:
   617  				return nil
   618  			}
   619  		}
   620  		file_google_monitoring_v3_snooze_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   621  			switch v := v.(*GetSnoozeRequest); i {
   622  			case 0:
   623  				return &v.state
   624  			case 1:
   625  				return &v.sizeCache
   626  			case 2:
   627  				return &v.unknownFields
   628  			default:
   629  				return nil
   630  			}
   631  		}
   632  		file_google_monitoring_v3_snooze_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
   633  			switch v := v.(*UpdateSnoozeRequest); i {
   634  			case 0:
   635  				return &v.state
   636  			case 1:
   637  				return &v.sizeCache
   638  			case 2:
   639  				return &v.unknownFields
   640  			default:
   641  				return nil
   642  			}
   643  		}
   644  	}
   645  	type x struct{}
   646  	out := protoimpl.TypeBuilder{
   647  		File: protoimpl.DescBuilder{
   648  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   649  			RawDescriptor: file_google_monitoring_v3_snooze_service_proto_rawDesc,
   650  			NumEnums:      0,
   651  			NumMessages:   5,
   652  			NumExtensions: 0,
   653  			NumServices:   1,
   654  		},
   655  		GoTypes:           file_google_monitoring_v3_snooze_service_proto_goTypes,
   656  		DependencyIndexes: file_google_monitoring_v3_snooze_service_proto_depIdxs,
   657  		MessageInfos:      file_google_monitoring_v3_snooze_service_proto_msgTypes,
   658  	}.Build()
   659  	File_google_monitoring_v3_snooze_service_proto = out.File
   660  	file_google_monitoring_v3_snooze_service_proto_rawDesc = nil
   661  	file_google_monitoring_v3_snooze_service_proto_goTypes = nil
   662  	file_google_monitoring_v3_snooze_service_proto_depIdxs = nil
   663  }
   664  
   665  // Reference imports to suppress errors if they are not otherwise used.
   666  var _ context.Context
   667  var _ grpc.ClientConnInterface
   668  
   669  // This is a compile-time assertion to ensure that this generated file
   670  // is compatible with the grpc package it is being compiled against.
   671  const _ = grpc.SupportPackageIsVersion6
   672  
   673  // SnoozeServiceClient is the client API for SnoozeService service.
   674  //
   675  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   676  type SnoozeServiceClient interface {
   677  	// Creates a `Snooze` that will prevent alerts, which match the provided
   678  	// criteria, from being opened. The `Snooze` applies for a specific time
   679  	// interval.
   680  	CreateSnooze(ctx context.Context, in *CreateSnoozeRequest, opts ...grpc.CallOption) (*Snooze, error)
   681  	// Lists the `Snooze`s associated with a project. Can optionally pass in
   682  	// `filter`, which specifies predicates to match `Snooze`s.
   683  	ListSnoozes(ctx context.Context, in *ListSnoozesRequest, opts ...grpc.CallOption) (*ListSnoozesResponse, error)
   684  	// Retrieves a `Snooze` by `name`.
   685  	GetSnooze(ctx context.Context, in *GetSnoozeRequest, opts ...grpc.CallOption) (*Snooze, error)
   686  	// Updates a `Snooze`, identified by its `name`, with the parameters in the
   687  	// given `Snooze` object.
   688  	UpdateSnooze(ctx context.Context, in *UpdateSnoozeRequest, opts ...grpc.CallOption) (*Snooze, error)
   689  }
   690  
   691  type snoozeServiceClient struct {
   692  	cc grpc.ClientConnInterface
   693  }
   694  
   695  func NewSnoozeServiceClient(cc grpc.ClientConnInterface) SnoozeServiceClient {
   696  	return &snoozeServiceClient{cc}
   697  }
   698  
   699  func (c *snoozeServiceClient) CreateSnooze(ctx context.Context, in *CreateSnoozeRequest, opts ...grpc.CallOption) (*Snooze, error) {
   700  	out := new(Snooze)
   701  	err := c.cc.Invoke(ctx, "/google.monitoring.v3.SnoozeService/CreateSnooze", in, out, opts...)
   702  	if err != nil {
   703  		return nil, err
   704  	}
   705  	return out, nil
   706  }
   707  
   708  func (c *snoozeServiceClient) ListSnoozes(ctx context.Context, in *ListSnoozesRequest, opts ...grpc.CallOption) (*ListSnoozesResponse, error) {
   709  	out := new(ListSnoozesResponse)
   710  	err := c.cc.Invoke(ctx, "/google.monitoring.v3.SnoozeService/ListSnoozes", in, out, opts...)
   711  	if err != nil {
   712  		return nil, err
   713  	}
   714  	return out, nil
   715  }
   716  
   717  func (c *snoozeServiceClient) GetSnooze(ctx context.Context, in *GetSnoozeRequest, opts ...grpc.CallOption) (*Snooze, error) {
   718  	out := new(Snooze)
   719  	err := c.cc.Invoke(ctx, "/google.monitoring.v3.SnoozeService/GetSnooze", in, out, opts...)
   720  	if err != nil {
   721  		return nil, err
   722  	}
   723  	return out, nil
   724  }
   725  
   726  func (c *snoozeServiceClient) UpdateSnooze(ctx context.Context, in *UpdateSnoozeRequest, opts ...grpc.CallOption) (*Snooze, error) {
   727  	out := new(Snooze)
   728  	err := c.cc.Invoke(ctx, "/google.monitoring.v3.SnoozeService/UpdateSnooze", in, out, opts...)
   729  	if err != nil {
   730  		return nil, err
   731  	}
   732  	return out, nil
   733  }
   734  
   735  // SnoozeServiceServer is the server API for SnoozeService service.
   736  type SnoozeServiceServer interface {
   737  	// Creates a `Snooze` that will prevent alerts, which match the provided
   738  	// criteria, from being opened. The `Snooze` applies for a specific time
   739  	// interval.
   740  	CreateSnooze(context.Context, *CreateSnoozeRequest) (*Snooze, error)
   741  	// Lists the `Snooze`s associated with a project. Can optionally pass in
   742  	// `filter`, which specifies predicates to match `Snooze`s.
   743  	ListSnoozes(context.Context, *ListSnoozesRequest) (*ListSnoozesResponse, error)
   744  	// Retrieves a `Snooze` by `name`.
   745  	GetSnooze(context.Context, *GetSnoozeRequest) (*Snooze, error)
   746  	// Updates a `Snooze`, identified by its `name`, with the parameters in the
   747  	// given `Snooze` object.
   748  	UpdateSnooze(context.Context, *UpdateSnoozeRequest) (*Snooze, error)
   749  }
   750  
   751  // UnimplementedSnoozeServiceServer can be embedded to have forward compatible implementations.
   752  type UnimplementedSnoozeServiceServer struct {
   753  }
   754  
   755  func (*UnimplementedSnoozeServiceServer) CreateSnooze(context.Context, *CreateSnoozeRequest) (*Snooze, error) {
   756  	return nil, status.Errorf(codes.Unimplemented, "method CreateSnooze not implemented")
   757  }
   758  func (*UnimplementedSnoozeServiceServer) ListSnoozes(context.Context, *ListSnoozesRequest) (*ListSnoozesResponse, error) {
   759  	return nil, status.Errorf(codes.Unimplemented, "method ListSnoozes not implemented")
   760  }
   761  func (*UnimplementedSnoozeServiceServer) GetSnooze(context.Context, *GetSnoozeRequest) (*Snooze, error) {
   762  	return nil, status.Errorf(codes.Unimplemented, "method GetSnooze not implemented")
   763  }
   764  func (*UnimplementedSnoozeServiceServer) UpdateSnooze(context.Context, *UpdateSnoozeRequest) (*Snooze, error) {
   765  	return nil, status.Errorf(codes.Unimplemented, "method UpdateSnooze not implemented")
   766  }
   767  
   768  func RegisterSnoozeServiceServer(s *grpc.Server, srv SnoozeServiceServer) {
   769  	s.RegisterService(&_SnoozeService_serviceDesc, srv)
   770  }
   771  
   772  func _SnoozeService_CreateSnooze_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   773  	in := new(CreateSnoozeRequest)
   774  	if err := dec(in); err != nil {
   775  		return nil, err
   776  	}
   777  	if interceptor == nil {
   778  		return srv.(SnoozeServiceServer).CreateSnooze(ctx, in)
   779  	}
   780  	info := &grpc.UnaryServerInfo{
   781  		Server:     srv,
   782  		FullMethod: "/google.monitoring.v3.SnoozeService/CreateSnooze",
   783  	}
   784  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   785  		return srv.(SnoozeServiceServer).CreateSnooze(ctx, req.(*CreateSnoozeRequest))
   786  	}
   787  	return interceptor(ctx, in, info, handler)
   788  }
   789  
   790  func _SnoozeService_ListSnoozes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   791  	in := new(ListSnoozesRequest)
   792  	if err := dec(in); err != nil {
   793  		return nil, err
   794  	}
   795  	if interceptor == nil {
   796  		return srv.(SnoozeServiceServer).ListSnoozes(ctx, in)
   797  	}
   798  	info := &grpc.UnaryServerInfo{
   799  		Server:     srv,
   800  		FullMethod: "/google.monitoring.v3.SnoozeService/ListSnoozes",
   801  	}
   802  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   803  		return srv.(SnoozeServiceServer).ListSnoozes(ctx, req.(*ListSnoozesRequest))
   804  	}
   805  	return interceptor(ctx, in, info, handler)
   806  }
   807  
   808  func _SnoozeService_GetSnooze_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   809  	in := new(GetSnoozeRequest)
   810  	if err := dec(in); err != nil {
   811  		return nil, err
   812  	}
   813  	if interceptor == nil {
   814  		return srv.(SnoozeServiceServer).GetSnooze(ctx, in)
   815  	}
   816  	info := &grpc.UnaryServerInfo{
   817  		Server:     srv,
   818  		FullMethod: "/google.monitoring.v3.SnoozeService/GetSnooze",
   819  	}
   820  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   821  		return srv.(SnoozeServiceServer).GetSnooze(ctx, req.(*GetSnoozeRequest))
   822  	}
   823  	return interceptor(ctx, in, info, handler)
   824  }
   825  
   826  func _SnoozeService_UpdateSnooze_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   827  	in := new(UpdateSnoozeRequest)
   828  	if err := dec(in); err != nil {
   829  		return nil, err
   830  	}
   831  	if interceptor == nil {
   832  		return srv.(SnoozeServiceServer).UpdateSnooze(ctx, in)
   833  	}
   834  	info := &grpc.UnaryServerInfo{
   835  		Server:     srv,
   836  		FullMethod: "/google.monitoring.v3.SnoozeService/UpdateSnooze",
   837  	}
   838  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   839  		return srv.(SnoozeServiceServer).UpdateSnooze(ctx, req.(*UpdateSnoozeRequest))
   840  	}
   841  	return interceptor(ctx, in, info, handler)
   842  }
   843  
   844  var _SnoozeService_serviceDesc = grpc.ServiceDesc{
   845  	ServiceName: "google.monitoring.v3.SnoozeService",
   846  	HandlerType: (*SnoozeServiceServer)(nil),
   847  	Methods: []grpc.MethodDesc{
   848  		{
   849  			MethodName: "CreateSnooze",
   850  			Handler:    _SnoozeService_CreateSnooze_Handler,
   851  		},
   852  		{
   853  			MethodName: "ListSnoozes",
   854  			Handler:    _SnoozeService_ListSnoozes_Handler,
   855  		},
   856  		{
   857  			MethodName: "GetSnooze",
   858  			Handler:    _SnoozeService_GetSnooze_Handler,
   859  		},
   860  		{
   861  			MethodName: "UpdateSnooze",
   862  			Handler:    _SnoozeService_UpdateSnooze_Handler,
   863  		},
   864  	},
   865  	Streams:  []grpc.StreamDesc{},
   866  	Metadata: "google/monitoring/v3/snooze_service.proto",
   867  }
   868  

View as plain text