github.com/microsoft/moc@v0.17.1/rpc/cloudagent/compute/moc_cloudagent_availabilityset.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: moc_cloudagent_availabilityset.proto 3 4 package compute 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 AvailabilitySetRequest struct { 30 AvailabilitySets []*AvailabilitySet `protobuf:"bytes,1,rep,name=AvailabilitySets,proto3" json:"AvailabilitySets,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 *AvailabilitySetRequest) Reset() { *m = AvailabilitySetRequest{} } 38 func (m *AvailabilitySetRequest) String() string { return proto.CompactTextString(m) } 39 func (*AvailabilitySetRequest) ProtoMessage() {} 40 func (*AvailabilitySetRequest) Descriptor() ([]byte, []int) { 41 return fileDescriptor_f2024bad12ef389f, []int{0} 42 } 43 44 func (m *AvailabilitySetRequest) XXX_Unmarshal(b []byte) error { 45 return xxx_messageInfo_AvailabilitySetRequest.Unmarshal(m, b) 46 } 47 func (m *AvailabilitySetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 48 return xxx_messageInfo_AvailabilitySetRequest.Marshal(b, m, deterministic) 49 } 50 func (m *AvailabilitySetRequest) XXX_Merge(src proto.Message) { 51 xxx_messageInfo_AvailabilitySetRequest.Merge(m, src) 52 } 53 func (m *AvailabilitySetRequest) XXX_Size() int { 54 return xxx_messageInfo_AvailabilitySetRequest.Size(m) 55 } 56 func (m *AvailabilitySetRequest) XXX_DiscardUnknown() { 57 xxx_messageInfo_AvailabilitySetRequest.DiscardUnknown(m) 58 } 59 60 var xxx_messageInfo_AvailabilitySetRequest proto.InternalMessageInfo 61 62 func (m *AvailabilitySetRequest) GetAvailabilitySets() []*AvailabilitySet { 63 if m != nil { 64 return m.AvailabilitySets 65 } 66 return nil 67 } 68 69 func (m *AvailabilitySetRequest) GetOperationType() common.Operation { 70 if m != nil { 71 return m.OperationType 72 } 73 return common.Operation_GET 74 } 75 76 type AvailabilitySetResponse struct { 77 AvailabilitySets []*AvailabilitySet `protobuf:"bytes,1,rep,name=AvailabilitySets,proto3" json:"AvailabilitySets,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 *AvailabilitySetResponse) Reset() { *m = AvailabilitySetResponse{} } 86 func (m *AvailabilitySetResponse) String() string { return proto.CompactTextString(m) } 87 func (*AvailabilitySetResponse) ProtoMessage() {} 88 func (*AvailabilitySetResponse) Descriptor() ([]byte, []int) { 89 return fileDescriptor_f2024bad12ef389f, []int{1} 90 } 91 92 func (m *AvailabilitySetResponse) XXX_Unmarshal(b []byte) error { 93 return xxx_messageInfo_AvailabilitySetResponse.Unmarshal(m, b) 94 } 95 func (m *AvailabilitySetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 96 return xxx_messageInfo_AvailabilitySetResponse.Marshal(b, m, deterministic) 97 } 98 func (m *AvailabilitySetResponse) XXX_Merge(src proto.Message) { 99 xxx_messageInfo_AvailabilitySetResponse.Merge(m, src) 100 } 101 func (m *AvailabilitySetResponse) XXX_Size() int { 102 return xxx_messageInfo_AvailabilitySetResponse.Size(m) 103 } 104 func (m *AvailabilitySetResponse) XXX_DiscardUnknown() { 105 xxx_messageInfo_AvailabilitySetResponse.DiscardUnknown(m) 106 } 107 108 var xxx_messageInfo_AvailabilitySetResponse proto.InternalMessageInfo 109 110 func (m *AvailabilitySetResponse) GetAvailabilitySets() []*AvailabilitySet { 111 if m != nil { 112 return m.AvailabilitySets 113 } 114 return nil 115 } 116 117 func (m *AvailabilitySetResponse) GetResult() *wrappers.BoolValue { 118 if m != nil { 119 return m.Result 120 } 121 return nil 122 } 123 124 func (m *AvailabilitySetResponse) GetError() string { 125 if m != nil { 126 return m.Error 127 } 128 return "" 129 } 130 131 type VirtualMachineReference struct { 132 GroupName string `protobuf:"bytes,1,opt,name=groupName,proto3" json:"groupName,omitempty"` 133 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` 134 RealizedName string `protobuf:"bytes,3,opt,name=realizedName,proto3" json:"realizedName,omitempty"` 135 XXX_NoUnkeyedLiteral struct{} `json:"-"` 136 XXX_unrecognized []byte `json:"-"` 137 XXX_sizecache int32 `json:"-"` 138 } 139 140 func (m *VirtualMachineReference) Reset() { *m = VirtualMachineReference{} } 141 func (m *VirtualMachineReference) String() string { return proto.CompactTextString(m) } 142 func (*VirtualMachineReference) ProtoMessage() {} 143 func (*VirtualMachineReference) Descriptor() ([]byte, []int) { 144 return fileDescriptor_f2024bad12ef389f, []int{2} 145 } 146 147 func (m *VirtualMachineReference) XXX_Unmarshal(b []byte) error { 148 return xxx_messageInfo_VirtualMachineReference.Unmarshal(m, b) 149 } 150 func (m *VirtualMachineReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 151 return xxx_messageInfo_VirtualMachineReference.Marshal(b, m, deterministic) 152 } 153 func (m *VirtualMachineReference) XXX_Merge(src proto.Message) { 154 xxx_messageInfo_VirtualMachineReference.Merge(m, src) 155 } 156 func (m *VirtualMachineReference) XXX_Size() int { 157 return xxx_messageInfo_VirtualMachineReference.Size(m) 158 } 159 func (m *VirtualMachineReference) XXX_DiscardUnknown() { 160 xxx_messageInfo_VirtualMachineReference.DiscardUnknown(m) 161 } 162 163 var xxx_messageInfo_VirtualMachineReference proto.InternalMessageInfo 164 165 func (m *VirtualMachineReference) GetGroupName() string { 166 if m != nil { 167 return m.GroupName 168 } 169 return "" 170 } 171 172 func (m *VirtualMachineReference) GetName() string { 173 if m != nil { 174 return m.Name 175 } 176 return "" 177 } 178 179 func (m *VirtualMachineReference) GetRealizedName() string { 180 if m != nil { 181 return m.RealizedName 182 } 183 return "" 184 } 185 186 // avset structure is a flattened version of the model in the Azure sdk for go at 187 // https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/resourcemanager/compute/armcompute/models.go 188 type AvailabilitySet struct { 189 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 190 Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 191 LocationName string `protobuf:"bytes,3,opt,name=locationName,proto3" json:"locationName,omitempty"` 192 GroupName string `protobuf:"bytes,4,opt,name=groupName,proto3" json:"groupName,omitempty"` 193 Status *common.Status `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` 194 Tags *common.Tags `protobuf:"bytes,6,opt,name=tags,proto3" json:"tags,omitempty"` 195 PlatformFaultDomainCount int32 `protobuf:"varint,7,opt,name=platformFaultDomainCount,proto3" json:"platformFaultDomainCount,omitempty"` 196 VirtualMachines []*VirtualMachineReference `protobuf:"bytes,8,rep,name=virtualMachines,proto3" json:"virtualMachines,omitempty"` 197 XXX_NoUnkeyedLiteral struct{} `json:"-"` 198 XXX_unrecognized []byte `json:"-"` 199 XXX_sizecache int32 `json:"-"` 200 } 201 202 func (m *AvailabilitySet) Reset() { *m = AvailabilitySet{} } 203 func (m *AvailabilitySet) String() string { return proto.CompactTextString(m) } 204 func (*AvailabilitySet) ProtoMessage() {} 205 func (*AvailabilitySet) Descriptor() ([]byte, []int) { 206 return fileDescriptor_f2024bad12ef389f, []int{3} 207 } 208 209 func (m *AvailabilitySet) XXX_Unmarshal(b []byte) error { 210 return xxx_messageInfo_AvailabilitySet.Unmarshal(m, b) 211 } 212 func (m *AvailabilitySet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 213 return xxx_messageInfo_AvailabilitySet.Marshal(b, m, deterministic) 214 } 215 func (m *AvailabilitySet) XXX_Merge(src proto.Message) { 216 xxx_messageInfo_AvailabilitySet.Merge(m, src) 217 } 218 func (m *AvailabilitySet) XXX_Size() int { 219 return xxx_messageInfo_AvailabilitySet.Size(m) 220 } 221 func (m *AvailabilitySet) XXX_DiscardUnknown() { 222 xxx_messageInfo_AvailabilitySet.DiscardUnknown(m) 223 } 224 225 var xxx_messageInfo_AvailabilitySet proto.InternalMessageInfo 226 227 func (m *AvailabilitySet) GetName() string { 228 if m != nil { 229 return m.Name 230 } 231 return "" 232 } 233 234 func (m *AvailabilitySet) GetId() string { 235 if m != nil { 236 return m.Id 237 } 238 return "" 239 } 240 241 func (m *AvailabilitySet) GetLocationName() string { 242 if m != nil { 243 return m.LocationName 244 } 245 return "" 246 } 247 248 func (m *AvailabilitySet) GetGroupName() string { 249 if m != nil { 250 return m.GroupName 251 } 252 return "" 253 } 254 255 func (m *AvailabilitySet) GetStatus() *common.Status { 256 if m != nil { 257 return m.Status 258 } 259 return nil 260 } 261 262 func (m *AvailabilitySet) GetTags() *common.Tags { 263 if m != nil { 264 return m.Tags 265 } 266 return nil 267 } 268 269 func (m *AvailabilitySet) GetPlatformFaultDomainCount() int32 { 270 if m != nil { 271 return m.PlatformFaultDomainCount 272 } 273 return 0 274 } 275 276 func (m *AvailabilitySet) GetVirtualMachines() []*VirtualMachineReference { 277 if m != nil { 278 return m.VirtualMachines 279 } 280 return nil 281 } 282 283 func init() { 284 proto.RegisterType((*AvailabilitySetRequest)(nil), "moc.cloudagent.compute.AvailabilitySetRequest") 285 proto.RegisterType((*AvailabilitySetResponse)(nil), "moc.cloudagent.compute.AvailabilitySetResponse") 286 proto.RegisterType((*VirtualMachineReference)(nil), "moc.cloudagent.compute.VirtualMachineReference") 287 proto.RegisterType((*AvailabilitySet)(nil), "moc.cloudagent.compute.AvailabilitySet") 288 } 289 290 func init() { 291 proto.RegisterFile("moc_cloudagent_availabilityset.proto", fileDescriptor_f2024bad12ef389f) 292 } 293 294 var fileDescriptor_f2024bad12ef389f = []byte{ 295 // 508 bytes of a gzipped FileDescriptorProto 296 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x93, 0xcf, 0x6e, 0xd3, 0x40, 297 0x10, 0xc6, 0x71, 0x9a, 0x04, 0xb2, 0x81, 0x14, 0xad, 0xaa, 0xc6, 0x8a, 0x00, 0x45, 0x06, 0x89, 298 0x9c, 0x6c, 0x11, 0x38, 0x71, 0x6b, 0xf9, 0x23, 0x71, 0x00, 0x24, 0xa7, 0xaa, 0x04, 0x97, 0x6a, 299 0xe3, 0x4c, 0xdc, 0x55, 0x77, 0x77, 0x96, 0xfd, 0x13, 0x54, 0xae, 0x3c, 0x0a, 0x2f, 0xc1, 0x73, 300 0xf0, 0x44, 0x28, 0xeb, 0xd0, 0x24, 0x2e, 0x91, 0x7a, 0xe9, 0xc9, 0xf6, 0x7c, 0xdf, 0xfc, 0x76, 301 0xfc, 0x79, 0x4c, 0x9e, 0x49, 0x2c, 0xce, 0x0a, 0x81, 0x7e, 0xc6, 0x4a, 0x50, 0xee, 0x8c, 0x2d, 302 0x18, 0x17, 0x6c, 0xca, 0x05, 0x77, 0x97, 0x16, 0x5c, 0xaa, 0x0d, 0x3a, 0xa4, 0x87, 0x12, 0x8b, 303 0x74, 0xed, 0x4a, 0x0b, 0x94, 0xda, 0x3b, 0x18, 0x3c, 0x29, 0x11, 0x4b,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d1, 0x45, 0xb6, 0x86, 0x65, 0x2b, 0xd8, 0xb4, 0x1d, 0x16, 0xf6, 0xe5, 0xdf, 0x00, 327 0x00, 0x00, 0xff, 0xff, 0x47, 0xd9, 0x62, 0xa3, 0x5f, 0x04, 0x00, 0x00, 328 } 329 330 // Reference imports to suppress errors if they are not otherwise used. 331 var _ context.Context 332 var _ grpc.ClientConn 333 334 // This is a compile-time assertion to ensure that this generated file 335 // is compatible with the grpc package it is being compiled against. 336 const _ = grpc.SupportPackageIsVersion4 337 338 // AvailabilitySetAgentClient is the client API for AvailabilitySetAgent service. 339 // 340 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 341 type AvailabilitySetAgentClient interface { 342 Invoke(ctx context.Context, in *AvailabilitySetRequest, opts ...grpc.CallOption) (*AvailabilitySetResponse, error) 343 } 344 345 type availabilitySetAgentClient struct { 346 cc *grpc.ClientConn 347 } 348 349 func NewAvailabilitySetAgentClient(cc *grpc.ClientConn) AvailabilitySetAgentClient { 350 return &availabilitySetAgentClient{cc} 351 } 352 353 func (c *availabilitySetAgentClient) Invoke(ctx context.Context, in *AvailabilitySetRequest, opts ...grpc.CallOption) (*AvailabilitySetResponse, error) { 354 out := new(AvailabilitySetResponse) 355 err := c.cc.Invoke(ctx, "/moc.cloudagent.compute.AvailabilitySetAgent/Invoke", in, out, opts...) 356 if err != nil { 357 return nil, err 358 } 359 return out, nil 360 } 361 362 // AvailabilitySetAgentServer is the server API for AvailabilitySetAgent service. 363 type AvailabilitySetAgentServer interface { 364 Invoke(context.Context, *AvailabilitySetRequest) (*AvailabilitySetResponse, error) 365 } 366 367 // UnimplementedAvailabilitySetAgentServer can be embedded to have forward compatible implementations. 368 type UnimplementedAvailabilitySetAgentServer struct { 369 } 370 371 func (*UnimplementedAvailabilitySetAgentServer) Invoke(ctx context.Context, req *AvailabilitySetRequest) (*AvailabilitySetResponse, error) { 372 return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented") 373 } 374 375 func RegisterAvailabilitySetAgentServer(s *grpc.Server, srv AvailabilitySetAgentServer) { 376 s.RegisterService(&_AvailabilitySetAgent_serviceDesc, srv) 377 } 378 379 func _AvailabilitySetAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 380 in := new(AvailabilitySetRequest) 381 if err := dec(in); err != nil { 382 return nil, err 383 } 384 if interceptor == nil { 385 return srv.(AvailabilitySetAgentServer).Invoke(ctx, in) 386 } 387 info := &grpc.UnaryServerInfo{ 388 Server: srv, 389 FullMethod: "/moc.cloudagent.compute.AvailabilitySetAgent/Invoke", 390 } 391 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 392 return srv.(AvailabilitySetAgentServer).Invoke(ctx, req.(*AvailabilitySetRequest)) 393 } 394 return interceptor(ctx, in, info, handler) 395 } 396 397 var _AvailabilitySetAgent_serviceDesc = grpc.ServiceDesc{ 398 ServiceName: "moc.cloudagent.compute.AvailabilitySetAgent", 399 HandlerType: (*AvailabilitySetAgentServer)(nil), 400 Methods: []grpc.MethodDesc{ 401 { 402 MethodName: "Invoke", 403 Handler: _AvailabilitySetAgent_Invoke_Handler, 404 }, 405 }, 406 Streams: []grpc.StreamDesc{}, 407 Metadata: "moc_cloudagent_availabilityset.proto", 408 }