proto/dam/v1/dam_secrets.pb.go (272 lines of code) (raw):

// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.33.0 // protoc v5.26.1 // source: proto/dam/v1/dam_secrets.proto // Package dam provides protocol buffer versions of the DAM API, allowing // end points to receive requests and returns responses using these messages. package v1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) 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) ) type DamSecrets struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` Revision int64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"` CommitTime float64 `protobuf:"fixed64,3,opt,name=commit_time,json=commitTime,proto3" json:"commit_time,omitempty"` ClientSecrets map[string]string `protobuf:"bytes,4,rep,name=client_secrets,json=clientSecrets,proto3" json:"client_secrets,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` BrokerSecrets map[string]string `protobuf:"bytes,7,rep,name=broker_secrets,json=brokerSecrets,proto3" json:"broker_secrets,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Deprecated: Marked as deprecated in proto/dam/v1/dam_secrets.proto. PublicTokenKeys map[string]string `protobuf:"bytes,5,rep,name=public_token_keys,json=publicTokenKeys,proto3" json:"public_token_keys,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Deprecated: Marked as deprecated in proto/dam/v1/dam_secrets.proto. GatekeeperTokenKeys *DamSecrets_GatekeeperTokenKeys `protobuf:"bytes,6,opt,name=gatekeeper_token_keys,json=gatekeeperTokenKeys,proto3" json:"gatekeeper_token_keys,omitempty"` } func (x *DamSecrets) Reset() { *x = DamSecrets{} if protoimpl.UnsafeEnabled { mi := &file_proto_dam_v1_dam_secrets_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DamSecrets) String() string { return protoimpl.X.MessageStringOf(x) } func (*DamSecrets) ProtoMessage() {} func (x *DamSecrets) ProtoReflect() protoreflect.Message { mi := &file_proto_dam_v1_dam_secrets_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 DamSecrets.ProtoReflect.Descriptor instead. func (*DamSecrets) Descriptor() ([]byte, []int) { return file_proto_dam_v1_dam_secrets_proto_rawDescGZIP(), []int{0} } func (x *DamSecrets) GetVersion() string { if x != nil { return x.Version } return "" } func (x *DamSecrets) GetRevision() int64 { if x != nil { return x.Revision } return 0 } func (x *DamSecrets) GetCommitTime() float64 { if x != nil { return x.CommitTime } return 0 } func (x *DamSecrets) GetClientSecrets() map[string]string { if x != nil { return x.ClientSecrets } return nil } func (x *DamSecrets) GetBrokerSecrets() map[string]string { if x != nil { return x.BrokerSecrets } return nil } // Deprecated: Marked as deprecated in proto/dam/v1/dam_secrets.proto. func (x *DamSecrets) GetPublicTokenKeys() map[string]string { if x != nil { return x.PublicTokenKeys } return nil } // Deprecated: Marked as deprecated in proto/dam/v1/dam_secrets.proto. func (x *DamSecrets) GetGatekeeperTokenKeys() *DamSecrets_GatekeeperTokenKeys { if x != nil { return x.GatekeeperTokenKeys } return nil } type DamSecrets_GatekeeperTokenKeys struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields PrivateKey string `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` PublicKey string `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` } func (x *DamSecrets_GatekeeperTokenKeys) Reset() { *x = DamSecrets_GatekeeperTokenKeys{} if protoimpl.UnsafeEnabled { mi := &file_proto_dam_v1_dam_secrets_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DamSecrets_GatekeeperTokenKeys) String() string { return protoimpl.X.MessageStringOf(x) } func (*DamSecrets_GatekeeperTokenKeys) ProtoMessage() {} func (x *DamSecrets_GatekeeperTokenKeys) ProtoReflect() protoreflect.Message { mi := &file_proto_dam_v1_dam_secrets_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 DamSecrets_GatekeeperTokenKeys.ProtoReflect.Descriptor instead. func (*DamSecrets_GatekeeperTokenKeys) Descriptor() ([]byte, []int) { return file_proto_dam_v1_dam_secrets_proto_rawDescGZIP(), []int{0, 3} } func (x *DamSecrets_GatekeeperTokenKeys) GetPrivateKey() string { if x != nil { return x.PrivateKey } return "" } func (x *DamSecrets_GatekeeperTokenKeys) GetPublicKey() string { if x != nil { return x.PublicKey } return "" } var File_proto_dam_v1_dam_secrets_proto protoreflect.FileDescriptor var file_proto_dam_v1_dam_secrets_proto_rawDesc = []byte{ 0x0a, 0x1e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x64, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x6d, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x64, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x22, 0xd7, 0x05, 0x0a, 0x0a, 0x44, 0x61, 0x6d, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x4c, 0x0a, 0x0e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x64, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x6d, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0x4c, 0x0a, 0x0e, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x64, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x6d, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2e, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0x57, 0x0a, 0x11, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x64, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x6d, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x5e, 0x0a, 0x15, 0x67, 0x61, 0x74, 0x65, 0x6b, 0x65, 0x65, 0x70, 0x65, 0x72, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x6d, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x6b, 0x65, 0x65, 0x70, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x42, 0x02, 0x18, 0x01, 0x52, 0x13, 0x67, 0x61, 0x74, 0x65, 0x6b, 0x65, 0x65, 0x70, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x1a, 0x40, 0x0a, 0x12, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x40, 0x0a, 0x12, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x42, 0x0a, 0x14, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x55, 0x0a, 0x13, 0x47, 0x61, 0x74, 0x65, 0x6b, 0x65, 0x65, 0x70, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, 0x52, 0x5a, 0x50, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x63, 0x61, 0x72, 0x65, 0x2d, 0x66, 0x65, 0x64, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x64, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_proto_dam_v1_dam_secrets_proto_rawDescOnce sync.Once file_proto_dam_v1_dam_secrets_proto_rawDescData = file_proto_dam_v1_dam_secrets_proto_rawDesc ) func file_proto_dam_v1_dam_secrets_proto_rawDescGZIP() []byte { file_proto_dam_v1_dam_secrets_proto_rawDescOnce.Do(func() { file_proto_dam_v1_dam_secrets_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_dam_v1_dam_secrets_proto_rawDescData) }) return file_proto_dam_v1_dam_secrets_proto_rawDescData } var file_proto_dam_v1_dam_secrets_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_proto_dam_v1_dam_secrets_proto_goTypes = []interface{}{ (*DamSecrets)(nil), // 0: dam.v1.DamSecrets nil, // 1: dam.v1.DamSecrets.ClientSecretsEntry nil, // 2: dam.v1.DamSecrets.BrokerSecretsEntry nil, // 3: dam.v1.DamSecrets.PublicTokenKeysEntry (*DamSecrets_GatekeeperTokenKeys)(nil), // 4: dam.v1.DamSecrets.GatekeeperTokenKeys } var file_proto_dam_v1_dam_secrets_proto_depIdxs = []int32{ 1, // 0: dam.v1.DamSecrets.client_secrets:type_name -> dam.v1.DamSecrets.ClientSecretsEntry 2, // 1: dam.v1.DamSecrets.broker_secrets:type_name -> dam.v1.DamSecrets.BrokerSecretsEntry 3, // 2: dam.v1.DamSecrets.public_token_keys:type_name -> dam.v1.DamSecrets.PublicTokenKeysEntry 4, // 3: dam.v1.DamSecrets.gatekeeper_token_keys:type_name -> dam.v1.DamSecrets.GatekeeperTokenKeys 4, // [4:4] is the sub-list for method output_type 4, // [4:4] is the sub-list for method input_type 4, // [4:4] is the sub-list for extension type_name 4, // [4:4] is the sub-list for extension extendee 0, // [0:4] is the sub-list for field type_name } func init() { file_proto_dam_v1_dam_secrets_proto_init() } func file_proto_dam_v1_dam_secrets_proto_init() { if File_proto_dam_v1_dam_secrets_proto != nil { return } if !protoimpl.UnsafeEnabled { file_proto_dam_v1_dam_secrets_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DamSecrets); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_proto_dam_v1_dam_secrets_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DamSecrets_GatekeeperTokenKeys); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_proto_dam_v1_dam_secrets_proto_rawDesc, NumEnums: 0, NumMessages: 5, NumExtensions: 0, NumServices: 0, }, GoTypes: file_proto_dam_v1_dam_secrets_proto_goTypes, DependencyIndexes: file_proto_dam_v1_dam_secrets_proto_depIdxs, MessageInfos: file_proto_dam_v1_dam_secrets_proto_msgTypes, }.Build() File_proto_dam_v1_dam_secrets_proto = out.File file_proto_dam_v1_dam_secrets_proto_rawDesc = nil file_proto_dam_v1_dam_secrets_proto_goTypes = nil file_proto_dam_v1_dam_secrets_proto_depIdxs = nil }