github.com/microsoft/moc@v0.17.1/rpc/nodeagent/compute/moc_nodeagent_availabilityset.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: moc_nodeagent_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_d615df2311cce965, []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_d615df2311cce965, []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 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 133 XXX_NoUnkeyedLiteral struct{} `json:"-"` 134 XXX_unrecognized []byte `json:"-"` 135 XXX_sizecache int32 `json:"-"` 136 } 137 138 func (m *VirtualMachineReference) Reset() { *m = VirtualMachineReference{} } 139 func (m *VirtualMachineReference) String() string { return proto.CompactTextString(m) } 140 func (*VirtualMachineReference) ProtoMessage() {} 141 func (*VirtualMachineReference) Descriptor() ([]byte, []int) { 142 return fileDescriptor_d615df2311cce965, []int{2} 143 } 144 145 func (m *VirtualMachineReference) XXX_Unmarshal(b []byte) error { 146 return xxx_messageInfo_VirtualMachineReference.Unmarshal(m, b) 147 } 148 func (m *VirtualMachineReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 149 return xxx_messageInfo_VirtualMachineReference.Marshal(b, m, deterministic) 150 } 151 func (m *VirtualMachineReference) XXX_Merge(src proto.Message) { 152 xxx_messageInfo_VirtualMachineReference.Merge(m, src) 153 } 154 func (m *VirtualMachineReference) XXX_Size() int { 155 return xxx_messageInfo_VirtualMachineReference.Size(m) 156 } 157 func (m *VirtualMachineReference) XXX_DiscardUnknown() { 158 xxx_messageInfo_VirtualMachineReference.DiscardUnknown(m) 159 } 160 161 var xxx_messageInfo_VirtualMachineReference proto.InternalMessageInfo 162 163 func (m *VirtualMachineReference) GetName() string { 164 if m != nil { 165 return m.Name 166 } 167 return "" 168 } 169 170 // avset structure is a flattened version of the model in the Azure sdk for go at 171 // https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/resourcemanager/compute/armcompute/models.go 172 type AvailabilitySet struct { 173 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 174 Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 175 Status *common.Status `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` 176 Tags *common.Tags `protobuf:"bytes,4,opt,name=tags,proto3" json:"tags,omitempty"` 177 Entity *common.Entity `protobuf:"bytes,5,opt,name=entity,proto3" json:"entity,omitempty"` 178 PlatformFaultDomainCount int32 `protobuf:"varint,6,opt,name=platformFaultDomainCount,proto3" json:"platformFaultDomainCount,omitempty"` 179 VirtualMachines []*VirtualMachineReference `protobuf:"bytes,7,rep,name=virtualMachines,proto3" json:"virtualMachines,omitempty"` 180 XXX_NoUnkeyedLiteral struct{} `json:"-"` 181 XXX_unrecognized []byte `json:"-"` 182 XXX_sizecache int32 `json:"-"` 183 } 184 185 func (m *AvailabilitySet) Reset() { *m = AvailabilitySet{} } 186 func (m *AvailabilitySet) String() string { return proto.CompactTextString(m) } 187 func (*AvailabilitySet) ProtoMessage() {} 188 func (*AvailabilitySet) Descriptor() ([]byte, []int) { 189 return fileDescriptor_d615df2311cce965, []int{3} 190 } 191 192 func (m *AvailabilitySet) XXX_Unmarshal(b []byte) error { 193 return xxx_messageInfo_AvailabilitySet.Unmarshal(m, b) 194 } 195 func (m *AvailabilitySet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 196 return xxx_messageInfo_AvailabilitySet.Marshal(b, m, deterministic) 197 } 198 func (m *AvailabilitySet) XXX_Merge(src proto.Message) { 199 xxx_messageInfo_AvailabilitySet.Merge(m, src) 200 } 201 func (m *AvailabilitySet) XXX_Size() int { 202 return xxx_messageInfo_AvailabilitySet.Size(m) 203 } 204 func (m *AvailabilitySet) XXX_DiscardUnknown() { 205 xxx_messageInfo_AvailabilitySet.DiscardUnknown(m) 206 } 207 208 var xxx_messageInfo_AvailabilitySet proto.InternalMessageInfo 209 210 func (m *AvailabilitySet) GetName() string { 211 if m != nil { 212 return m.Name 213 } 214 return "" 215 } 216 217 func (m *AvailabilitySet) GetId() string { 218 if m != nil { 219 return m.Id 220 } 221 return "" 222 } 223 224 func (m *AvailabilitySet) GetStatus() *common.Status { 225 if m != nil { 226 return m.Status 227 } 228 return nil 229 } 230 231 func (m *AvailabilitySet) GetTags() *common.Tags { 232 if m != nil { 233 return m.Tags 234 } 235 return nil 236 } 237 238 func (m *AvailabilitySet) GetEntity() *common.Entity { 239 if m != nil { 240 return m.Entity 241 } 242 return nil 243 } 244 245 func (m *AvailabilitySet) GetPlatformFaultDomainCount() int32 { 246 if m != nil { 247 return m.PlatformFaultDomainCount 248 } 249 return 0 250 } 251 252 func (m *AvailabilitySet) GetVirtualMachines() []*VirtualMachineReference { 253 if m != nil { 254 return m.VirtualMachines 255 } 256 return nil 257 } 258 259 func init() { 260 proto.RegisterType((*AvailabilitySetRequest)(nil), "moc.nodeagent.compute.AvailabilitySetRequest") 261 proto.RegisterType((*AvailabilitySetResponse)(nil), "moc.nodeagent.compute.AvailabilitySetResponse") 262 proto.RegisterType((*VirtualMachineReference)(nil), "moc.nodeagent.compute.VirtualMachineReference") 263 proto.RegisterType((*AvailabilitySet)(nil), "moc.nodeagent.compute.AvailabilitySet") 264 } 265 266 func init() { 267 proto.RegisterFile("moc_nodeagent_availabilityset.proto", fileDescriptor_d615df2311cce965) 268 } 269 270 var fileDescriptor_d615df2311cce965 = []byte{ 271 // 477 bytes of a gzipped FileDescriptorProto 272 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x92, 0xc1, 0x6b, 0x13, 0x41, 273 0x14, 0xc6, 0xdd, 0x34, 0x89, 0x64, 0x82, 0xa9, 0x0c, 0xd5, 0x2c, 0x01, 0x25, 0xa4, 0x20, 0xb9, 274 0x74, 0x56, 0x56, 0x4f, 0xde, 0x5a, 0xad, 0xe0, 0x41, 0x84, 0x69, 0x29, 0xe2, 0xa5, 0x4c, 0x36, 275 0x2f, 0xdb, 0xc1, 0xdd, 0x79, 0xeb, 0xcc, 0x9b, 0x48, 0x8e, 0xfe, 0x2b, 0xfe, 0x0d, 0x82, 0xff, 276 0x9e, 0x64, 0x36, 0x86, 0x76, 0xdb, 0x40, 0x2f, 0x3d, 0xed, 0xee, 0x7c, 0xbf, 0xf9, 0xe6, 0xdb, 277 0x6f, 0x1e, 0x3b, 0x2c, 0x31, 0xbb, 0x34, 0x38, 0x07, 0x95, 0x83, 0xa1, 0x4b, 0xb5, 0x54, 0xba, 278 0x50, 0x33, 0x5d, 0x68, 0x5a, 0x39, 0x20, 0x51, 0x59, 0x24, 0xe4, 0xcf, 0x4a, 0xcc, 0xc4, 0x16, 279 0x12, 0x19, 0x96, 0x95, 0x27, 0x18, 0xbd, 0xcc, 0x11, 0xf3, 0x02, 0x92, 0x00, 0xcd, 0xfc, 0x22, 280 0xf9, 0x69, 0x55, 0x55, 0x81, 0x75, 0xf5, 0xb6, 0xd1, 0x70, 0xed, 0x9d, 0x61, 0x59, 0xa2, 0xd9, 281 0x3c, 0x6a, 0x61, 0xf2, 0x3b, 0x62, 0xcf, 0x8f, 0xaf, 0x9d, 0x74, 0x06, 0x24, 0xe1, 0x87, 0x07, 282 0x47, 0x5c, 0xb2, 0xa7, 0x0d, 0xc5, 0xc5, 0xd1, 0x78, 0x6f, 0xda, 0x4f, 0x5f, 0x89, 0x3b, 0x53, 283 0x88, 0xa6, 0xd1, 0xad, 0xfd, 0xfc, 0x2d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3, 0xf2, 0x05, 0x7d, 0xc0, 0x52, 295 0x69, 0xf3, 0x1e, 0xbd, 0xa1, 0xb8, 0x3b, 0x8e, 0xa6, 0x1d, 0xb9, 0x53, 0xe7, 0x5f, 0xd9, 0xfe, 296 0xf2, 0x46, 0x17, 0x2e, 0x7e, 0x1c, 0x2e, 0x4a, 0xec, 0xb8, 0xa8, 0x1d, 0xcd, 0xc9, 0xa6, 0x4d, 297 0xfa, 0x2b, 0x62, 0x07, 0x8d, 0xda, 0x8e, 0xd7, 0x4e, 0x5c, 0xb3, 0xee, 0x27, 0xb3, 0xc4, 0xef, 298 0xc0, 0x8f, 0xee, 0x39, 0x0c, 0xf5, 0xec, 0x8f, 0xc4, 0x7d, 0xf1, 0x7a, 0x0a, 0x27, 0x8f, 0x4e, 299 0x5e, 0x7f, 0x13, 0xb9, 0xa6, 0x2b, 0x3f, 0x5b, 0xb3, 0x49, 0xa9, 0x33, 0x8b, 0x0e, 0x17, 0x94, 300 0x94, 0x98, 0x25, 0xb6, 0xca, 0x92, 0xad, 0x57, 0xb2, 0xf1, 0x9a, 0x75, 0xc3, 0x34, 0xbd, 0xf9, 301 0x17, 0x00, 0x00, 0xff, 0xff, 0x20, 0xf9, 0xb7, 0xe0, 0xf8, 0x03, 0x00, 0x00, 302 } 303 304 // Reference imports to suppress errors if they are not otherwise used. 305 var _ context.Context 306 var _ grpc.ClientConn 307 308 // This is a compile-time assertion to ensure that this generated file 309 // is compatible with the grpc package it is being compiled against. 310 const _ = grpc.SupportPackageIsVersion4 311 312 // AvailabilitySetAgentClient is the client API for AvailabilitySetAgent service. 313 // 314 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 315 type AvailabilitySetAgentClient interface { 316 Invoke(ctx context.Context, in *AvailabilitySetRequest, opts ...grpc.CallOption) (*AvailabilitySetResponse, error) 317 } 318 319 type availabilitySetAgentClient struct { 320 cc *grpc.ClientConn 321 } 322 323 func NewAvailabilitySetAgentClient(cc *grpc.ClientConn) AvailabilitySetAgentClient { 324 return &availabilitySetAgentClient{cc} 325 } 326 327 func (c *availabilitySetAgentClient) Invoke(ctx context.Context, in *AvailabilitySetRequest, opts ...grpc.CallOption) (*AvailabilitySetResponse, error) { 328 out := new(AvailabilitySetResponse) 329 err := c.cc.Invoke(ctx, "/moc.nodeagent.compute.AvailabilitySetAgent/Invoke", in, out, opts...) 330 if err != nil { 331 return nil, err 332 } 333 return out, nil 334 } 335 336 // AvailabilitySetAgentServer is the server API for AvailabilitySetAgent service. 337 type AvailabilitySetAgentServer interface { 338 Invoke(context.Context, *AvailabilitySetRequest) (*AvailabilitySetResponse, error) 339 } 340 341 // UnimplementedAvailabilitySetAgentServer can be embedded to have forward compatible implementations. 342 type UnimplementedAvailabilitySetAgentServer struct { 343 } 344 345 func (*UnimplementedAvailabilitySetAgentServer) Invoke(ctx context.Context, req *AvailabilitySetRequest) (*AvailabilitySetResponse, error) { 346 return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented") 347 } 348 349 func RegisterAvailabilitySetAgentServer(s *grpc.Server, srv AvailabilitySetAgentServer) { 350 s.RegisterService(&_AvailabilitySetAgent_serviceDesc, srv) 351 } 352 353 func _AvailabilitySetAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 354 in := new(AvailabilitySetRequest) 355 if err := dec(in); err != nil { 356 return nil, err 357 } 358 if interceptor == nil { 359 return srv.(AvailabilitySetAgentServer).Invoke(ctx, in) 360 } 361 info := &grpc.UnaryServerInfo{ 362 Server: srv, 363 FullMethod: "/moc.nodeagent.compute.AvailabilitySetAgent/Invoke", 364 } 365 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 366 return srv.(AvailabilitySetAgentServer).Invoke(ctx, req.(*AvailabilitySetRequest)) 367 } 368 return interceptor(ctx, in, info, handler) 369 } 370 371 var _AvailabilitySetAgent_serviceDesc = grpc.ServiceDesc{ 372 ServiceName: "moc.nodeagent.compute.AvailabilitySetAgent", 373 HandlerType: (*AvailabilitySetAgentServer)(nil), 374 Methods: []grpc.MethodDesc{ 375 { 376 MethodName: "Invoke", 377 Handler: _AvailabilitySetAgent_Invoke_Handler, 378 }, 379 }, 380 Streams: []grpc.StreamDesc{}, 381 Metadata: "moc_nodeagent_availabilityset.proto", 382 }