github.com/microsoft/moc@v0.17.1/rpc/cloudagent/security/moc_cloudagent_keyvault.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: moc_cloudagent_keyvault.proto 3 4 package security 5 6 import ( 7 context "context" 8 fmt "fmt" 9 proto "github.com/golang/protobuf/proto" 10 wrappers "github.com/golang/protobuf/ptypes/wrappers" 11 common "github.com/microsoft/moc/rpc/common" 12 grpc "google.golang.org/grpc" 13 codes "google.golang.org/grpc/codes" 14 status "google.golang.org/grpc/status" 15 math "math" 16 ) 17 18 // Reference imports to suppress errors if they are not otherwise used. 19 var _ = proto.Marshal 20 var _ = fmt.Errorf 21 var _ = math.Inf 22 23 // This is a compile-time assertion to ensure that this generated file 24 // is compatible with the proto package it is being compiled against. 25 // A compilation error at this line likely means your copy of the 26 // proto package needs to be updated. 27 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 28 29 type KeyVaultRequest struct { 30 KeyVaults []*KeyVault `protobuf:"bytes,1,rep,name=KeyVaults,proto3" json:"KeyVaults,omitempty"` 31 OperationType common.Operation `protobuf:"varint,2,opt,name=OperationType,proto3,enum=moc.Operation" json:"OperationType,omitempty"` 32 XXX_NoUnkeyedLiteral struct{} `json:"-"` 33 XXX_unrecognized []byte `json:"-"` 34 XXX_sizecache int32 `json:"-"` 35 } 36 37 func (m *KeyVaultRequest) Reset() { *m = KeyVaultRequest{} } 38 func (m *KeyVaultRequest) String() string { return proto.CompactTextString(m) } 39 func (*KeyVaultRequest) ProtoMessage() {} 40 func (*KeyVaultRequest) Descriptor() ([]byte, []int) { 41 return fileDescriptor_f4a81fa34dadcbf2, []int{0} 42 } 43 44 func (m *KeyVaultRequest) XXX_Unmarshal(b []byte) error { 45 return xxx_messageInfo_KeyVaultRequest.Unmarshal(m, b) 46 } 47 func (m *KeyVaultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 48 return xxx_messageInfo_KeyVaultRequest.Marshal(b, m, deterministic) 49 } 50 func (m *KeyVaultRequest) XXX_Merge(src proto.Message) { 51 xxx_messageInfo_KeyVaultRequest.Merge(m, src) 52 } 53 func (m *KeyVaultRequest) XXX_Size() int { 54 return xxx_messageInfo_KeyVaultRequest.Size(m) 55 } 56 func (m *KeyVaultRequest) XXX_DiscardUnknown() { 57 xxx_messageInfo_KeyVaultRequest.DiscardUnknown(m) 58 } 59 60 var xxx_messageInfo_KeyVaultRequest proto.InternalMessageInfo 61 62 func (m *KeyVaultRequest) GetKeyVaults() []*KeyVault { 63 if m != nil { 64 return m.KeyVaults 65 } 66 return nil 67 } 68 69 func (m *KeyVaultRequest) GetOperationType() common.Operation { 70 if m != nil { 71 return m.OperationType 72 } 73 return common.Operation_GET 74 } 75 76 type KeyVaultResponse struct { 77 KeyVaults []*KeyVault `protobuf:"bytes,1,rep,name=KeyVaults,proto3" json:"KeyVaults,omitempty"` 78 Result *wrappers.BoolValue `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"` 79 Error string `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"` 80 XXX_NoUnkeyedLiteral struct{} `json:"-"` 81 XXX_unrecognized []byte `json:"-"` 82 XXX_sizecache int32 `json:"-"` 83 } 84 85 func (m *KeyVaultResponse) Reset() { *m = KeyVaultResponse{} } 86 func (m *KeyVaultResponse) String() string { return proto.CompactTextString(m) } 87 func (*KeyVaultResponse) ProtoMessage() {} 88 func (*KeyVaultResponse) Descriptor() ([]byte, []int) { 89 return fileDescriptor_f4a81fa34dadcbf2, []int{1} 90 } 91 92 func (m *KeyVaultResponse) XXX_Unmarshal(b []byte) error { 93 return xxx_messageInfo_KeyVaultResponse.Unmarshal(m, b) 94 } 95 func (m *KeyVaultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 96 return xxx_messageInfo_KeyVaultResponse.Marshal(b, m, deterministic) 97 } 98 func (m *KeyVaultResponse) XXX_Merge(src proto.Message) { 99 xxx_messageInfo_KeyVaultResponse.Merge(m, src) 100 } 101 func (m *KeyVaultResponse) XXX_Size() int { 102 return xxx_messageInfo_KeyVaultResponse.Size(m) 103 } 104 func (m *KeyVaultResponse) XXX_DiscardUnknown() { 105 xxx_messageInfo_KeyVaultResponse.DiscardUnknown(m) 106 } 107 108 var xxx_messageInfo_KeyVaultResponse proto.InternalMessageInfo 109 110 func (m *KeyVaultResponse) GetKeyVaults() []*KeyVault { 111 if m != nil { 112 return m.KeyVaults 113 } 114 return nil 115 } 116 117 func (m *KeyVaultResponse) GetResult() *wrappers.BoolValue { 118 if m != nil { 119 return m.Result 120 } 121 return nil 122 } 123 124 func (m *KeyVaultResponse) GetError() string { 125 if m != nil { 126 return m.Error 127 } 128 return "" 129 } 130 131 type KeyVault struct { 132 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 133 Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 134 Secrets []*Secret `protobuf:"bytes,3,rep,name=Secrets,proto3" json:"Secrets,omitempty"` 135 GroupName string `protobuf:"bytes,4,opt,name=groupName,proto3" json:"groupName,omitempty"` 136 Status *common.Status `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` 137 LocationName string `protobuf:"bytes,10,opt,name=locationName,proto3" json:"locationName,omitempty"` 138 Tags *common.Tags `protobuf:"bytes,11,opt,name=tags,proto3" json:"tags,omitempty"` 139 XXX_NoUnkeyedLiteral struct{} `json:"-"` 140 XXX_unrecognized []byte `json:"-"` 141 XXX_sizecache int32 `json:"-"` 142 } 143 144 func (m *KeyVault) Reset() { *m = KeyVault{} } 145 func (m *KeyVault) String() string { return proto.CompactTextString(m) } 146 func (*KeyVault) ProtoMessage() {} 147 func (*KeyVault) Descriptor() ([]byte, []int) { 148 return fileDescriptor_f4a81fa34dadcbf2, []int{2} 149 } 150 151 func (m *KeyVault) XXX_Unmarshal(b []byte) error { 152 return xxx_messageInfo_KeyVault.Unmarshal(m, b) 153 } 154 func (m *KeyVault) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 155 return xxx_messageInfo_KeyVault.Marshal(b, m, deterministic) 156 } 157 func (m *KeyVault) XXX_Merge(src proto.Message) { 158 xxx_messageInfo_KeyVault.Merge(m, src) 159 } 160 func (m *KeyVault) XXX_Size() int { 161 return xxx_messageInfo_KeyVault.Size(m) 162 } 163 func (m *KeyVault) XXX_DiscardUnknown() { 164 xxx_messageInfo_KeyVault.DiscardUnknown(m) 165 } 166 167 var xxx_messageInfo_KeyVault proto.InternalMessageInfo 168 169 func (m *KeyVault) GetName() string { 170 if m != nil { 171 return m.Name 172 } 173 return "" 174 } 175 176 func (m *KeyVault) GetId() string { 177 if m != nil { 178 return m.Id 179 } 180 return "" 181 } 182 183 func (m *KeyVault) GetSecrets() []*Secret { 184 if m != nil { 185 return m.Secrets 186 } 187 return nil 188 } 189 190 func (m *KeyVault) GetGroupName() string { 191 if m != nil { 192 return m.GroupName 193 } 194 return "" 195 } 196 197 func (m *KeyVault) GetStatus() *common.Status { 198 if m != nil { 199 return m.Status 200 } 201 return nil 202 } 203 204 func (m *KeyVault) GetLocationName() string { 205 if m != nil { 206 return m.LocationName 207 } 208 return "" 209 } 210 211 func (m *KeyVault) GetTags() *common.Tags { 212 if m != nil { 213 return m.Tags 214 } 215 return nil 216 } 217 218 func init() { 219 proto.RegisterType((*KeyVaultRequest)(nil), "moc.cloudagent.security.KeyVaultRequest") 220 proto.RegisterType((*KeyVaultResponse)(nil), "moc.cloudagent.security.KeyVaultResponse") 221 proto.RegisterType((*KeyVault)(nil), "moc.cloudagent.security.KeyVault") 222 } 223 224 func init() { proto.RegisterFile("moc_cloudagent_keyvault.proto", fileDescriptor_f4a81fa34dadcbf2) } 225 226 var fileDescriptor_f4a81fa34dadcbf2 = []byte{ 227 // 442 bytes of a gzipped FileDescriptorProto 228 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0x4f, 0x6f, 0xd3, 0x4c, 229 0x10, 0xc6, 0x5f, 0x27, 0x69, 0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, 0x5a, 0x46, 0xab, 0x79, 0x3e, 0x27, 0xc8, 0x75, 241 0x45, 0xdc, 0x34, 0xa5, 0x3f, 0x22, 0xb8, 0x3f, 0x44, 0x71, 0x06, 0x1b, 0xa7, 0xff, 0x3d, 0x4b, 242 0x0e, 0x53, 0xa1, 0x5d, 0xa8, 0x3c, 0x85, 0x98, 0xe5, 0x0b, 0xde, 0xce, 0x91, 0xf7, 0x73, 0xe4, 243 0x27, 0x88, 0xd5, 0xb9, 0xac, 0x82, 0x16, 0x9d, 0x93, 0x3d, 0x80, 0x83, 0x77, 0xd6, 0xa2, 0x4d, 244 0xc6, 0xcb, 0x68, 0x15, 0x8b, 0xf6, 0x23, 0xfd, 0x19, 0xc1, 0x9d, 0x9e, 0xcb, 0x18, 0x4c, 0x1a, 245 0x59, 0xeb, 0x24, 0x22, 0x07, 0xbd, 0xb3, 0x39, 0x8c, 0xca, 0x2d, 0xb5, 0x89, 0xc5, 0xa8, 0xdc, 246 0xb2, 0xd7, 0xf0, 0xff, 0x29, 0xcd, 0xda, 0x25, 0x63, 0x4a, 0xfe, 0xe4, 0xd6, 0xe4, 0xad, 0x4f, 247 0xf4, 0x7e, 0xf6, 0x08, 0xe2, 0xc2, 0x62, 0x30, 0x1f, 0xf7, 0x3d, 0x26, 0x44, 0x1c, 0x04, 0xf6, 248 0x0c, 0xa6, 0xce, 0x4b, 0x1f, 0x5c, 0x72, 0x40, 0x77, 0x9a, 0x11, 0xf7, 0x94, 0x24, 0xd1, 0x95, 249 0x58, 0x0a, 0x77, 0x2b, 0x54, 0x34, 0x5e, 0xa2, 0x00, 0x51, 0x6e, 0x68, 0xec, 0x18, 0x26, 0x5e, 250 0x16, 0x2e, 0x99, 0x11, 0x26, 0x26, 0xcc, 0x99, 0x2c, 0x9c, 0x20, 0x39, 0x37, 0x70, 0xd8, 0x5f, 251 0xf8, 0xed, 0x3e, 0x2f, 0x5b, 0xc3, 0xf4, 0x7d, 0x73, 0x85, 0x97, 0x9a, 0xad, 0xfe, 0xbc, 0x84, 252 0xf6, 0x6f, 0x5a, 0x3c, 0xff, 0x0b, 0x67, 0xbb, 0xec, 0xf4, 0xbf, 0x93, 0xfc, 0xf3, 0x8b, 0xa2, 253 0xf4, 0x5f, 0xc2, 0x86, 0x2b, 0xac, 0xb3, 0xba, 0x54, 0x16, 0x1d, 0x5e, 0xf8, 0xac, 0x46, 0x95, 254 0x59, 0xa3, 0xb2, 0x01, 0x93, 0xf5, 0x98, 0xcd, 0x94, 0x36, 0xf9, 0xf2, 0x57, 0x00, 0x00, 0x00, 255 0xff, 0xff, 0x30, 0x51, 0xa2, 0xd7, 0x59, 0x03, 0x00, 0x00, 256 } 257 258 // Reference imports to suppress errors if they are not otherwise used. 259 var _ context.Context 260 var _ grpc.ClientConn 261 262 // This is a compile-time assertion to ensure that this generated file 263 // is compatible with the grpc package it is being compiled against. 264 const _ = grpc.SupportPackageIsVersion4 265 266 // KeyVaultAgentClient is the client API for KeyVaultAgent service. 267 // 268 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 269 type KeyVaultAgentClient interface { 270 Invoke(ctx context.Context, in *KeyVaultRequest, opts ...grpc.CallOption) (*KeyVaultResponse, error) 271 } 272 273 type keyVaultAgentClient struct { 274 cc *grpc.ClientConn 275 } 276 277 func NewKeyVaultAgentClient(cc *grpc.ClientConn) KeyVaultAgentClient { 278 return &keyVaultAgentClient{cc} 279 } 280 281 func (c *keyVaultAgentClient) Invoke(ctx context.Context, in *KeyVaultRequest, opts ...grpc.CallOption) (*KeyVaultResponse, error) { 282 out := new(KeyVaultResponse) 283 err := c.cc.Invoke(ctx, "/moc.cloudagent.security.KeyVaultAgent/Invoke", in, out, opts...) 284 if err != nil { 285 return nil, err 286 } 287 return out, nil 288 } 289 290 // KeyVaultAgentServer is the server API for KeyVaultAgent service. 291 type KeyVaultAgentServer interface { 292 Invoke(context.Context, *KeyVaultRequest) (*KeyVaultResponse, error) 293 } 294 295 // UnimplementedKeyVaultAgentServer can be embedded to have forward compatible implementations. 296 type UnimplementedKeyVaultAgentServer struct { 297 } 298 299 func (*UnimplementedKeyVaultAgentServer) Invoke(ctx context.Context, req *KeyVaultRequest) (*KeyVaultResponse, error) { 300 return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented") 301 } 302 303 func RegisterKeyVaultAgentServer(s *grpc.Server, srv KeyVaultAgentServer) { 304 s.RegisterService(&_KeyVaultAgent_serviceDesc, srv) 305 } 306 307 func _KeyVaultAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 308 in := new(KeyVaultRequest) 309 if err := dec(in); err != nil { 310 return nil, err 311 } 312 if interceptor == nil { 313 return srv.(KeyVaultAgentServer).Invoke(ctx, in) 314 } 315 info := &grpc.UnaryServerInfo{ 316 Server: srv, 317 FullMethod: "/moc.cloudagent.security.KeyVaultAgent/Invoke", 318 } 319 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 320 return srv.(KeyVaultAgentServer).Invoke(ctx, req.(*KeyVaultRequest)) 321 } 322 return interceptor(ctx, in, info, handler) 323 } 324 325 var _KeyVaultAgent_serviceDesc = grpc.ServiceDesc{ 326 ServiceName: "moc.cloudagent.security.KeyVaultAgent", 327 HandlerType: (*KeyVaultAgentServer)(nil), 328 Methods: []grpc.MethodDesc{ 329 { 330 MethodName: "Invoke", 331 Handler: _KeyVaultAgent_Invoke_Handler, 332 }, 333 }, 334 Streams: []grpc.StreamDesc{}, 335 Metadata: "moc_cloudagent_keyvault.proto", 336 }