...

Source file src/google.golang.org/genproto/googleapis/cloud/secretmanager/logging/v1/secret_event.pb.go

Documentation: google.golang.org/genproto/googleapis/cloud/secretmanager/logging/v1

     1  // Copyright 2021 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.26.0
    18  // 	protoc        v3.12.2
    19  // source: google/cloud/secretmanager/logging/v1/secret_event.proto
    20  
    21  package logging
    22  
    23  import (
    24  	reflect "reflect"
    25  	sync "sync"
    26  
    27  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    28  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    29  )
    30  
    31  const (
    32  	// Verify that this generated code is sufficiently up-to-date.
    33  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    34  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    36  )
    37  
    38  // Describes the type of event that is being logged. All logs have exactly one
    39  // EventType.
    40  type SecretEvent_EventType int32
    41  
    42  const (
    43  	// An unrecognized event type. Should never be used.
    44  	SecretEvent_EVENT_TYPE_UNSPECIFIED SecretEvent_EventType = 0
    45  	// The secret is scheduled to expire in 30 days.
    46  	SecretEvent_EXPIRES_IN_30_DAYS SecretEvent_EventType = 1
    47  	// The secret is scheduled to expire in 7 days.
    48  	SecretEvent_EXPIRES_IN_7_DAYS SecretEvent_EventType = 2
    49  	// The secret is scheduled to expire in 1 day.
    50  	SecretEvent_EXPIRES_IN_1_DAY SecretEvent_EventType = 3
    51  	// The secret is scheduled to expire in 6 hours.
    52  	SecretEvent_EXPIRES_IN_6_HOURS SecretEvent_EventType = 4
    53  	// The secret is scheduled to expire in 1 hour.
    54  	SecretEvent_EXPIRES_IN_1_HOUR SecretEvent_EventType = 5
    55  	// The secret's expire-time has passed and it has expired.
    56  	SecretEvent_EXPIRED SecretEvent_EventType = 6
    57  	// A Pub/Sub topic configured on the secret could not be found.
    58  	SecretEvent_TOPIC_NOT_FOUND SecretEvent_EventType = 7
    59  	// A Pub/Sub topic configured on the secret does not have the needed
    60  	// permissions. The Secret Manager P4SA must be granted
    61  	// 'pubsub.topic.publish' permission (or 'roles/pubsub.publisher') on the
    62  	// topic.
    63  	SecretEvent_TOPIC_PERMISSION_DENIED SecretEvent_EventType = 8
    64  )
    65  
    66  // Enum value maps for SecretEvent_EventType.
    67  var (
    68  	SecretEvent_EventType_name = map[int32]string{
    69  		0: "EVENT_TYPE_UNSPECIFIED",
    70  		1: "EXPIRES_IN_30_DAYS",
    71  		2: "EXPIRES_IN_7_DAYS",
    72  		3: "EXPIRES_IN_1_DAY",
    73  		4: "EXPIRES_IN_6_HOURS",
    74  		5: "EXPIRES_IN_1_HOUR",
    75  		6: "EXPIRED",
    76  		7: "TOPIC_NOT_FOUND",
    77  		8: "TOPIC_PERMISSION_DENIED",
    78  	}
    79  	SecretEvent_EventType_value = map[string]int32{
    80  		"EVENT_TYPE_UNSPECIFIED":  0,
    81  		"EXPIRES_IN_30_DAYS":      1,
    82  		"EXPIRES_IN_7_DAYS":       2,
    83  		"EXPIRES_IN_1_DAY":        3,
    84  		"EXPIRES_IN_6_HOURS":      4,
    85  		"EXPIRES_IN_1_HOUR":       5,
    86  		"EXPIRED":                 6,
    87  		"TOPIC_NOT_FOUND":         7,
    88  		"TOPIC_PERMISSION_DENIED": 8,
    89  	}
    90  )
    91  
    92  func (x SecretEvent_EventType) Enum() *SecretEvent_EventType {
    93  	p := new(SecretEvent_EventType)
    94  	*p = x
    95  	return p
    96  }
    97  
    98  func (x SecretEvent_EventType) String() string {
    99  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
   100  }
   101  
   102  func (SecretEvent_EventType) Descriptor() protoreflect.EnumDescriptor {
   103  	return file_google_cloud_secretmanager_logging_v1_secret_event_proto_enumTypes[0].Descriptor()
   104  }
   105  
   106  func (SecretEvent_EventType) Type() protoreflect.EnumType {
   107  	return &file_google_cloud_secretmanager_logging_v1_secret_event_proto_enumTypes[0]
   108  }
   109  
   110  func (x SecretEvent_EventType) Number() protoreflect.EnumNumber {
   111  	return protoreflect.EnumNumber(x)
   112  }
   113  
   114  // Deprecated: Use SecretEvent_EventType.Descriptor instead.
   115  func (SecretEvent_EventType) EnumDescriptor() ([]byte, []int) {
   116  	return file_google_cloud_secretmanager_logging_v1_secret_event_proto_rawDescGZIP(), []int{0, 0}
   117  }
   118  
   119  // Logged event relating to a specific secret
   120  type SecretEvent struct {
   121  	state         protoimpl.MessageState
   122  	sizeCache     protoimpl.SizeCache
   123  	unknownFields protoimpl.UnknownFields
   124  
   125  	// Resource name of the secret in the format `projects/*/secrets/*`
   126  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   127  	// Type of event that is being logged for the secret
   128  	Type SecretEvent_EventType `protobuf:"varint,2,opt,name=type,proto3,enum=google.cloud.secretmanager.logging.v1.SecretEvent_EventType" json:"type,omitempty"`
   129  	// Human readable message describing the event
   130  	LogMessage string `protobuf:"bytes,3,opt,name=log_message,json=logMessage,proto3" json:"log_message,omitempty"`
   131  }
   132  
   133  func (x *SecretEvent) Reset() {
   134  	*x = SecretEvent{}
   135  	if protoimpl.UnsafeEnabled {
   136  		mi := &file_google_cloud_secretmanager_logging_v1_secret_event_proto_msgTypes[0]
   137  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   138  		ms.StoreMessageInfo(mi)
   139  	}
   140  }
   141  
   142  func (x *SecretEvent) String() string {
   143  	return protoimpl.X.MessageStringOf(x)
   144  }
   145  
   146  func (*SecretEvent) ProtoMessage() {}
   147  
   148  func (x *SecretEvent) ProtoReflect() protoreflect.Message {
   149  	mi := &file_google_cloud_secretmanager_logging_v1_secret_event_proto_msgTypes[0]
   150  	if protoimpl.UnsafeEnabled && x != nil {
   151  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   152  		if ms.LoadMessageInfo() == nil {
   153  			ms.StoreMessageInfo(mi)
   154  		}
   155  		return ms
   156  	}
   157  	return mi.MessageOf(x)
   158  }
   159  
   160  // Deprecated: Use SecretEvent.ProtoReflect.Descriptor instead.
   161  func (*SecretEvent) Descriptor() ([]byte, []int) {
   162  	return file_google_cloud_secretmanager_logging_v1_secret_event_proto_rawDescGZIP(), []int{0}
   163  }
   164  
   165  func (x *SecretEvent) GetName() string {
   166  	if x != nil {
   167  		return x.Name
   168  	}
   169  	return ""
   170  }
   171  
   172  func (x *SecretEvent) GetType() SecretEvent_EventType {
   173  	if x != nil {
   174  		return x.Type
   175  	}
   176  	return SecretEvent_EVENT_TYPE_UNSPECIFIED
   177  }
   178  
   179  func (x *SecretEvent) GetLogMessage() string {
   180  	if x != nil {
   181  		return x.LogMessage
   182  	}
   183  	return ""
   184  }
   185  
   186  var File_google_cloud_secretmanager_logging_v1_secret_event_proto protoreflect.FileDescriptor
   187  
   188  var file_google_cloud_secretmanager_logging_v1_secret_event_proto_rawDesc = []byte{
   189  	0x0a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
   190  	0x65, 0x63, 0x72, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x6c, 0x6f, 0x67,
   191  	0x67, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x65,
   192  	0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x25, 0x67, 0x6f, 0x6f, 0x67,
   193  	0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x6d,
   194  	0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76,
   195  	0x31, 0x22, 0xf1, 0x02, 0x0a, 0x0b, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e,
   196  	0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
   197  	0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x50, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20,
   198  	0x01, 0x28, 0x0e, 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
   199  	0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72,
   200  	0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72,
   201  	0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70,
   202  	0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x6f, 0x67, 0x5f, 0x6d,
   203  	0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6c, 0x6f,
   204  	0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xda, 0x01, 0x0a, 0x09, 0x45, 0x76, 0x65,
   205  	0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f,
   206  	0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,
   207  	0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x45, 0x58, 0x50, 0x49, 0x52, 0x45, 0x53, 0x5f, 0x49, 0x4e,
   208  	0x5f, 0x33, 0x30, 0x5f, 0x44, 0x41, 0x59, 0x53, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x45, 0x58,
   209  	0x50, 0x49, 0x52, 0x45, 0x53, 0x5f, 0x49, 0x4e, 0x5f, 0x37, 0x5f, 0x44, 0x41, 0x59, 0x53, 0x10,
   210  	0x02, 0x12, 0x14, 0x0a, 0x10, 0x45, 0x58, 0x50, 0x49, 0x52, 0x45, 0x53, 0x5f, 0x49, 0x4e, 0x5f,
   211  	0x31, 0x5f, 0x44, 0x41, 0x59, 0x10, 0x03, 0x12, 0x16, 0x0a, 0x12, 0x45, 0x58, 0x50, 0x49, 0x52,
   212  	0x45, 0x53, 0x5f, 0x49, 0x4e, 0x5f, 0x36, 0x5f, 0x48, 0x4f, 0x55, 0x52, 0x53, 0x10, 0x04, 0x12,
   213  	0x15, 0x0a, 0x11, 0x45, 0x58, 0x50, 0x49, 0x52, 0x45, 0x53, 0x5f, 0x49, 0x4e, 0x5f, 0x31, 0x5f,
   214  	0x48, 0x4f, 0x55, 0x52, 0x10, 0x05, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x58, 0x50, 0x49, 0x52, 0x45,
   215  	0x44, 0x10, 0x06, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x4f, 0x50, 0x49, 0x43, 0x5f, 0x4e, 0x4f, 0x54,
   216  	0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x07, 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x4f, 0x50, 0x49,
   217  	0x43, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x45, 0x4e,
   218  	0x49, 0x45, 0x44, 0x10, 0x08, 0x42, 0x89, 0x02, 0x0a, 0x29, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f,
   219  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x72, 0x65,
   220  	0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67,
   221  	0x2e, 0x76, 0x31, 0x42, 0x10, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74,
   222  	0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   223  	0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72,
   224  	0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63,
   225  	0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67,
   226  	0x65, 0x72, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x6c, 0x6f,
   227  	0x67, 0x67, 0x69, 0x6e, 0x67, 0xaa, 0x02, 0x25, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43,
   228  	0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67,
   229  	0x65, 0x72, 0x2e, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x25,
   230  	0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x65, 0x63,
   231  	0x72, 0x65, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x5c, 0x4c, 0x6f, 0x67, 0x67, 0x69,
   232  	0x6e, 0x67, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x29, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a,
   233  	0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4d, 0x61, 0x6e,
   234  	0x61, 0x67, 0x65, 0x72, 0x3a, 0x3a, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x56,
   235  	0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   236  }
   237  
   238  var (
   239  	file_google_cloud_secretmanager_logging_v1_secret_event_proto_rawDescOnce sync.Once
   240  	file_google_cloud_secretmanager_logging_v1_secret_event_proto_rawDescData = file_google_cloud_secretmanager_logging_v1_secret_event_proto_rawDesc
   241  )
   242  
   243  func file_google_cloud_secretmanager_logging_v1_secret_event_proto_rawDescGZIP() []byte {
   244  	file_google_cloud_secretmanager_logging_v1_secret_event_proto_rawDescOnce.Do(func() {
   245  		file_google_cloud_secretmanager_logging_v1_secret_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_secretmanager_logging_v1_secret_event_proto_rawDescData)
   246  	})
   247  	return file_google_cloud_secretmanager_logging_v1_secret_event_proto_rawDescData
   248  }
   249  
   250  var file_google_cloud_secretmanager_logging_v1_secret_event_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   251  var file_google_cloud_secretmanager_logging_v1_secret_event_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   252  var file_google_cloud_secretmanager_logging_v1_secret_event_proto_goTypes = []interface{}{
   253  	(SecretEvent_EventType)(0), // 0: google.cloud.secretmanager.logging.v1.SecretEvent.EventType
   254  	(*SecretEvent)(nil),        // 1: google.cloud.secretmanager.logging.v1.SecretEvent
   255  }
   256  var file_google_cloud_secretmanager_logging_v1_secret_event_proto_depIdxs = []int32{
   257  	0, // 0: google.cloud.secretmanager.logging.v1.SecretEvent.type:type_name -> google.cloud.secretmanager.logging.v1.SecretEvent.EventType
   258  	1, // [1:1] is the sub-list for method output_type
   259  	1, // [1:1] is the sub-list for method input_type
   260  	1, // [1:1] is the sub-list for extension type_name
   261  	1, // [1:1] is the sub-list for extension extendee
   262  	0, // [0:1] is the sub-list for field type_name
   263  }
   264  
   265  func init() { file_google_cloud_secretmanager_logging_v1_secret_event_proto_init() }
   266  func file_google_cloud_secretmanager_logging_v1_secret_event_proto_init() {
   267  	if File_google_cloud_secretmanager_logging_v1_secret_event_proto != nil {
   268  		return
   269  	}
   270  	if !protoimpl.UnsafeEnabled {
   271  		file_google_cloud_secretmanager_logging_v1_secret_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   272  			switch v := v.(*SecretEvent); i {
   273  			case 0:
   274  				return &v.state
   275  			case 1:
   276  				return &v.sizeCache
   277  			case 2:
   278  				return &v.unknownFields
   279  			default:
   280  				return nil
   281  			}
   282  		}
   283  	}
   284  	type x struct{}
   285  	out := protoimpl.TypeBuilder{
   286  		File: protoimpl.DescBuilder{
   287  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   288  			RawDescriptor: file_google_cloud_secretmanager_logging_v1_secret_event_proto_rawDesc,
   289  			NumEnums:      1,
   290  			NumMessages:   1,
   291  			NumExtensions: 0,
   292  			NumServices:   0,
   293  		},
   294  		GoTypes:           file_google_cloud_secretmanager_logging_v1_secret_event_proto_goTypes,
   295  		DependencyIndexes: file_google_cloud_secretmanager_logging_v1_secret_event_proto_depIdxs,
   296  		EnumInfos:         file_google_cloud_secretmanager_logging_v1_secret_event_proto_enumTypes,
   297  		MessageInfos:      file_google_cloud_secretmanager_logging_v1_secret_event_proto_msgTypes,
   298  	}.Build()
   299  	File_google_cloud_secretmanager_logging_v1_secret_event_proto = out.File
   300  	file_google_cloud_secretmanager_logging_v1_secret_event_proto_rawDesc = nil
   301  	file_google_cloud_secretmanager_logging_v1_secret_event_proto_goTypes = nil
   302  	file_google_cloud_secretmanager_logging_v1_secret_event_proto_depIdxs = nil
   303  }
   304  

View as plain text