From 34b3314d2ca811175397d317c8fc6a6ec92033b4 Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Fri, 2 Feb 2018 16:46:59 -0800 Subject: [PATCH] Regenerate protos for gNMI, Fake, and gNMI extensions --- compile_protos.sh | 2 + proto/gnmi/gnmi.pb.go | 327 ++++++++----- proto/gnmi/gnmi_pb2.py | 684 +++++++++++----------------- proto/gnmi_ext/gnmi_ext.pb.go | 201 ++++++++ proto/gnmi_ext/gnmi_ext_pb2.py | 150 ++++++ proto/gnmi_ext/gnmi_ext_pb2_grpc.py | 3 + testing/fake/proto/fake.pb.go | 3 +- testing/fake/proto/fake_pb2.py | 331 ++++---------- 8 files changed, 927 insertions(+), 774 deletions(-) create mode 100644 proto/gnmi_ext/gnmi_ext.pb.go create mode 100644 proto/gnmi_ext/gnmi_ext_pb2.py create mode 100644 proto/gnmi_ext/gnmi_ext_pb2_grpc.py diff --git a/compile_protos.sh b/compile_protos.sh index 465fad0e..2bb0e4d6 100755 --- a/compile_protos.sh +++ b/compile_protos.sh @@ -21,7 +21,9 @@ proto_imports=".:${GOPATH}/src/github.com/google/protobuf/src:${GOPATH}/src" # Go protoc -I=$proto_imports --go_out=. testing/fake/proto/fake.proto protoc -I=$proto_imports --go_out=plugins=grpc:. proto/gnmi/gnmi.proto +protoc -I=$proto_imports --go_out=plugins=grpc:. proto/gnmi_ext/gnmi_ext.proto # Python python -m grpc_tools.protoc -I=$proto_imports --python_out=. --grpc_python_out=. testing/fake/proto/fake.proto python -m grpc_tools.protoc -I=$proto_imports --python_out=. --grpc_python_out=. proto/gnmi/gnmi.proto +python -m grpc_tools.protoc -I=$proto_imports --python_out=. --grpc_python_out=. proto/gnmi_ext/gnmi_ext.proto diff --git a/proto/gnmi/gnmi.pb.go b/proto/gnmi/gnmi.pb.go index abd3282a..fefe0d8d 100644 --- a/proto/gnmi/gnmi.pb.go +++ b/proto/gnmi/gnmi.pb.go @@ -1,6 +1,5 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: proto/gnmi/gnmi.proto -// DO NOT EDIT! /* Package gnmi is a generated protocol buffer package. @@ -51,6 +50,7 @@ import fmt "fmt" import math "math" import google_protobuf "github.com/golang/protobuf/ptypes/any" import google_protobuf1 "github.com/golang/protobuf/protoc-gen-go/descriptor" +import gnmi_ext "github.com/openconfig/gnmi/proto/gnmi_ext" import ( context "golang.org/x/net/context" @@ -858,7 +858,7 @@ func (m *Error) GetData() *google_protobuf.Any { // is expressed as a set of digits with the precision specifying the // number of digits following the decimal point in the digit set. type Decimal64 struct { - Digits uint64 `protobuf:"varint,1,opt,name=digits" json:"digits,omitempty"` + Digits int64 `protobuf:"varint,1,opt,name=digits" json:"digits,omitempty"` Precision uint32 `protobuf:"varint,2,opt,name=precision" json:"precision,omitempty"` } @@ -867,7 +867,7 @@ func (m *Decimal64) String() string { return proto.CompactTextString( func (*Decimal64) ProtoMessage() {} func (*Decimal64) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } -func (m *Decimal64) GetDigits() uint64 { +func (m *Decimal64) GetDigits() int64 { if m != nil { return m.Digits } @@ -913,6 +913,9 @@ type SubscribeRequest struct { // *SubscribeRequest_Poll // *SubscribeRequest_Aliases Request isSubscribeRequest_Request `protobuf_oneof:"request"` + // Extension messages associated with the SubscribeRequest. See the + // gNMI extension specification for further definition. + Extension []*gnmi_ext.Extension `protobuf:"bytes,5,rep,name=extension" json:"extension,omitempty"` } func (m *SubscribeRequest) Reset() { *m = SubscribeRequest{} } @@ -966,6 +969,13 @@ func (m *SubscribeRequest) GetAliases() *AliasList { return nil } +func (m *SubscribeRequest) GetExtension() []*gnmi_ext.Extension { + if m != nil { + return m.Extension + } + return nil +} + // XXX_OneofFuncs is for the internal use of the proto package. func (*SubscribeRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { return _SubscribeRequest_OneofMarshaler, _SubscribeRequest_OneofUnmarshaler, _SubscribeRequest_OneofSizer, []interface{}{ @@ -1083,6 +1093,9 @@ type SubscribeResponse struct { // *SubscribeResponse_SyncResponse // *SubscribeResponse_Error Response isSubscribeResponse_Response `protobuf_oneof:"response"` + // Extension messages associated with the SubscribeResponse. See the + // gNMI extension specification for further definition. + Extension []*gnmi_ext.Extension `protobuf:"bytes,5,rep,name=extension" json:"extension,omitempty"` } func (m *SubscribeResponse) Reset() { *m = SubscribeResponse{} } @@ -1136,6 +1149,13 @@ func (m *SubscribeResponse) GetError() *Error { return nil } +func (m *SubscribeResponse) GetExtension() []*gnmi_ext.Extension { + if m != nil { + return m.Extension + } + return nil +} + // XXX_OneofFuncs is for the internal use of the proto package. func (*SubscribeResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { return _SubscribeResponse_OneofMarshaler, _SubscribeResponse_OneofUnmarshaler, _SubscribeResponse_OneofSizer, []interface{}{ @@ -1462,6 +1482,9 @@ type SetRequest struct { Delete []*Path `protobuf:"bytes,2,rep,name=delete" json:"delete,omitempty"` Replace []*Update `protobuf:"bytes,3,rep,name=replace" json:"replace,omitempty"` Update []*Update `protobuf:"bytes,4,rep,name=update" json:"update,omitempty"` + // Extension messages associated with the SetRequest. See the + // gNMI extension specification for further definition. + Extension []*gnmi_ext.Extension `protobuf:"bytes,5,rep,name=extension" json:"extension,omitempty"` } func (m *SetRequest) Reset() { *m = SetRequest{} } @@ -1497,6 +1520,13 @@ func (m *SetRequest) GetUpdate() []*Update { return nil } +func (m *SetRequest) GetExtension() []*gnmi_ext.Extension { + if m != nil { + return m.Extension + } + return nil +} + // SetResponse is the response to a SetRequest, sent from the target to the // client. It reports the result of the modifications to the data tree that were // specified by the client. Errors for this RPC should be reported using the @@ -1511,6 +1541,9 @@ type SetResponse struct { Response []*UpdateResult `protobuf:"bytes,2,rep,name=response" json:"response,omitempty"` Message *Error `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"` Timestamp int64 `protobuf:"varint,4,opt,name=timestamp" json:"timestamp,omitempty"` + // Extension messages associated with the SetResponse. See the + // gNMI extension specification for further definition. + Extension []*gnmi_ext.Extension `protobuf:"bytes,5,rep,name=extension" json:"extension,omitempty"` } func (m *SetResponse) Reset() { *m = SetResponse{} } @@ -1546,6 +1579,13 @@ func (m *SetResponse) GetTimestamp() int64 { return 0 } +func (m *SetResponse) GetExtension() []*gnmi_ext.Extension { + if m != nil { + return m.Extension + } + return nil +} + // UpdateResult is used within the SetResponse message to communicate the // result of an operation specified within a SetRequest message. // Reference: gNMI Specification Section 3.4.2 @@ -1605,6 +1645,9 @@ type GetRequest struct { Type GetRequest_DataType `protobuf:"varint,3,opt,name=type,enum=gnmi.GetRequest_DataType" json:"type,omitempty"` Encoding Encoding `protobuf:"varint,5,opt,name=encoding,enum=gnmi.Encoding" json:"encoding,omitempty"` UseModels []*ModelData `protobuf:"bytes,6,rep,name=use_models,json=useModels" json:"use_models,omitempty"` + // Extension messages associated with the GetRequest. See the + // gNMI extension specification for further definition. + Extension []*gnmi_ext.Extension `protobuf:"bytes,7,rep,name=extension" json:"extension,omitempty"` } func (m *GetRequest) Reset() { *m = GetRequest{} } @@ -1647,6 +1690,13 @@ func (m *GetRequest) GetUseModels() []*ModelData { return nil } +func (m *GetRequest) GetExtension() []*gnmi_ext.Extension { + if m != nil { + return m.Extension + } + return nil +} + // GetResponse is used by the target to respond to a GetRequest from a client. // The set of Notifications corresponds to the data values that are requested // by the client in the GetRequest. @@ -1654,6 +1704,9 @@ func (m *GetRequest) GetUseModels() []*ModelData { type GetResponse struct { Notification []*Notification `protobuf:"bytes,1,rep,name=notification" json:"notification,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` + // Extension messages associated with the GetResponse. See the + // gNMI extension specification for further definition. + Extension []*gnmi_ext.Extension `protobuf:"bytes,3,rep,name=extension" json:"extension,omitempty"` } func (m *GetResponse) Reset() { *m = GetResponse{} } @@ -1675,10 +1728,20 @@ func (m *GetResponse) GetError() *Error { return nil } +func (m *GetResponse) GetExtension() []*gnmi_ext.Extension { + if m != nil { + return m.Extension + } + return nil +} + // CapabilityRequest is sent by the client in the Capabilities RPC to request // that the target reports its capabilities. // Reference: gNMI Specification Section 3.2.1 type CapabilityRequest struct { + // Extension messages associated with the CapabilityRequest. See the + // gNMI extension specification for further definition. + Extension []*gnmi_ext.Extension `protobuf:"bytes,1,rep,name=extension" json:"extension,omitempty"` } func (m *CapabilityRequest) Reset() { *m = CapabilityRequest{} } @@ -1686,6 +1749,13 @@ func (m *CapabilityRequest) String() string { return proto.CompactTex func (*CapabilityRequest) ProtoMessage() {} func (*CapabilityRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} } +func (m *CapabilityRequest) GetExtension() []*gnmi_ext.Extension { + if m != nil { + return m.Extension + } + return nil +} + // CapabilityResponse is used by the target to report its capabilities to the // client within the Capabilities RPC. // Reference: gNMI Specification Section 3.2.2 @@ -1693,6 +1763,9 @@ type CapabilityResponse struct { SupportedModels []*ModelData `protobuf:"bytes,1,rep,name=supported_models,json=supportedModels" json:"supported_models,omitempty"` SupportedEncodings []Encoding `protobuf:"varint,2,rep,packed,name=supported_encodings,json=supportedEncodings,enum=gnmi.Encoding" json:"supported_encodings,omitempty"` GNMIVersion string `protobuf:"bytes,3,opt,name=gNMI_version,json=gNMIVersion" json:"gNMI_version,omitempty"` + // Extension messages associated with the CapabilityResponse. See the + // gNMI extension specification for further definition. + Extension []*gnmi_ext.Extension `protobuf:"bytes,4,rep,name=extension" json:"extension,omitempty"` } func (m *CapabilityResponse) Reset() { *m = CapabilityResponse{} } @@ -1721,6 +1794,13 @@ func (m *CapabilityResponse) GetGNMIVersion() string { return "" } +func (m *CapabilityResponse) GetExtension() []*gnmi_ext.Extension { + if m != nil { + return m.Extension + } + return nil +} + // ModelData is used to describe a set of schema modules. It can be used in a // CapabilityResponse where a target reports the set of modules that it // supports, and within the SubscribeRequest and GetRequest messages to specify @@ -2048,121 +2128,126 @@ var _GNMI_serviceDesc = grpc.ServiceDesc{ func init() { proto.RegisterFile("proto/gnmi/gnmi.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 1847 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x57, 0x4f, 0x93, 0xe3, 0x56, - 0x11, 0xb7, 0x6c, 0xf9, 0x8f, 0x5a, 0x9e, 0x5d, 0xcd, 0x4b, 0x48, 0xbc, 0x93, 0x25, 0x71, 0x54, - 0xc9, 0xc6, 0x99, 0x24, 0x9e, 0xad, 0x01, 0xa6, 0x60, 0xa9, 0x40, 0x34, 0x33, 0xda, 0x19, 0x83, - 0xc7, 0x1e, 0x9e, 0x9d, 0xa9, 0xe2, 0x40, 0xb9, 0xde, 0xd8, 0x6f, 0xbc, 0x22, 0xb2, 0xa4, 0x48, - 0xf2, 0x12, 0x73, 0xe3, 0x33, 0x70, 0xe1, 0xc2, 0x85, 0xe2, 0xc4, 0x89, 0x03, 0x07, 0x3e, 0x02, - 0xc5, 0xb7, 0xa0, 0xb8, 0xc0, 0xb7, 0x48, 0xf5, 0x7b, 0x4f, 0x92, 0xbd, 0xf6, 0xd6, 0x6e, 0x2e, - 0x2e, 0xa9, 0x7f, 0xdd, 0xad, 0x7e, 0xfd, 0xba, 0x7f, 0xdd, 0x86, 0xef, 0x45, 0x71, 0x98, 0x86, - 0x47, 0xf3, 0x60, 0xe1, 0x89, 0x9f, 0xae, 0x78, 0x27, 0x3a, 0x3e, 0x1f, 0x3c, 0x98, 0x87, 0xe1, - 0xdc, 0xe7, 0x47, 0x42, 0x76, 0xbb, 0xbc, 0x3b, 0x62, 0xc1, 0x4a, 0x2a, 0x1c, 0xb4, 0x5f, 0x84, - 0x66, 0x3c, 0x99, 0xc6, 0x5e, 0x94, 0x86, 0xb1, 0xd4, 0xb0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 0x92, 0xc6, 0x5e, 0x30, 0x9f, 0xa0, 0x67, 0x8c, 0xcf, 0xb8, 0x2c, 0x51, 0x43, 0xca, 0x6e, 0x98, - 0x4f, 0x1e, 0x40, 0xdd, 0x0b, 0x52, 0x81, 0x62, 0x70, 0x95, 0xcb, 0x12, 0xad, 0x79, 0x41, 0x8a, - 0xd0, 0x3b, 0xd0, 0x58, 0x66, 0x18, 0xc6, 0xa4, 0x5f, 0x96, 0x68, 0x7d, 0x59, 0x80, 0xb7, 0x61, - 0xe8, 0x0b, 0x10, 0xa3, 0x68, 0x20, 0x88, 0x12, 0x04, 0xbf, 0x0f, 0xc6, 0xed, 0x2a, 0xe5, 0x89, - 0x40, 0xab, 0x6d, 0xad, 0xd3, 0xbc, 0x2c, 0xd1, 0x86, 0x10, 0x29, 0xf8, 0xce, 0x0f, 0x99, 0xf4, - 0x5c, 0x6b, 0x6b, 0x9d, 0x32, 0xc2, 0x42, 0x84, 0xf0, 0x31, 0x98, 0x33, 0x3e, 0xf5, 0x16, 0x4c, - 0x7a, 0xaf, 0x8b, 0x74, 0xdc, 0x97, 0xe9, 0x38, 0x97, 0xc0, 0xc9, 0x0f, 0x2f, 0x4b, 0x14, 0x94, - 0x16, 0xda, 0x9c, 0x40, 0xd3, 0xe7, 0xec, 0xce, 0xf7, 0x12, 0xe9, 0xb5, 0x21, 0x8c, 0xf6, 0xa5, - 0xd1, 0x68, 0xca, 0x7c, 0x16, 0x3b, 0x71, 0xcc, 0x56, 0x97, 0x25, 0x6a, 0x66, 0x8a, 0x68, 0x77, - 0x04, 0x75, 0x16, 0xac, 0x84, 0x89, 0x21, 0x4c, 0xde, 0xec, 0xca, 0x5a, 0xed, 0x66, 0xb5, 0xda, - 0x75, 0x02, 0xb4, 0xaa, 0xb1, 0x60, 0xa5, 0xce, 0xfd, 0xdb, 0x24, 0x0c, 0x84, 0x05, 0xa8, 0x93, - 0xd5, 0x51, 0x82, 0xe0, 0x07, 0xb0, 0x27, 0x40, 0x8f,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0xa7, 0x9e, 0xcf, 0x87, 0x22, 0x8b, 0x49, 0xeb, - 0xff, 0x75, 0x55, 0x0f, 0xc1, 0xc2, 0x1b, 0x49, 0x8b, 0xd3, 0xc6, 0xbf, 0x7f, 0x56, 0x7d, 0xdc, - 0xfd, 0x51, 0xf7, 0xf1, 0x6d, 0x4d, 0xd8, 0xfc, 0xe0, 0xdb, 0x00, 0x00, 0x00, 0xff, 0xff, 0x66, - 0xb2, 0xab, 0x90, 0xcf, 0x10, 0x00, 0x00, + // 1926 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xcd, 0x72, 0xe3, 0xc6, + 0x11, 0x26, 0x08, 0xf0, 0x07, 0x4d, 0x6a, 0x17, 0x1a, 0x3b, 0x36, 0x57, 0xde, 0xd8, 0x34, 0xca, + 0x5e, 0xd3, 0xb2, 0x4d, 0x6d, 0x94, 0x94, 0xca, 0xd9, 0x94, 0x13, 0x43, 0x12, 0x24, 0x31, 0xa1, + 0x48, 0x65, 0x48, 0xab, 0x2a, 0x87, 0x14, 0x6b, 0x44, 0x8e, 0xb8, 0x88, 0x41, 0x00, 0x06, 0x86, + 0x9b, 0x65, 0x6e, 0x79, 0x86, 0x3c, 0x40, 0x5e, 0x21, 0xc7, 0x3c, 0x42, 0x2a, 0xb9, 0xe4, 0x92, + 0xca, 0x29, 0x87, 0x54, 0x0e, 0x49, 0xde, 0xc2, 0x35, 0x3f, 0x00, 0x88, 0x25, 0xb7, 0x56, 0xeb, + 0x0b, 0x0b, 0xd3, 0x5f, 0x77, 0xcf, 0xf4, 0x74, 0xf7, 0x37, 0x4d, 0xf8, 0x5e, 0x14, 0x87, 0x2c, + 0x3c, 0x98, 0x07, 0x0b, 0x4f, 0xfc, 0x74, 0xc5, 0x1a, 0x19, 0xfc, 0x7b, 0xef, 0xc1, 0x3c, 0x0c, + 0xe7, 0x3e, 0x3d, 0x10, 0xb2, 0x9b, 0xe5, 0xed, 0x01, 0x09, 0x56, 0x52, 0x61, 0xaf, 0xfd, 0x22, + 0x34, 0xa3, 0xc9, 0x34, 0xf6, 0x22, 0x16, 0xc6, 0x4a, 0xe3, 0xf3, 0xb9, 0xc7, 0x9e, 0x2e, 0x6f, + 0xba, 0xd3, 0x70, 0x71, 0x10, 0x46, 0x34, 0x98, 0x86, 0xc1, 0xad, 0x37, 0x97, 0x3b, 0xe5, 0x9b, + 0x4e, 0xe8, 0x73, 0x96, 0x7d, 0x48, 0x4b, 0xfb, 0x4f, 0x1a, 0x34, 0x07, 0x21, 0xf3, 0x6e, 0xbd, + 0x29, 0x61, 0x5e, 0x18, 0xa0, 0x87, 0x60, 0x32, 0x6f, 0x41, 0x13, 0x46, 0x16, 0x51, 0x4b, 0x6b, + 0x6b, 0x1d, 0x1d, 0xe7, 0x02, 0x64, 0x43, 0x35, 0x8a, 0xe9, 0xad, 0xf7, 0xbc, 0x55, 0x6e, 0x6b, + 0x9d, 0xc6, 0x21, 0x74, 0x45, 0x20, 0x57, 0x84, 0x3d, 0xc5, 0x0a, 0x41, 0x6f, 0x42, 0x85, 0xf8, + 0x1e, 0x49, 0x5a, 0x7a, 0x5b, 0xeb, 0x98, 0x58, 0x2e, 0xd0, 0x07, 0x50, 0x5d, 0x46, 0x33, 0xc2, + 0x68, 0xcb, 0x68, 0xeb, 0x9d, 0xc6, 0x61, 0x53, 0x5a, 0x7e, 0x25, 0x64, 0x58, 0x61, 0xdc, 0xff, + 0x8c, 0xfa, 0x94, 0xd1, 0x56, 0x45, 0x68, 0x15, 0xfc, 0x4b, 0xc4, 0xfe, 0x83, 0x06, 0x55, 0x69, + 0x86, 0xde, 0x05, 0x23, 0x22, 0xec, 0xa9, 0x38, 0x67, 0x51, 0x59, 0xc8, 0xd1, 0x87, 0x50, 0x79, + 0x46, 0xfc, 0x25, 0x55, 0xa7, 0x6d, 0x48, 0x85, 0x6b, 0x2e, 0x3a, 0x2e, 0xb7, 0x34,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 0x0e, 0xa2, 0x03, 0x30, 0x16, 0xbc, 0x89, 0x2a, + 0xa2, 0xeb, 0xde, 0xd9, 0x5e, 0x50, 0xdd, 0xcb, 0x70, 0x46, 0xb1, 0x50, 0x44, 0x9f, 0xc0, 0x2e, + 0xf1, 0xfd, 0xf0, 0xb7, 0x13, 0x32, 0x9f, 0xc7, 0x74, 0x2e, 0x92, 0x22, 0x28, 0xbf, 0x8e, 0x2d, + 0x01, 0x38, 0xb9, 0x1c, 0x75, 0x81, 0x9f, 0x67, 0xc2, 0x0d, 0xfd, 0xa4, 0x55, 0x13, 0x81, 0xa9, + 0xe2, 0xe2, 0x2e, 0xfd, 0x53, 0xc2, 0x08, 0x36, 0x97, 0x09, 0x15, 0xab, 0x04, 0xed, 0x43, 0x9d, + 0xaa, 0x8e, 0x17, 0x84, 0xbf, 0xc9, 0x03, 0x19, 0x8e, 0xde, 0x87, 0xa6, 0x2c, 0x84, 0x64, 0x12, + 0x06, 0xfe, 0x4a, 0xb0, 0x7d, 0x1d, 0x37, 0x94, 0x6c, 0x18, 0xf8, 0x2b, 0xfb, 0x11, 0x18, 0xdc, + 0x31, 0x02, 0xa8, 0x8e, 0xc6, 0xd8, 0x75, 0x2e, 0xad, 0x12, 0xaa, 0x83, 0x31, 0x1c, 0x9c, 0xb8, + 0x96, 0xc6, 0xbf, 0xae, 0x86, 0xfd, 0xbe, 0x55, 0xb6, 0xff, 0xad, 0x41, 0x73, 0x3d, 0xe6, 0x57, + 0x3e, 0xff, 0xfb, 0xea, 0xd6, 0x24, 0x57, 0x6d, 0x69, 0xc3, 0xb5, 0x0b, 0xfb, 0x08, 0xee, 0x27, + 0x64, 0x11, 0xf9, 0x74, 0xe2, 0x05, 0x8c, 0xc6, 0xd9, 0xdb, 0x8b, 0xef, 0x49, 0x71, 0x4f, 0x49, + 0xd1, 0x67, 0x80, 0x92, 0x65, 0x14, 0xc5, 0x34, 0x49, 0x26, 0x31, 0x9d, 0x2d, 0x83, 0x19, 0x09, + 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3b, + 0x60, 0x0e, 0x07, 0x93, 0x93, 0x0b, 0x67, 0x70, 0xce, 0x69, 0x81, 0xcf, 0x0e, 0xce, 0xe5, 0x55, + 0xdf, 0xb5, 0xca, 0x87, 0xff, 0xd1, 0xc0, 0xe0, 0x57, 0x85, 0x1c, 0x68, 0x66, 0x99, 0xf5, 0x68, + 0x82, 0xd4, 0x1f, 0xa6, 0x8d, 0xb2, 0xd9, 0x6b, 0x6d, 0x02, 0xaa, 0x0c, 0xf6, 0x41, 0x3f, 0xa7, + 0x0c, 0x59, 0x2f, 0xf6, 0xfe, 0xde, 0xee, 0x9a, 0x24, 0xd7, 0x1d, 0xe5, 0xba, 0xa3, 0x0d, 0xdd, + 0xf5, 0x87, 0xe6, 0x4b, 0x30, 0xb3, 0xc1, 0x1a, 0x15, 0x27, 0x93, 0xec, 0xbf, 0xc4, 0xde, 0xdb, + 0x1b, 0x72, 0x69, 0xdd, 0xd1, 0x1e, 0x6b, 0x4f, 0xbe, 0x84, 0xa6, 0x48, 0x77, 0x42, 0xe3, 0x67, + 0xde, 0x94, 0xa2, 0x87, 0x1b, 0xff, 0x95, 0xce, 0x3c, 0x9f, 0x0e, 0xc5, 0x2d, 0x26, 0xad, 0xff, + 0xd7, 0x54, 0x09, 0x05, 0x0b, 0x6f, 0x24, 0x2d, 0x8e, 0xeb, 0x7f, 0xfd, 0x69, 0xe5, 0x71, 0xf7, + 0xa8, 0xfb, 0xf8, 0xa6, 0x2a, 0x6c, 0x7e, 0xf8, 0x6d, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3f, 0xbe, + 0xe3, 0x10, 0xa2, 0x12, 0x00, 0x00, } diff --git a/proto/gnmi/gnmi_pb2.py b/proto/gnmi/gnmi_pb2.py index 313674f8..bdace9a8 100644 --- a/proto/gnmi/gnmi_pb2.py +++ b/proto/gnmi/gnmi_pb2.py @@ -16,15 +16,16 @@ from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2 +from github.com.openconfig.gnmi.proto.gnmi_ext import gnmi_ext_pb2 as github_dot_com_dot_openconfig_dot_gnmi_dot_proto_dot_gnmi__ext_dot_gnmi__ext__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='proto/gnmi/gnmi.proto', package='gnmi', syntax='proto3', - serialized_pb=_b('\n\x15proto/gnmi/gnmi.proto\x12\x04gnmi\x1a\x19google/protobuf/any.proto\x1a google/protobuf/descriptor.proto\"\x86\x01\n\x0cNotification\x12\x11\n\ttimestamp\x18\x01 \x01(\x03\x12\x1a\n\x06prefix\x18\x02 \x01(\x0b\x32\n.gnmi.Path\x12\r\n\x05\x61lias\x18\x03 \x01(\t\x12\x1c\n\x06update\x18\x04 \x03(\x0b\x32\x0c.gnmi.Update\x12\x1a\n\x06\x64\x65lete\x18\x05 \x03(\x0b\x32\n.gnmi.Path\"u\n\x06Update\x12\x18\n\x04path\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12\x1e\n\x05value\x18\x02 \x01(\x0b\x32\x0b.gnmi.ValueB\x02\x18\x01\x12\x1d\n\x03val\x18\x03 \x01(\x0b\x32\x10.gnmi.TypedValue\x12\x12\n\nduplicates\x18\x04 \x01(\r\"\xce\x02\n\nTypedValue\x12\x14\n\nstring_val\x18\x01 \x01(\tH\x00\x12\x11\n\x07int_val\x18\x02 \x01(\x03H\x00\x12\x12\n\x08uint_val\x18\x03 \x01(\x04H\x00\x12\x12\n\x08\x62ool_val\x18\x04 \x01(\x08H\x00\x12\x13\n\tbytes_val\x18\x05 \x01(\x0cH\x00\x12\x13\n\tfloat_val\x18\x06 \x01(\x02H\x00\x12&\n\x0b\x64\x65\x63imal_val\x18\x07 \x01(\x0b\x32\x0f.gnmi.Decimal64H\x00\x12)\n\x0cleaflist_val\x18\x08 \x01(\x0b\x32\x11.gnmi.ScalarArrayH\x00\x12\'\n\x07\x61ny_val\x18\t \x01(\x0b\x32\x14.google.protobuf.AnyH\x00\x12\x12\n\x08json_val\x18\n \x01(\x0cH\x00\x12\x17\n\rjson_ietf_val\x18\x0b \x01(\x0cH\x00\x12\x13\n\tascii_val\x18\x0c \x01(\tH\x00\x42\x07\n\x05value\"Y\n\x04Path\x12\x13\n\x07\x65lement\x18\x01 \x03(\tB\x02\x18\x01\x12\x0e\n\x06origin\x18\x02 \x01(\t\x12\x1c\n\x04\x65lem\x18\x03 \x03(\x0b\x32\x0e.gnmi.PathElem\x12\x0e\n\x06target\x18\x04 \x01(\t\"j\n\x08PathElem\x12\x0c\n\x04name\x18\x01 \x01(\t\x12$\n\x03key\x18\x02 \x03(\x0b\x32\x17.gnmi.PathElem.KeyEntry\x1a*\n\x08KeyEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"8\n\x05Value\x12\r\n\x05value\x18\x01 \x01(\x0c\x12\x1c\n\x04type\x18\x02 \x01(\x0e\x32\x0e.gnmi.Encoding:\x02\x18\x01\"N\n\x05\x45rror\x12\x0c\n\x04\x63ode\x18\x01 \x01(\r\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\"\n\x04\x64\x61ta\x18\x03 \x01(\x0b\x32\x14.google.protobuf.Any:\x02\x18\x01\".\n\tDecimal64\x12\x0e\n\x06\x64igits\x18\x01 \x01(\x04\x12\x11\n\tprecision\x18\x02 \x01(\r\"0\n\x0bScalarArray\x12!\n\x07\x65lement\x18\x01 \x03(\x0b\x32\x10.gnmi.TypedValue\"\x8a\x01\n\x10SubscribeRequest\x12+\n\tsubscribe\x18\x01 \x01(\x0b\x32\x16.gnmi.SubscriptionListH\x00\x12\x1a\n\x04poll\x18\x03 \x01(\x0b\x32\n.gnmi.PollH\x00\x12\"\n\x07\x61liases\x18\x04 \x01(\x0b\x32\x0f.gnmi.AliasListH\x00\x42\t\n\x07request\"\x06\n\x04Poll\"\x80\x01\n\x11SubscribeResponse\x12$\n\x06update\x18\x01 \x01(\x0b\x32\x12.gnmi.NotificationH\x00\x12\x17\n\rsync_response\x18\x03 \x01(\x08H\x00\x12 \n\x05\x65rror\x18\x04 \x01(\x0b\x32\x0b.gnmi.ErrorB\x02\x18\x01H\x00\x42\n\n\x08response\"\xd7\x02\n\x10SubscriptionList\x12\x1a\n\x06prefix\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12(\n\x0csubscription\x18\x02 \x03(\x0b\x32\x12.gnmi.Subscription\x12\x13\n\x0buse_aliases\x18\x03 \x01(\x08\x12\x1d\n\x03qos\x18\x04 \x01(\x0b\x32\x10.gnmi.QOSMarking\x12)\n\x04mode\x18\x05 \x01(\x0e\x32\x1b.gnmi.SubscriptionList.Mode\x12\x19\n\x11\x61llow_aggregation\x18\x06 \x01(\x08\x12#\n\nuse_models\x18\x07 \x03(\x0b\x32\x0f.gnmi.ModelData\x12 \n\x08\x65ncoding\x18\x08 \x01(\x0e\x32\x0e.gnmi.Encoding\x12\x14\n\x0cupdates_only\x18\t \x01(\x08\"&\n\x04Mode\x12\n\n\x06STREAM\x10\x00\x12\x08\n\x04ONCE\x10\x01\x12\x08\n\x04POLL\x10\x02\"\x9f\x01\n\x0cSubscription\x12\x18\n\x04path\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12$\n\x04mode\x18\x02 \x01(\x0e\x32\x16.gnmi.SubscriptionMode\x12\x17\n\x0fsample_interval\x18\x03 \x01(\x04\x12\x1a\n\x12suppress_redundant\x18\x04 \x01(\x08\x12\x1a\n\x12heartbeat_interval\x18\x05 \x01(\x04\"\x1d\n\nQOSMarking\x12\x0f\n\x07marking\x18\x01 \x01(\r\"0\n\x05\x41lias\x12\x18\n\x04path\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12\r\n\x05\x61lias\x18\x02 \x01(\t\"\'\n\tAliasList\x12\x1a\n\x05\x61lias\x18\x01 \x03(\x0b\x32\x0b.gnmi.Alias\"\x81\x01\n\nSetRequest\x12\x1a\n\x06prefix\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12\x1a\n\x06\x64\x65lete\x18\x02 \x03(\x0b\x32\n.gnmi.Path\x12\x1d\n\x07replace\x18\x03 \x03(\x0b\x32\x0c.gnmi.Update\x12\x1c\n\x06update\x18\x04 \x03(\x0b\x32\x0c.gnmi.Update\"\x84\x01\n\x0bSetResponse\x12\x1a\n\x06prefix\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12$\n\x08response\x18\x02 \x03(\x0b\x32\x12.gnmi.UpdateResult\x12 \n\x07message\x18\x03 \x01(\x0b\x32\x0b.gnmi.ErrorB\x02\x18\x01\x12\x11\n\ttimestamp\x18\x04 \x01(\x03\"\xca\x01\n\x0cUpdateResult\x12\x15\n\ttimestamp\x18\x01 \x01(\x03\x42\x02\x18\x01\x12\x18\n\x04path\x18\x02 \x01(\x0b\x32\n.gnmi.Path\x12 \n\x07message\x18\x03 \x01(\x0b\x32\x0b.gnmi.ErrorB\x02\x18\x01\x12(\n\x02op\x18\x04 \x01(\x0e\x32\x1c.gnmi.UpdateResult.Operation\"=\n\tOperation\x12\x0b\n\x07INVALID\x10\x00\x12\n\n\x06\x44\x45LETE\x10\x01\x12\x0b\n\x07REPLACE\x10\x02\x12\n\n\x06UPDATE\x10\x03\"\xef\x01\n\nGetRequest\x12\x1a\n\x06prefix\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12\x18\n\x04path\x18\x02 \x03(\x0b\x32\n.gnmi.Path\x12\'\n\x04type\x18\x03 \x01(\x0e\x32\x19.gnmi.GetRequest.DataType\x12 \n\x08\x65ncoding\x18\x05 \x01(\x0e\x32\x0e.gnmi.Encoding\x12#\n\nuse_models\x18\x06 \x03(\x0b\x32\x0f.gnmi.ModelData\";\n\x08\x44\x61taType\x12\x07\n\x03\x41LL\x10\x00\x12\n\n\x06\x43ONFIG\x10\x01\x12\t\n\x05STATE\x10\x02\x12\x0f\n\x0bOPERATIONAL\x10\x03\"W\n\x0bGetResponse\x12(\n\x0cnotification\x18\x01 \x03(\x0b\x32\x12.gnmi.Notification\x12\x1e\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x0b.gnmi.ErrorB\x02\x18\x01\"\x13\n\x11\x43\x61pabilityRequest\"\x82\x01\n\x12\x43\x61pabilityResponse\x12)\n\x10supported_models\x18\x01 \x03(\x0b\x32\x0f.gnmi.ModelData\x12+\n\x13supported_encodings\x18\x02 \x03(\x0e\x32\x0e.gnmi.Encoding\x12\x14\n\x0cgNMI_version\x18\x03 \x01(\t\"@\n\tModelData\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0corganization\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t*D\n\x08\x45ncoding\x12\x08\n\x04JSON\x10\x00\x12\t\n\x05\x42YTES\x10\x01\x12\t\n\x05PROTO\x10\x02\x12\t\n\x05\x41SCII\x10\x03\x12\r\n\tJSON_IETF\x10\x04*A\n\x10SubscriptionMode\x12\x12\n\x0eTARGET_DEFINED\x10\x00\x12\r\n\tON_CHANGE\x10\x01\x12\n\n\x06SAMPLE\x10\x02\x32\xe3\x01\n\x04gNMI\x12\x41\n\x0c\x43\x61pabilities\x12\x17.gnmi.CapabilityRequest\x1a\x18.gnmi.CapabilityResponse\x12*\n\x03Get\x12\x10.gnmi.GetRequest\x1a\x11.gnmi.GetResponse\x12*\n\x03Set\x12\x10.gnmi.SetRequest\x1a\x11.gnmi.SetResponse\x12@\n\tSubscribe\x12\x16.gnmi.SubscribeRequest\x1a\x17.gnmi.SubscribeResponse(\x01\x30\x01:3\n\x0cgnmi_service\x12\x1c.google.protobuf.FileOptions\x18\xe9\x07 \x01(\tB\x08\xca>\x05\x30.5.0b\x06proto3') + serialized_pb=_b('\n\x15proto/gnmi/gnmi.proto\x12\x04gnmi\x1a\x19google/protobuf/any.proto\x1a google/protobuf/descriptor.proto\x1a\x38github.com/openconfig/gnmi/proto/gnmi_ext/gnmi_ext.proto\"\x86\x01\n\x0cNotification\x12\x11\n\ttimestamp\x18\x01 \x01(\x03\x12\x1a\n\x06prefix\x18\x02 \x01(\x0b\x32\n.gnmi.Path\x12\r\n\x05\x61lias\x18\x03 \x01(\t\x12\x1c\n\x06update\x18\x04 \x03(\x0b\x32\x0c.gnmi.Update\x12\x1a\n\x06\x64\x65lete\x18\x05 \x03(\x0b\x32\n.gnmi.Path\"u\n\x06Update\x12\x18\n\x04path\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12\x1e\n\x05value\x18\x02 \x01(\x0b\x32\x0b.gnmi.ValueB\x02\x18\x01\x12\x1d\n\x03val\x18\x03 \x01(\x0b\x32\x10.gnmi.TypedValue\x12\x12\n\nduplicates\x18\x04 \x01(\r\"\xce\x02\n\nTypedValue\x12\x14\n\nstring_val\x18\x01 \x01(\tH\x00\x12\x11\n\x07int_val\x18\x02 \x01(\x03H\x00\x12\x12\n\x08uint_val\x18\x03 \x01(\x04H\x00\x12\x12\n\x08\x62ool_val\x18\x04 \x01(\x08H\x00\x12\x13\n\tbytes_val\x18\x05 \x01(\x0cH\x00\x12\x13\n\tfloat_val\x18\x06 \x01(\x02H\x00\x12&\n\x0b\x64\x65\x63imal_val\x18\x07 \x01(\x0b\x32\x0f.gnmi.Decimal64H\x00\x12)\n\x0cleaflist_val\x18\x08 \x01(\x0b\x32\x11.gnmi.ScalarArrayH\x00\x12\'\n\x07\x61ny_val\x18\t \x01(\x0b\x32\x14.google.protobuf.AnyH\x00\x12\x12\n\x08json_val\x18\n \x01(\x0cH\x00\x12\x17\n\rjson_ietf_val\x18\x0b \x01(\x0cH\x00\x12\x13\n\tascii_val\x18\x0c \x01(\tH\x00\x42\x07\n\x05value\"Y\n\x04Path\x12\x13\n\x07\x65lement\x18\x01 \x03(\tB\x02\x18\x01\x12\x0e\n\x06origin\x18\x02 \x01(\t\x12\x1c\n\x04\x65lem\x18\x03 \x03(\x0b\x32\x0e.gnmi.PathElem\x12\x0e\n\x06target\x18\x04 \x01(\t\"j\n\x08PathElem\x12\x0c\n\x04name\x18\x01 \x01(\t\x12$\n\x03key\x18\x02 \x03(\x0b\x32\x17.gnmi.PathElem.KeyEntry\x1a*\n\x08KeyEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"8\n\x05Value\x12\r\n\x05value\x18\x01 \x01(\x0c\x12\x1c\n\x04type\x18\x02 \x01(\x0e\x32\x0e.gnmi.Encoding:\x02\x18\x01\"N\n\x05\x45rror\x12\x0c\n\x04\x63ode\x18\x01 \x01(\r\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\"\n\x04\x64\x61ta\x18\x03 \x01(\x0b\x32\x14.google.protobuf.Any:\x02\x18\x01\".\n\tDecimal64\x12\x0e\n\x06\x64igits\x18\x01 \x01(\x03\x12\x11\n\tprecision\x18\x02 \x01(\r\"0\n\x0bScalarArray\x12!\n\x07\x65lement\x18\x01 \x03(\x0b\x32\x10.gnmi.TypedValue\"\xb2\x01\n\x10SubscribeRequest\x12+\n\tsubscribe\x18\x01 \x01(\x0b\x32\x16.gnmi.SubscriptionListH\x00\x12\x1a\n\x04poll\x18\x03 \x01(\x0b\x32\n.gnmi.PollH\x00\x12\"\n\x07\x61liases\x18\x04 \x01(\x0b\x32\x0f.gnmi.AliasListH\x00\x12&\n\textension\x18\x05 \x03(\x0b\x32\x13.gnmi_ext.ExtensionB\t\n\x07request\"\x06\n\x04Poll\"\xa8\x01\n\x11SubscribeResponse\x12$\n\x06update\x18\x01 \x01(\x0b\x32\x12.gnmi.NotificationH\x00\x12\x17\n\rsync_response\x18\x03 \x01(\x08H\x00\x12 \n\x05\x65rror\x18\x04 \x01(\x0b\x32\x0b.gnmi.ErrorB\x02\x18\x01H\x00\x12&\n\textension\x18\x05 \x03(\x0b\x32\x13.gnmi_ext.ExtensionB\n\n\x08response\"\xd7\x02\n\x10SubscriptionList\x12\x1a\n\x06prefix\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12(\n\x0csubscription\x18\x02 \x03(\x0b\x32\x12.gnmi.Subscription\x12\x13\n\x0buse_aliases\x18\x03 \x01(\x08\x12\x1d\n\x03qos\x18\x04 \x01(\x0b\x32\x10.gnmi.QOSMarking\x12)\n\x04mode\x18\x05 \x01(\x0e\x32\x1b.gnmi.SubscriptionList.Mode\x12\x19\n\x11\x61llow_aggregation\x18\x06 \x01(\x08\x12#\n\nuse_models\x18\x07 \x03(\x0b\x32\x0f.gnmi.ModelData\x12 \n\x08\x65ncoding\x18\x08 \x01(\x0e\x32\x0e.gnmi.Encoding\x12\x14\n\x0cupdates_only\x18\t \x01(\x08\"&\n\x04Mode\x12\n\n\x06STREAM\x10\x00\x12\x08\n\x04ONCE\x10\x01\x12\x08\n\x04POLL\x10\x02\"\x9f\x01\n\x0cSubscription\x12\x18\n\x04path\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12$\n\x04mode\x18\x02 \x01(\x0e\x32\x16.gnmi.SubscriptionMode\x12\x17\n\x0fsample_interval\x18\x03 \x01(\x04\x12\x1a\n\x12suppress_redundant\x18\x04 \x01(\x08\x12\x1a\n\x12heartbeat_interval\x18\x05 \x01(\x04\"\x1d\n\nQOSMarking\x12\x0f\n\x07marking\x18\x01 \x01(\r\"0\n\x05\x41lias\x12\x18\n\x04path\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12\r\n\x05\x61lias\x18\x02 \x01(\t\"\'\n\tAliasList\x12\x1a\n\x05\x61lias\x18\x01 \x03(\x0b\x32\x0b.gnmi.Alias\"\xa9\x01\n\nSetRequest\x12\x1a\n\x06prefix\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12\x1a\n\x06\x64\x65lete\x18\x02 \x03(\x0b\x32\n.gnmi.Path\x12\x1d\n\x07replace\x18\x03 \x03(\x0b\x32\x0c.gnmi.Update\x12\x1c\n\x06update\x18\x04 \x03(\x0b\x32\x0c.gnmi.Update\x12&\n\textension\x18\x05 \x03(\x0b\x32\x13.gnmi_ext.Extension\"\xac\x01\n\x0bSetResponse\x12\x1a\n\x06prefix\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12$\n\x08response\x18\x02 \x03(\x0b\x32\x12.gnmi.UpdateResult\x12 \n\x07message\x18\x03 \x01(\x0b\x32\x0b.gnmi.ErrorB\x02\x18\x01\x12\x11\n\ttimestamp\x18\x04 \x01(\x03\x12&\n\textension\x18\x05 \x03(\x0b\x32\x13.gnmi_ext.Extension\"\xca\x01\n\x0cUpdateResult\x12\x15\n\ttimestamp\x18\x01 \x01(\x03\x42\x02\x18\x01\x12\x18\n\x04path\x18\x02 \x01(\x0b\x32\n.gnmi.Path\x12 \n\x07message\x18\x03 \x01(\x0b\x32\x0b.gnmi.ErrorB\x02\x18\x01\x12(\n\x02op\x18\x04 \x01(\x0e\x32\x1c.gnmi.UpdateResult.Operation\"=\n\tOperation\x12\x0b\n\x07INVALID\x10\x00\x12\n\n\x06\x44\x45LETE\x10\x01\x12\x0b\n\x07REPLACE\x10\x02\x12\n\n\x06UPDATE\x10\x03\"\x97\x02\n\nGetRequest\x12\x1a\n\x06prefix\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12\x18\n\x04path\x18\x02 \x03(\x0b\x32\n.gnmi.Path\x12\'\n\x04type\x18\x03 \x01(\x0e\x32\x19.gnmi.GetRequest.DataType\x12 \n\x08\x65ncoding\x18\x05 \x01(\x0e\x32\x0e.gnmi.Encoding\x12#\n\nuse_models\x18\x06 \x03(\x0b\x32\x0f.gnmi.ModelData\x12&\n\textension\x18\x07 \x03(\x0b\x32\x13.gnmi_ext.Extension\";\n\x08\x44\x61taType\x12\x07\n\x03\x41LL\x10\x00\x12\n\n\x06\x43ONFIG\x10\x01\x12\t\n\x05STATE\x10\x02\x12\x0f\n\x0bOPERATIONAL\x10\x03\"\x7f\n\x0bGetResponse\x12(\n\x0cnotification\x18\x01 \x03(\x0b\x32\x12.gnmi.Notification\x12\x1e\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x0b.gnmi.ErrorB\x02\x18\x01\x12&\n\textension\x18\x03 \x03(\x0b\x32\x13.gnmi_ext.Extension\";\n\x11\x43\x61pabilityRequest\x12&\n\textension\x18\x01 \x03(\x0b\x32\x13.gnmi_ext.Extension\"\xaa\x01\n\x12\x43\x61pabilityResponse\x12)\n\x10supported_models\x18\x01 \x03(\x0b\x32\x0f.gnmi.ModelData\x12+\n\x13supported_encodings\x18\x02 \x03(\x0e\x32\x0e.gnmi.Encoding\x12\x14\n\x0cgNMI_version\x18\x03 \x01(\t\x12&\n\textension\x18\x04 \x03(\x0b\x32\x13.gnmi_ext.Extension\"@\n\tModelData\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0corganization\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t*D\n\x08\x45ncoding\x12\x08\n\x04JSON\x10\x00\x12\t\n\x05\x42YTES\x10\x01\x12\t\n\x05PROTO\x10\x02\x12\t\n\x05\x41SCII\x10\x03\x12\r\n\tJSON_IETF\x10\x04*A\n\x10SubscriptionMode\x12\x12\n\x0eTARGET_DEFINED\x10\x00\x12\r\n\tON_CHANGE\x10\x01\x12\n\n\x06SAMPLE\x10\x02\x32\xe3\x01\n\x04gNMI\x12\x41\n\x0c\x43\x61pabilities\x12\x17.gnmi.CapabilityRequest\x1a\x18.gnmi.CapabilityResponse\x12*\n\x03Get\x12\x10.gnmi.GetRequest\x1a\x11.gnmi.GetResponse\x12*\n\x03Set\x12\x10.gnmi.SetRequest\x1a\x11.gnmi.SetResponse\x12@\n\tSubscribe\x12\x16.gnmi.SubscribeRequest\x1a\x17.gnmi.SubscribeResponse(\x01\x30\x01:3\n\x0cgnmi_service\x12\x1c.google.protobuf.FileOptions\x18\xe9\x07 \x01(\tB\x08\xca>\x05\x30.6.0b\x06proto3') , - dependencies=[google_dot_protobuf_dot_any__pb2.DESCRIPTOR,google_dot_protobuf_dot_descriptor__pb2.DESCRIPTOR,]) + dependencies=[google_dot_protobuf_dot_any__pb2.DESCRIPTOR,google_dot_protobuf_dot_descriptor__pb2.DESCRIPTOR,github_dot_com_dot_openconfig_dot_gnmi_dot_proto_dot_gnmi__ext_dot_gnmi__ext__pb2.DESCRIPTOR,]) _ENCODING = _descriptor.EnumDescriptor( name='Encoding', @@ -55,8 +56,8 @@ ], containing_type=None, options=None, - serialized_start=3053, - serialized_end=3121, + serialized_start=3431, + serialized_end=3499, ) _sym_db.RegisterEnumDescriptor(_ENCODING) @@ -82,8 +83,8 @@ ], containing_type=None, options=None, - serialized_start=3123, - serialized_end=3188, + serialized_start=3501, + serialized_end=3566, ) _sym_db.RegisterEnumDescriptor(_SUBSCRIPTIONMODE) @@ -104,7 +105,7 @@ has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=True, extension_scope=None, - options=None) + options=None, file=DESCRIPTOR) _SUBSCRIPTIONLIST_MODE = _descriptor.EnumDescriptor( name='Mode', @@ -127,8 +128,8 @@ ], containing_type=None, options=None, - serialized_start=1706, - serialized_end=1744, + serialized_start=1844, + serialized_end=1882, ) _sym_db.RegisterEnumDescriptor(_SUBSCRIPTIONLIST_MODE) @@ -157,8 +158,8 @@ ], containing_type=None, options=None, - serialized_start=2439, - serialized_end=2500, + serialized_start=2657, + serialized_end=2718, ) _sym_db.RegisterEnumDescriptor(_UPDATERESULT_OPERATION) @@ -187,8 +188,8 @@ ], containing_type=None, options=None, - serialized_start=2683, - serialized_end=2742, + serialized_start=2941, + serialized_end=3000, ) _sym_db.RegisterEnumDescriptor(_GETREQUEST_DATATYPE) @@ -206,35 +207,35 @@ has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='prefix', full_name='gnmi.Notification.prefix', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='alias', full_name='gnmi.Notification.alias', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='update', full_name='gnmi.Notification.update', index=3, number=4, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='delete', full_name='gnmi.Notification.delete', index=4, number=5, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -247,8 +248,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=93, - serialized_end=227, + serialized_start=151, + serialized_end=285, ) @@ -265,28 +266,28 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='value', full_name='gnmi.Update.value', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001'))), + options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001')), file=DESCRIPTOR), _descriptor.FieldDescriptor( name='val', full_name='gnmi.Update.val', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='duplicates', full_name='gnmi.Update.duplicates', index=3, number=4, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -299,8 +300,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=229, - serialized_end=346, + serialized_start=287, + serialized_end=404, ) @@ -317,84 +318,84 @@ has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='int_val', full_name='gnmi.TypedValue.int_val', index=1, number=2, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='uint_val', full_name='gnmi.TypedValue.uint_val', index=2, number=3, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='bool_val', full_name='gnmi.TypedValue.bool_val', index=3, number=4, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='bytes_val', full_name='gnmi.TypedValue.bytes_val', index=4, number=5, type=12, cpp_type=9, label=1, has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='float_val', full_name='gnmi.TypedValue.float_val', index=5, number=6, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='decimal_val', full_name='gnmi.TypedValue.decimal_val', index=6, number=7, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='leaflist_val', full_name='gnmi.TypedValue.leaflist_val', index=7, number=8, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='any_val', full_name='gnmi.TypedValue.any_val', index=8, number=9, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='json_val', full_name='gnmi.TypedValue.json_val', index=9, number=10, type=12, cpp_type=9, label=1, has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='json_ietf_val', full_name='gnmi.TypedValue.json_ietf_val', index=10, number=11, type=12, cpp_type=9, label=1, has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='ascii_val', full_name='gnmi.TypedValue.ascii_val', index=11, number=12, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -410,8 +411,8 @@ name='value', full_name='gnmi.TypedValue.value', index=0, containing_type=None, fields=[]), ], - serialized_start=349, - serialized_end=683, + serialized_start=407, + serialized_end=741, ) @@ -428,28 +429,28 @@ has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001'))), + options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001')), file=DESCRIPTOR), _descriptor.FieldDescriptor( name='origin', full_name='gnmi.Path.origin', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='elem', full_name='gnmi.Path.elem', index=2, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='target', full_name='gnmi.Path.target', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -462,8 +463,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=685, - serialized_end=774, + serialized_start=743, + serialized_end=832, ) @@ -480,14 +481,14 @@ has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='value', full_name='gnmi.PathElem.KeyEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -500,8 +501,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=840, - serialized_end=882, + serialized_start=898, + serialized_end=940, ) _PATHELEM = _descriptor.Descriptor( @@ -517,14 +518,14 @@ has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='key', full_name='gnmi.PathElem.key', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -537,8 +538,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=776, - serialized_end=882, + serialized_start=834, + serialized_end=940, ) @@ -555,14 +556,14 @@ has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='type', full_name='gnmi.Value.type', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -575,8 +576,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=884, - serialized_end=940, + serialized_start=942, + serialized_end=998, ) @@ -593,21 +594,21 @@ has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='message', full_name='gnmi.Error.message', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='data', full_name='gnmi.Error.data', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -620,8 +621,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=942, - serialized_end=1020, + serialized_start=1000, + serialized_end=1078, ) @@ -634,18 +635,18 @@ fields=[ _descriptor.FieldDescriptor( name='digits', full_name='gnmi.Decimal64.digits', index=0, - number=1, type=4, cpp_type=4, label=1, + number=1, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='precision', full_name='gnmi.Decimal64.precision', index=1, number=2, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -658,8 +659,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1022, - serialized_end=1068, + serialized_start=1080, + serialized_end=1126, ) @@ -676,7 +677,7 @@ has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -689,8 +690,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1070, - serialized_end=1118, + serialized_start=1128, + serialized_end=1176, ) @@ -707,21 +708,28 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='poll', full_name='gnmi.SubscribeRequest.poll', index=1, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='aliases', full_name='gnmi.SubscribeRequest.aliases', index=2, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='extension', full_name='gnmi.SubscribeRequest.extension', index=3, + number=5, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -737,8 +745,8 @@ name='request', full_name='gnmi.SubscribeRequest.request', index=0, containing_type=None, fields=[]), ], - serialized_start=1121, - serialized_end=1259, + serialized_start=1179, + serialized_end=1357, ) @@ -761,8 +769,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1261, - serialized_end=1267, + serialized_start=1359, + serialized_end=1365, ) @@ -779,21 +787,28 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='sync_response', full_name='gnmi.SubscribeResponse.sync_response', index=1, number=3, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='error', full_name='gnmi.SubscribeResponse.error', index=2, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001'))), + options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001')), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='extension', full_name='gnmi.SubscribeResponse.extension', index=3, + number=5, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -809,8 +824,8 @@ name='response', full_name='gnmi.SubscribeResponse.response', index=0, containing_type=None, fields=[]), ], - serialized_start=1270, - serialized_end=1398, + serialized_start=1368, + serialized_end=1536, ) @@ -827,63 +842,63 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='subscription', full_name='gnmi.SubscriptionList.subscription', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='use_aliases', full_name='gnmi.SubscriptionList.use_aliases', index=2, number=3, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='qos', full_name='gnmi.SubscriptionList.qos', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='mode', full_name='gnmi.SubscriptionList.mode', index=4, number=5, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='allow_aggregation', full_name='gnmi.SubscriptionList.allow_aggregation', index=5, number=6, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='use_models', full_name='gnmi.SubscriptionList.use_models', index=6, number=7, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='encoding', full_name='gnmi.SubscriptionList.encoding', index=7, number=8, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='updates_only', full_name='gnmi.SubscriptionList.updates_only', index=8, number=9, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -897,8 +912,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1401, - serialized_end=1744, + serialized_start=1539, + serialized_end=1882, ) @@ -915,35 +930,35 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='mode', full_name='gnmi.Subscription.mode', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='sample_interval', full_name='gnmi.Subscription.sample_interval', index=2, number=3, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='suppress_redundant', full_name='gnmi.Subscription.suppress_redundant', index=3, number=4, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='heartbeat_interval', full_name='gnmi.Subscription.heartbeat_interval', index=4, number=5, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -956,8 +971,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1747, - serialized_end=1906, + serialized_start=1885, + serialized_end=2044, ) @@ -974,7 +989,7 @@ has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -987,8 +1002,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1908, - serialized_end=1937, + serialized_start=2046, + serialized_end=2075, ) @@ -1005,14 +1020,14 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='alias', full_name='gnmi.Alias.alias', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -1025,8 +1040,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1939, - serialized_end=1987, + serialized_start=2077, + serialized_end=2125, ) @@ -1043,7 +1058,7 @@ has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -1056,8 +1071,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1989, - serialized_end=2028, + serialized_start=2127, + serialized_end=2166, ) @@ -1074,28 +1089,35 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='delete', full_name='gnmi.SetRequest.delete', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='replace', full_name='gnmi.SetRequest.replace', index=2, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='update', full_name='gnmi.SetRequest.update', index=3, number=4, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='extension', full_name='gnmi.SetRequest.extension', index=4, + number=5, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -1108,8 +1130,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2031, - serialized_end=2160, + serialized_start=2169, + serialized_end=2338, ) @@ -1126,28 +1148,35 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='response', full_name='gnmi.SetResponse.response', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='message', full_name='gnmi.SetResponse.message', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001'))), + options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001')), file=DESCRIPTOR), _descriptor.FieldDescriptor( name='timestamp', full_name='gnmi.SetResponse.timestamp', index=3, number=4, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='extension', full_name='gnmi.SetResponse.extension', index=4, + number=5, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -1160,8 +1189,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2163, - serialized_end=2295, + serialized_start=2341, + serialized_end=2513, ) @@ -1178,28 +1207,28 @@ has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001'))), + options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001')), file=DESCRIPTOR), _descriptor.FieldDescriptor( name='path', full_name='gnmi.UpdateResult.path', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='message', full_name='gnmi.UpdateResult.message', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001'))), + options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001')), file=DESCRIPTOR), _descriptor.FieldDescriptor( name='op', full_name='gnmi.UpdateResult.op', index=3, number=4, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -1213,8 +1242,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2298, - serialized_end=2500, + serialized_start=2516, + serialized_end=2718, ) @@ -1231,35 +1260,42 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='path', full_name='gnmi.GetRequest.path', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='type', full_name='gnmi.GetRequest.type', index=2, number=3, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='encoding', full_name='gnmi.GetRequest.encoding', index=3, number=5, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='use_models', full_name='gnmi.GetRequest.use_models', index=4, number=6, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='extension', full_name='gnmi.GetRequest.extension', index=5, + number=7, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -1273,8 +1309,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2503, - serialized_end=2742, + serialized_start=2721, + serialized_end=3000, ) @@ -1291,14 +1327,21 @@ has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='error', full_name='gnmi.GetResponse.error', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001'))), + options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001')), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='extension', full_name='gnmi.GetResponse.extension', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -1311,8 +1354,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2744, - serialized_end=2831, + serialized_start=3002, + serialized_end=3129, ) @@ -1323,6 +1366,13 @@ file=DESCRIPTOR, containing_type=None, fields=[ + _descriptor.FieldDescriptor( + name='extension', full_name='gnmi.CapabilityRequest.extension', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -1335,8 +1385,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2833, - serialized_end=2852, + serialized_start=3131, + serialized_end=3190, ) @@ -1353,21 +1403,28 @@ has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='supported_encodings', full_name='gnmi.CapabilityResponse.supported_encodings', index=1, number=2, type=14, cpp_type=8, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='gNMI_version', full_name='gnmi.CapabilityResponse.gNMI_version', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='extension', full_name='gnmi.CapabilityResponse.extension', index=3, + number=4, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -1380,8 +1437,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2855, - serialized_end=2985, + serialized_start=3193, + serialized_end=3363, ) @@ -1398,21 +1455,21 @@ has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='organization', full_name='gnmi.ModelData.organization', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='version', full_name='gnmi.ModelData.version', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -1425,8 +1482,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2987, - serialized_end=3051, + serialized_start=3365, + serialized_end=3429, ) _NOTIFICATION.fields_by_name['prefix'].message_type = _PATH @@ -1483,6 +1540,7 @@ _SUBSCRIBEREQUEST.fields_by_name['subscribe'].message_type = _SUBSCRIPTIONLIST _SUBSCRIBEREQUEST.fields_by_name['poll'].message_type = _POLL _SUBSCRIBEREQUEST.fields_by_name['aliases'].message_type = _ALIASLIST +_SUBSCRIBEREQUEST.fields_by_name['extension'].message_type = github_dot_com_dot_openconfig_dot_gnmi_dot_proto_dot_gnmi__ext_dot_gnmi__ext__pb2._EXTENSION _SUBSCRIBEREQUEST.oneofs_by_name['request'].fields.append( _SUBSCRIBEREQUEST.fields_by_name['subscribe']) _SUBSCRIBEREQUEST.fields_by_name['subscribe'].containing_oneof = _SUBSCRIBEREQUEST.oneofs_by_name['request'] @@ -1494,6 +1552,7 @@ _SUBSCRIBEREQUEST.fields_by_name['aliases'].containing_oneof = _SUBSCRIBEREQUEST.oneofs_by_name['request'] _SUBSCRIBERESPONSE.fields_by_name['update'].message_type = _NOTIFICATION _SUBSCRIBERESPONSE.fields_by_name['error'].message_type = _ERROR +_SUBSCRIBERESPONSE.fields_by_name['extension'].message_type = github_dot_com_dot_openconfig_dot_gnmi_dot_proto_dot_gnmi__ext_dot_gnmi__ext__pb2._EXTENSION _SUBSCRIBERESPONSE.oneofs_by_name['response'].fields.append( _SUBSCRIBERESPONSE.fields_by_name['update']) _SUBSCRIBERESPONSE.fields_by_name['update'].containing_oneof = _SUBSCRIBERESPONSE.oneofs_by_name['response'] @@ -1518,9 +1577,11 @@ _SETREQUEST.fields_by_name['delete'].message_type = _PATH _SETREQUEST.fields_by_name['replace'].message_type = _UPDATE _SETREQUEST.fields_by_name['update'].message_type = _UPDATE +_SETREQUEST.fields_by_name['extension'].message_type = github_dot_com_dot_openconfig_dot_gnmi_dot_proto_dot_gnmi__ext_dot_gnmi__ext__pb2._EXTENSION _SETRESPONSE.fields_by_name['prefix'].message_type = _PATH _SETRESPONSE.fields_by_name['response'].message_type = _UPDATERESULT _SETRESPONSE.fields_by_name['message'].message_type = _ERROR +_SETRESPONSE.fields_by_name['extension'].message_type = github_dot_com_dot_openconfig_dot_gnmi_dot_proto_dot_gnmi__ext_dot_gnmi__ext__pb2._EXTENSION _UPDATERESULT.fields_by_name['path'].message_type = _PATH _UPDATERESULT.fields_by_name['message'].message_type = _ERROR _UPDATERESULT.fields_by_name['op'].enum_type = _UPDATERESULT_OPERATION @@ -1530,11 +1591,15 @@ _GETREQUEST.fields_by_name['type'].enum_type = _GETREQUEST_DATATYPE _GETREQUEST.fields_by_name['encoding'].enum_type = _ENCODING _GETREQUEST.fields_by_name['use_models'].message_type = _MODELDATA +_GETREQUEST.fields_by_name['extension'].message_type = github_dot_com_dot_openconfig_dot_gnmi_dot_proto_dot_gnmi__ext_dot_gnmi__ext__pb2._EXTENSION _GETREQUEST_DATATYPE.containing_type = _GETREQUEST _GETRESPONSE.fields_by_name['notification'].message_type = _NOTIFICATION _GETRESPONSE.fields_by_name['error'].message_type = _ERROR +_GETRESPONSE.fields_by_name['extension'].message_type = github_dot_com_dot_openconfig_dot_gnmi_dot_proto_dot_gnmi__ext_dot_gnmi__ext__pb2._EXTENSION +_CAPABILITYREQUEST.fields_by_name['extension'].message_type = github_dot_com_dot_openconfig_dot_gnmi_dot_proto_dot_gnmi__ext_dot_gnmi__ext__pb2._EXTENSION _CAPABILITYRESPONSE.fields_by_name['supported_models'].message_type = _MODELDATA _CAPABILITYRESPONSE.fields_by_name['supported_encodings'].enum_type = _ENCODING +_CAPABILITYRESPONSE.fields_by_name['extension'].message_type = github_dot_com_dot_openconfig_dot_gnmi_dot_proto_dot_gnmi__ext_dot_gnmi__ext__pb2._EXTENSION DESCRIPTOR.message_types_by_name['Notification'] = _NOTIFICATION DESCRIPTOR.message_types_by_name['Update'] = _UPDATE DESCRIPTOR.message_types_by_name['TypedValue'] = _TYPEDVALUE @@ -1751,7 +1816,7 @@ google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(gnmi_service) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\312>\0050.5.0')) +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\312>\0050.6.0')) _UPDATE.fields_by_name['value'].has_options = True _UPDATE.fields_by_name['value']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001')) _PATH.fields_by_name['element'].has_options = True @@ -1772,266 +1837,55 @@ _UPDATERESULT.fields_by_name['message']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001')) _GETRESPONSE.fields_by_name['error'].has_options = True _GETRESPONSE.fields_by_name['error']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001')) -try: - # THESE ELEMENTS WILL BE DEPRECATED. - # Please use the generated *_pb2_grpc.py files instead. - import grpc - from grpc.beta import implementations as beta_implementations - from grpc.beta import interfaces as beta_interfaces - from grpc.framework.common import cardinality - from grpc.framework.interfaces.face import utilities as face_utilities - - - class gNMIStub(object): - # missing associated documentation comment in .proto file - pass - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Capabilities = channel.unary_unary( - '/gnmi.gNMI/Capabilities', - request_serializer=CapabilityRequest.SerializeToString, - response_deserializer=CapabilityResponse.FromString, - ) - self.Get = channel.unary_unary( - '/gnmi.gNMI/Get', - request_serializer=GetRequest.SerializeToString, - response_deserializer=GetResponse.FromString, - ) - self.Set = channel.unary_unary( - '/gnmi.gNMI/Set', - request_serializer=SetRequest.SerializeToString, - response_deserializer=SetResponse.FromString, - ) - self.Subscribe = channel.stream_stream( - '/gnmi.gNMI/Subscribe', - request_serializer=SubscribeRequest.SerializeToString, - response_deserializer=SubscribeResponse.FromString, - ) - - - class gNMIServicer(object): - # missing associated documentation comment in .proto file - pass - - def Capabilities(self, request, context): - """Capabilities allows the client to retrieve the set of capabilities that - is supported by the target. This allows the target to validate the - service version that is implemented and retrieve the set of models that - the target supports. The models can then be specified in subsequent RPCs - to restrict the set of data that is utilized. - Reference: gNMI Specification Section 3.2 - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Get(self, request, context): - """Retrieve a snapshot of data from the target. A Get RPC requests that the - target snapshots a subset of the data tree as specified by the paths - included in the message and serializes this to be returned to the - client using the specified encoding. - Reference: gNMI Specification Section 3.3 - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Set(self, request, context): - """Set allows the client to modify the state of data on the target. The - paths to modified along with the new values that the client wishes - to set the value to. - Reference: gNMI Specification Section 3.4 - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Subscribe(self, request_iterator, context): - """Subscribe allows a client to request the target to send it values - of particular paths within the data tree. These values may be streamed - at a particular cadence (STREAM), sent one off on a long-lived channel - (POLL), or sent as a one-off retrieval (ONCE). - Reference: gNMI Specification Section 3.5 - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - - def add_gNMIServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Capabilities': grpc.unary_unary_rpc_method_handler( - servicer.Capabilities, - request_deserializer=CapabilityRequest.FromString, - response_serializer=CapabilityResponse.SerializeToString, - ), - 'Get': grpc.unary_unary_rpc_method_handler( - servicer.Get, - request_deserializer=GetRequest.FromString, - response_serializer=GetResponse.SerializeToString, - ), - 'Set': grpc.unary_unary_rpc_method_handler( - servicer.Set, - request_deserializer=SetRequest.FromString, - response_serializer=SetResponse.SerializeToString, - ), - 'Subscribe': grpc.stream_stream_rpc_method_handler( - servicer.Subscribe, - request_deserializer=SubscribeRequest.FromString, - response_serializer=SubscribeResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'gnmi.gNMI', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - class BetagNMIServicer(object): - """The Beta API is deprecated for 0.15.0 and later. - - It is recommended to use the GA API (classes and functions in this - file not marked beta) for all further purposes. This class was generated - only to ease transition from grpcio<0.15.0 to grpcio>=0.15.0.""" - # missing associated documentation comment in .proto file - pass - def Capabilities(self, request, context): - """Capabilities allows the client to retrieve the set of capabilities that - is supported by the target. This allows the target to validate the - service version that is implemented and retrieve the set of models that - the target supports. The models can then be specified in subsequent RPCs - to restrict the set of data that is utilized. - Reference: gNMI Specification Section 3.2 - """ - context.code(beta_interfaces.StatusCode.UNIMPLEMENTED) - def Get(self, request, context): - """Retrieve a snapshot of data from the target. A Get RPC requests that the - target snapshots a subset of the data tree as specified by the paths - included in the message and serializes this to be returned to the - client using the specified encoding. - Reference: gNMI Specification Section 3.3 - """ - context.code(beta_interfaces.StatusCode.UNIMPLEMENTED) - def Set(self, request, context): - """Set allows the client to modify the state of data on the target. The - paths to modified along with the new values that the client wishes - to set the value to. - Reference: gNMI Specification Section 3.4 - """ - context.code(beta_interfaces.StatusCode.UNIMPLEMENTED) - def Subscribe(self, request_iterator, context): - """Subscribe allows a client to request the target to send it values - of particular paths within the data tree. These values may be streamed - at a particular cadence (STREAM), sent one off on a long-lived channel - (POLL), or sent as a one-off retrieval (ONCE). - Reference: gNMI Specification Section 3.5 - """ - context.code(beta_interfaces.StatusCode.UNIMPLEMENTED) - - - class BetagNMIStub(object): - """The Beta API is deprecated for 0.15.0 and later. - - It is recommended to use the GA API (classes and functions in this - file not marked beta) for all further purposes. This class was generated - only to ease transition from grpcio<0.15.0 to grpcio>=0.15.0.""" - # missing associated documentation comment in .proto file - pass - def Capabilities(self, request, timeout, metadata=None, with_call=False, protocol_options=None): - """Capabilities allows the client to retrieve the set of capabilities that - is supported by the target. This allows the target to validate the - service version that is implemented and retrieve the set of models that - the target supports. The models can then be specified in subsequent RPCs - to restrict the set of data that is utilized. - Reference: gNMI Specification Section 3.2 - """ - raise NotImplementedError() - Capabilities.future = None - def Get(self, request, timeout, metadata=None, with_call=False, protocol_options=None): - """Retrieve a snapshot of data from the target. A Get RPC requests that the - target snapshots a subset of the data tree as specified by the paths - included in the message and serializes this to be returned to the - client using the specified encoding. - Reference: gNMI Specification Section 3.3 - """ - raise NotImplementedError() - Get.future = None - def Set(self, request, timeout, metadata=None, with_call=False, protocol_options=None): - """Set allows the client to modify the state of data on the target. The - paths to modified along with the new values that the client wishes - to set the value to. - Reference: gNMI Specification Section 3.4 - """ - raise NotImplementedError() - Set.future = None - def Subscribe(self, request_iterator, timeout, metadata=None, with_call=False, protocol_options=None): - """Subscribe allows a client to request the target to send it values - of particular paths within the data tree. These values may be streamed - at a particular cadence (STREAM), sent one off on a long-lived channel - (POLL), or sent as a one-off retrieval (ONCE). - Reference: gNMI Specification Section 3.5 - """ - raise NotImplementedError() - - - def beta_create_gNMI_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=None): - """The Beta API is deprecated for 0.15.0 and later. - - It is recommended to use the GA API (classes and functions in this - file not marked beta) for all further purposes. This function was - generated only to ease transition from grpcio<0.15.0 to grpcio>=0.15.0""" - request_deserializers = { - ('gnmi.gNMI', 'Capabilities'): CapabilityRequest.FromString, - ('gnmi.gNMI', 'Get'): GetRequest.FromString, - ('gnmi.gNMI', 'Set'): SetRequest.FromString, - ('gnmi.gNMI', 'Subscribe'): SubscribeRequest.FromString, - } - response_serializers = { - ('gnmi.gNMI', 'Capabilities'): CapabilityResponse.SerializeToString, - ('gnmi.gNMI', 'Get'): GetResponse.SerializeToString, - ('gnmi.gNMI', 'Set'): SetResponse.SerializeToString, - ('gnmi.gNMI', 'Subscribe'): SubscribeResponse.SerializeToString, - } - method_implementations = { - ('gnmi.gNMI', 'Capabilities'): face_utilities.unary_unary_inline(servicer.Capabilities), - ('gnmi.gNMI', 'Get'): face_utilities.unary_unary_inline(servicer.Get), - ('gnmi.gNMI', 'Set'): face_utilities.unary_unary_inline(servicer.Set), - ('gnmi.gNMI', 'Subscribe'): face_utilities.stream_stream_inline(servicer.Subscribe), - } - server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) - return beta_implementations.server(method_implementations, options=server_options) - - - def beta_create_gNMI_stub(channel, host=None, metadata_transformer=None, pool=None, pool_size=None): - """The Beta API is deprecated for 0.15.0 and later. - - It is recommended to use the GA API (classes and functions in this - file not marked beta) for all further purposes. This function was - generated only to ease transition from grpcio<0.15.0 to grpcio>=0.15.0""" - request_serializers = { - ('gnmi.gNMI', 'Capabilities'): CapabilityRequest.SerializeToString, - ('gnmi.gNMI', 'Get'): GetRequest.SerializeToString, - ('gnmi.gNMI', 'Set'): SetRequest.SerializeToString, - ('gnmi.gNMI', 'Subscribe'): SubscribeRequest.SerializeToString, - } - response_deserializers = { - ('gnmi.gNMI', 'Capabilities'): CapabilityResponse.FromString, - ('gnmi.gNMI', 'Get'): GetResponse.FromString, - ('gnmi.gNMI', 'Set'): SetResponse.FromString, - ('gnmi.gNMI', 'Subscribe'): SubscribeResponse.FromString, - } - cardinalities = { - 'Capabilities': cardinality.Cardinality.UNARY_UNARY, - 'Get': cardinality.Cardinality.UNARY_UNARY, - 'Set': cardinality.Cardinality.UNARY_UNARY, - 'Subscribe': cardinality.Cardinality.STREAM_STREAM, - } - stub_options = beta_implementations.stub_options(host=host, metadata_transformer=metadata_transformer, request_serializers=request_serializers, response_deserializers=response_deserializers, thread_pool=pool, thread_pool_size=pool_size) - return beta_implementations.dynamic_stub(channel, 'gnmi.gNMI', cardinalities, options=stub_options) -except ImportError: - pass + +_GNMI = _descriptor.ServiceDescriptor( + name='gNMI', + full_name='gnmi.gNMI', + file=DESCRIPTOR, + index=0, + options=None, + serialized_start=3569, + serialized_end=3796, + methods=[ + _descriptor.MethodDescriptor( + name='Capabilities', + full_name='gnmi.gNMI.Capabilities', + index=0, + containing_service=None, + input_type=_CAPABILITYREQUEST, + output_type=_CAPABILITYRESPONSE, + options=None, + ), + _descriptor.MethodDescriptor( + name='Get', + full_name='gnmi.gNMI.Get', + index=1, + containing_service=None, + input_type=_GETREQUEST, + output_type=_GETRESPONSE, + options=None, + ), + _descriptor.MethodDescriptor( + name='Set', + full_name='gnmi.gNMI.Set', + index=2, + containing_service=None, + input_type=_SETREQUEST, + output_type=_SETRESPONSE, + options=None, + ), + _descriptor.MethodDescriptor( + name='Subscribe', + full_name='gnmi.gNMI.Subscribe', + index=3, + containing_service=None, + input_type=_SUBSCRIBEREQUEST, + output_type=_SUBSCRIBERESPONSE, + options=None, + ), +]) +_sym_db.RegisterServiceDescriptor(_GNMI) + +DESCRIPTOR.services_by_name['gNMI'] = _GNMI + # @@protoc_insertion_point(module_scope) diff --git a/proto/gnmi_ext/gnmi_ext.pb.go b/proto/gnmi_ext/gnmi_ext.pb.go new file mode 100644 index 00000000..058fdab1 --- /dev/null +++ b/proto/gnmi_ext/gnmi_ext.pb.go @@ -0,0 +1,201 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: proto/gnmi_ext/gnmi_ext.proto + +/* +Package gnmi_ext is a generated protocol buffer package. + +Package gnmi_ext defines a set of extensions messages which can be optionally +included with the request and response messages of gNMI RPCs. A set of +well-known extensions are defined within this file, along with a registry for +extensions defined outside of this package. + +It is generated from these files: + proto/gnmi_ext/gnmi_ext.proto + +It has these top-level messages: + Extension + RegisteredExtension +*/ +package gnmi_ext + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// RegisteredExtension is an enumeration acting as a registry for extensions +// defined by external sources. +type ExtensionID int32 + +const ( + ExtensionID_EID_UNSET ExtensionID = 0 + // An experimental extension that may be used during prototyping of a new + // extension. + ExtensionID_EID_EXPERIMENTAL ExtensionID = 999 +) + +var ExtensionID_name = map[int32]string{ + 0: "EID_UNSET", + 999: "EID_EXPERIMENTAL", +} +var ExtensionID_value = map[string]int32{ + "EID_UNSET": 0, + "EID_EXPERIMENTAL": 999, +} + +func (x ExtensionID) String() string { + return proto.EnumName(ExtensionID_name, int32(x)) +} +func (ExtensionID) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +// The Extension message contains a single gNMI extension. +type Extension struct { + // Types that are valid to be assigned to Ext: + // *Extension_RegisteredExt + Ext isExtension_Ext `protobuf_oneof:"ext"` +} + +func (m *Extension) Reset() { *m = Extension{} } +func (m *Extension) String() string { return proto.CompactTextString(m) } +func (*Extension) ProtoMessage() {} +func (*Extension) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +type isExtension_Ext interface { + isExtension_Ext() +} + +type Extension_RegisteredExt struct { + RegisteredExt *RegisteredExtension `protobuf:"bytes,1,opt,name=registered_ext,json=registeredExt,oneof"` +} + +func (*Extension_RegisteredExt) isExtension_Ext() {} + +func (m *Extension) GetExt() isExtension_Ext { + if m != nil { + return m.Ext + } + return nil +} + +func (m *Extension) GetRegisteredExt() *RegisteredExtension { + if x, ok := m.GetExt().(*Extension_RegisteredExt); ok { + return x.RegisteredExt + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Extension) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _Extension_OneofMarshaler, _Extension_OneofUnmarshaler, _Extension_OneofSizer, []interface{}{ + (*Extension_RegisteredExt)(nil), + } +} + +func _Extension_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Extension) + // ext + switch x := m.Ext.(type) { + case *Extension_RegisteredExt: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RegisteredExt); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("Extension.Ext has unexpected type %T", x) + } + return nil +} + +func _Extension_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Extension) + switch tag { + case 1: // ext.registered_ext + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(RegisteredExtension) + err := b.DecodeMessage(msg) + m.Ext = &Extension_RegisteredExt{msg} + return true, err + default: + return false, nil + } +} + +func _Extension_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Extension) + // ext + switch x := m.Ext.(type) { + case *Extension_RegisteredExt: + s := proto.Size(x.RegisteredExt) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// The RegisteredExtension message defines an extension which is defined outside +// of this file. +type RegisteredExtension struct { + Id ExtensionID `protobuf:"varint,1,opt,name=id,enum=gnmi_ext.ExtensionID" json:"id,omitempty"` + Msg []byte `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` +} + +func (m *RegisteredExtension) Reset() { *m = RegisteredExtension{} } +func (m *RegisteredExtension) String() string { return proto.CompactTextString(m) } +func (*RegisteredExtension) ProtoMessage() {} +func (*RegisteredExtension) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +func (m *RegisteredExtension) GetId() ExtensionID { + if m != nil { + return m.Id + } + return ExtensionID_EID_UNSET +} + +func (m *RegisteredExtension) GetMsg() []byte { + if m != nil { + return m.Msg + } + return nil +} + +func init() { + proto.RegisterType((*Extension)(nil), "gnmi_ext.Extension") + proto.RegisterType((*RegisteredExtension)(nil), "gnmi_ext.RegisteredExtension") + proto.RegisterEnum("gnmi_ext.ExtensionID", ExtensionID_name, ExtensionID_value) +} + +func init() { proto.RegisterFile("proto/gnmi_ext/gnmi_ext.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 196 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2d, 0x28, 0xca, 0x2f, + 0xc9, 0xd7, 0x4f, 0xcf, 0xcb, 0xcd, 0x8c, 0x4f, 0xad, 0x28, 0x81, 0x33, 0xf4, 0xc0, 0xe2, 0x42, + 0x1c, 0x30, 0xbe, 0x52, 0x14, 0x17, 0xa7, 0x6b, 0x45, 0x49, 0x6a, 0x5e, 0x71, 0x66, 0x7e, 0x9e, + 0x90, 0x1b, 0x17, 0x5f, 0x51, 0x6a, 0x7a, 0x66, 0x71, 0x49, 0x6a, 0x51, 0x6a, 0x0a, 0x48, 0x5a, + 0x82, 0x51, 0x81, 0x51, 0x83, 0xdb, 0x48, 0x56, 0x0f, 0xae, 0x3f, 0x08, 0x2e, 0x0f, 0xd7, 0xe6, + 0xc1, 0x10, 0xc4, 0x5b, 0x84, 0x2c, 0xec, 0xc4, 0xca, 0xc5, 0x0c, 0x32, 0xdb, 0x8f, 0x4b, 0x18, + 0x8b, 0x72, 0x21, 0x55, 0x2e, 0xa6, 0xcc, 0x14, 0xb0, 0xc9, 0x7c, 0x46, 0xa2, 0x08, 0x93, 0xe1, + 0x0a, 0x3c, 0x5d, 0x82, 0x98, 0x32, 0x53, 0x84, 0x04, 0xb8, 0x98, 0x73, 0x8b, 0xd3, 0x25, 0x98, + 0x14, 0x18, 0x35, 0x78, 0x82, 0x40, 0x4c, 0x2d, 0x63, 0x2e, 0x6e, 0x24, 0x45, 0x42, 0xbc, 0x5c, + 0x9c, 0xae, 0x9e, 0x2e, 0xf1, 0xa1, 0x7e, 0xc1, 0xae, 0x21, 0x02, 0x0c, 0x42, 0xa2, 0x5c, 0x02, + 0x20, 0xae, 0x6b, 0x44, 0x80, 0x6b, 0x90, 0xa7, 0xaf, 0xab, 0x5f, 0x88, 0xa3, 0x8f, 0xc0, 0x73, + 0xf6, 0x24, 0x36, 0xb0, 0x8f, 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x61, 0xa3, 0xaf, 0x4d, + 0x12, 0x01, 0x00, 0x00, +} diff --git a/proto/gnmi_ext/gnmi_ext_pb2.py b/proto/gnmi_ext/gnmi_ext_pb2.py new file mode 100644 index 00000000..061c4111 --- /dev/null +++ b/proto/gnmi_ext/gnmi_ext_pb2.py @@ -0,0 +1,150 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: proto/gnmi_ext/gnmi_ext.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf.internal import enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='proto/gnmi_ext/gnmi_ext.proto', + package='gnmi_ext', + syntax='proto3', + serialized_pb=_b('\n\x1dproto/gnmi_ext/gnmi_ext.proto\x12\x08gnmi_ext\"K\n\tExtension\x12\x37\n\x0eregistered_ext\x18\x01 \x01(\x0b\x32\x1d.gnmi_ext.RegisteredExtensionH\x00\x42\x05\n\x03\x65xt\"E\n\x13RegisteredExtension\x12!\n\x02id\x18\x01 \x01(\x0e\x32\x15.gnmi_ext.ExtensionID\x12\x0b\n\x03msg\x18\x02 \x01(\x0c*3\n\x0b\x45xtensionID\x12\r\n\tEID_UNSET\x10\x00\x12\x15\n\x10\x45ID_EXPERIMENTAL\x10\xe7\x07\x62\x06proto3') +) + +_EXTENSIONID = _descriptor.EnumDescriptor( + name='ExtensionID', + full_name='gnmi_ext.ExtensionID', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='EID_UNSET', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EID_EXPERIMENTAL', index=1, number=999, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=191, + serialized_end=242, +) +_sym_db.RegisterEnumDescriptor(_EXTENSIONID) + +ExtensionID = enum_type_wrapper.EnumTypeWrapper(_EXTENSIONID) +EID_UNSET = 0 +EID_EXPERIMENTAL = 999 + + + +_EXTENSION = _descriptor.Descriptor( + name='Extension', + full_name='gnmi_ext.Extension', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='registered_ext', full_name='gnmi_ext.Extension.registered_ext', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='ext', full_name='gnmi_ext.Extension.ext', + index=0, containing_type=None, fields=[]), + ], + serialized_start=43, + serialized_end=118, +) + + +_REGISTEREDEXTENSION = _descriptor.Descriptor( + name='RegisteredExtension', + full_name='gnmi_ext.RegisteredExtension', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='gnmi_ext.RegisteredExtension.id', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='msg', full_name='gnmi_ext.RegisteredExtension.msg', index=1, + number=2, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=120, + serialized_end=189, +) + +_EXTENSION.fields_by_name['registered_ext'].message_type = _REGISTEREDEXTENSION +_EXTENSION.oneofs_by_name['ext'].fields.append( + _EXTENSION.fields_by_name['registered_ext']) +_EXTENSION.fields_by_name['registered_ext'].containing_oneof = _EXTENSION.oneofs_by_name['ext'] +_REGISTEREDEXTENSION.fields_by_name['id'].enum_type = _EXTENSIONID +DESCRIPTOR.message_types_by_name['Extension'] = _EXTENSION +DESCRIPTOR.message_types_by_name['RegisteredExtension'] = _REGISTEREDEXTENSION +DESCRIPTOR.enum_types_by_name['ExtensionID'] = _EXTENSIONID +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Extension = _reflection.GeneratedProtocolMessageType('Extension', (_message.Message,), dict( + DESCRIPTOR = _EXTENSION, + __module__ = 'proto.gnmi_ext.gnmi_ext_pb2' + # @@protoc_insertion_point(class_scope:gnmi_ext.Extension) + )) +_sym_db.RegisterMessage(Extension) + +RegisteredExtension = _reflection.GeneratedProtocolMessageType('RegisteredExtension', (_message.Message,), dict( + DESCRIPTOR = _REGISTEREDEXTENSION, + __module__ = 'proto.gnmi_ext.gnmi_ext_pb2' + # @@protoc_insertion_point(class_scope:gnmi_ext.RegisteredExtension) + )) +_sym_db.RegisterMessage(RegisteredExtension) + + +# @@protoc_insertion_point(module_scope) diff --git a/proto/gnmi_ext/gnmi_ext_pb2_grpc.py b/proto/gnmi_ext/gnmi_ext_pb2_grpc.py new file mode 100644 index 00000000..a8943526 --- /dev/null +++ b/proto/gnmi_ext/gnmi_ext_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/testing/fake/proto/fake.pb.go b/testing/fake/proto/fake.pb.go index 27fbdddf..a1fb1625 100644 --- a/testing/fake/proto/fake.pb.go +++ b/testing/fake/proto/fake.pb.go @@ -1,6 +1,5 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: testing/fake/proto/fake.proto -// DO NOT EDIT! /* Package gnmi_fake is a generated protocol buffer package. diff --git a/testing/fake/proto/fake_pb2.py b/testing/fake/proto/fake_pb2.py index b71940df..10ed8498 100644 --- a/testing/fake/proto/fake_pb2.py +++ b/testing/fake/proto/fake_pb2.py @@ -102,7 +102,7 @@ has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -133,14 +133,14 @@ has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='password', full_name='gnmi.fake.Credentials.password', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -171,91 +171,91 @@ has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='port', full_name='gnmi.fake.Config.port', index=1, number=2, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='seed', full_name='gnmi.fake.Config.seed', index=2, number=6, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001'))), + options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001')), file=DESCRIPTOR), _descriptor.FieldDescriptor( name='values', full_name='gnmi.fake.Config.values', index=3, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001'))), + options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001')), file=DESCRIPTOR), _descriptor.FieldDescriptor( name='disable_sync', full_name='gnmi.fake.Config.disable_sync', index=4, number=4, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='client_type', full_name='gnmi.fake.Config.client_type', index=5, number=5, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='disable_eof', full_name='gnmi.fake.Config.disable_eof', index=6, number=7, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='credentials', full_name='gnmi.fake.Config.credentials', index=7, number=8, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='cert', full_name='gnmi.fake.Config.cert', index=8, number=9, type=12, cpp_type=9, label=1, has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='enable_delay', full_name='gnmi.fake.Config.enable_delay', index=9, number=10, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='custom', full_name='gnmi.fake.Config.custom', index=10, number=100, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='random', full_name='gnmi.fake.Config.random', index=11, number=101, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='fixed', full_name='gnmi.fake.Config.fixed', index=12, number=102, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -290,7 +290,7 @@ has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -321,14 +321,14 @@ has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='values', full_name='gnmi.fake.RandomGenerator.values', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -383,63 +383,63 @@ has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='timestamp', full_name='gnmi.fake.Value.timestamp', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='repeat', full_name='gnmi.fake.Value.repeat', index=2, number=6, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='seed', full_name='gnmi.fake.Value.seed', index=3, number=7, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='int_value', full_name='gnmi.fake.Value.int_value', index=4, number=100, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='double_value', full_name='gnmi.fake.Value.double_value', index=5, number=101, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='string_value', full_name='gnmi.fake.Value.string_value', index=6, number=102, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='sync', full_name='gnmi.fake.Value.sync', index=7, number=103, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='delete', full_name='gnmi.fake.Value.delete', index=8, number=104, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -473,21 +473,21 @@ has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='delta_min', full_name='gnmi.fake.Timestamp.delta_min', index=1, number=2, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='delta_max', full_name='gnmi.fake.Timestamp.delta_max', index=2, number=3, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -518,21 +518,21 @@ has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='range', full_name='gnmi.fake.IntValue.range', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='list', full_name='gnmi.fake.IntValue.list', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -566,28 +566,28 @@ has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='maximum', full_name='gnmi.fake.IntRange.maximum', index=1, number=2, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='delta_min', full_name='gnmi.fake.IntRange.delta_min', index=2, number=3, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='delta_max', full_name='gnmi.fake.IntRange.delta_max', index=3, number=4, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -618,14 +618,14 @@ has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='random', full_name='gnmi.fake.IntList.random', index=1, number=2, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -656,21 +656,21 @@ has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='range', full_name='gnmi.fake.DoubleValue.range', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='list', full_name='gnmi.fake.DoubleValue.list', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -704,28 +704,28 @@ has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='maximum', full_name='gnmi.fake.DoubleRange.maximum', index=1, number=2, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='delta_min', full_name='gnmi.fake.DoubleRange.delta_min', index=2, number=3, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='delta_max', full_name='gnmi.fake.DoubleRange.delta_max', index=3, number=4, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -756,14 +756,14 @@ has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='random', full_name='gnmi.fake.DoubleList.random', index=1, number=2, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -794,14 +794,14 @@ has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='list', full_name='gnmi.fake.StringValue.list', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -835,14 +835,14 @@ has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='random', full_name='gnmi.fake.StringList.random', index=1, number=2, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - options=None), + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -1054,187 +1054,46 @@ _CONFIG.fields_by_name['seed']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001')) _CONFIG.fields_by_name['values'].has_options = True _CONFIG.fields_by_name['values']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001')) -try: - # THESE ELEMENTS WILL BE DEPRECATED. - # Please use the generated *_pb2_grpc.py files instead. - import grpc - from grpc.beta import implementations as beta_implementations - from grpc.beta import interfaces as beta_interfaces - from grpc.framework.common import cardinality - from grpc.framework.interfaces.face import utilities as face_utilities - - - class AgentManagerStub(object): - # missing associated documentation comment in .proto file - pass - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Add = channel.unary_unary( - '/gnmi.fake.AgentManager/Add', - request_serializer=Config.SerializeToString, - response_deserializer=Config.FromString, - ) - self.Remove = channel.unary_unary( - '/gnmi.fake.AgentManager/Remove', - request_serializer=Config.SerializeToString, - response_deserializer=Config.FromString, - ) - self.Get = channel.unary_unary( - '/gnmi.fake.AgentManager/Get', - request_serializer=Config.SerializeToString, - response_deserializer=Config.FromString, - ) - - - class AgentManagerServicer(object): - # missing associated documentation comment in .proto file - pass - - def Add(self, request, context): - """Add adds an agent to the server. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Remove(self, request, context): - """Remove removes an agent from the server. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Get(self, request, context): - """Get returns the current status of an agent on the server. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - - def add_AgentManagerServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Add': grpc.unary_unary_rpc_method_handler( - servicer.Add, - request_deserializer=Config.FromString, - response_serializer=Config.SerializeToString, - ), - 'Remove': grpc.unary_unary_rpc_method_handler( - servicer.Remove, - request_deserializer=Config.FromString, - response_serializer=Config.SerializeToString, - ), - 'Get': grpc.unary_unary_rpc_method_handler( - servicer.Get, - request_deserializer=Config.FromString, - response_serializer=Config.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'gnmi.fake.AgentManager', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - class BetaAgentManagerServicer(object): - """The Beta API is deprecated for 0.15.0 and later. - - It is recommended to use the GA API (classes and functions in this - file not marked beta) for all further purposes. This class was generated - only to ease transition from grpcio<0.15.0 to grpcio>=0.15.0.""" - # missing associated documentation comment in .proto file - pass - def Add(self, request, context): - """Add adds an agent to the server. - """ - context.code(beta_interfaces.StatusCode.UNIMPLEMENTED) - def Remove(self, request, context): - """Remove removes an agent from the server. - """ - context.code(beta_interfaces.StatusCode.UNIMPLEMENTED) - def Get(self, request, context): - """Get returns the current status of an agent on the server. - """ - context.code(beta_interfaces.StatusCode.UNIMPLEMENTED) - - - class BetaAgentManagerStub(object): - """The Beta API is deprecated for 0.15.0 and later. - - It is recommended to use the GA API (classes and functions in this - file not marked beta) for all further purposes. This class was generated - only to ease transition from grpcio<0.15.0 to grpcio>=0.15.0.""" - # missing associated documentation comment in .proto file - pass - def Add(self, request, timeout, metadata=None, with_call=False, protocol_options=None): - """Add adds an agent to the server. - """ - raise NotImplementedError() - Add.future = None - def Remove(self, request, timeout, metadata=None, with_call=False, protocol_options=None): - """Remove removes an agent from the server. - """ - raise NotImplementedError() - Remove.future = None - def Get(self, request, timeout, metadata=None, with_call=False, protocol_options=None): - """Get returns the current status of an agent on the server. - """ - raise NotImplementedError() - Get.future = None - - - def beta_create_AgentManager_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=None): - """The Beta API is deprecated for 0.15.0 and later. - - It is recommended to use the GA API (classes and functions in this - file not marked beta) for all further purposes. This function was - generated only to ease transition from grpcio<0.15.0 to grpcio>=0.15.0""" - request_deserializers = { - ('gnmi.fake.AgentManager', 'Add'): Config.FromString, - ('gnmi.fake.AgentManager', 'Get'): Config.FromString, - ('gnmi.fake.AgentManager', 'Remove'): Config.FromString, - } - response_serializers = { - ('gnmi.fake.AgentManager', 'Add'): Config.SerializeToString, - ('gnmi.fake.AgentManager', 'Get'): Config.SerializeToString, - ('gnmi.fake.AgentManager', 'Remove'): Config.SerializeToString, - } - method_implementations = { - ('gnmi.fake.AgentManager', 'Add'): face_utilities.unary_unary_inline(servicer.Add), - ('gnmi.fake.AgentManager', 'Get'): face_utilities.unary_unary_inline(servicer.Get), - ('gnmi.fake.AgentManager', 'Remove'): face_utilities.unary_unary_inline(servicer.Remove), - } - server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) - return beta_implementations.server(method_implementations, options=server_options) - - - def beta_create_AgentManager_stub(channel, host=None, metadata_transformer=None, pool=None, pool_size=None): - """The Beta API is deprecated for 0.15.0 and later. - - It is recommended to use the GA API (classes and functions in this - file not marked beta) for all further purposes. This function was - generated only to ease transition from grpcio<0.15.0 to grpcio>=0.15.0""" - request_serializers = { - ('gnmi.fake.AgentManager', 'Add'): Config.SerializeToString, - ('gnmi.fake.AgentManager', 'Get'): Config.SerializeToString, - ('gnmi.fake.AgentManager', 'Remove'): Config.SerializeToString, - } - response_deserializers = { - ('gnmi.fake.AgentManager', 'Add'): Config.FromString, - ('gnmi.fake.AgentManager', 'Get'): Config.FromString, - ('gnmi.fake.AgentManager', 'Remove'): Config.FromString, - } - cardinalities = { - 'Add': cardinality.Cardinality.UNARY_UNARY, - 'Get': cardinality.Cardinality.UNARY_UNARY, - 'Remove': cardinality.Cardinality.UNARY_UNARY, - } - stub_options = beta_implementations.stub_options(host=host, metadata_transformer=metadata_transformer, request_serializers=request_serializers, response_deserializers=response_deserializers, thread_pool=pool, thread_pool_size=pool_size) - return beta_implementations.dynamic_stub(channel, 'gnmi.fake.AgentManager', cardinalities, options=stub_options) -except ImportError: - pass + +_AGENTMANAGER = _descriptor.ServiceDescriptor( + name='AgentManager', + full_name='gnmi.fake.AgentManager', + file=DESCRIPTOR, + index=0, + options=None, + serialized_start=1907, + serialized_end=2059, + methods=[ + _descriptor.MethodDescriptor( + name='Add', + full_name='gnmi.fake.AgentManager.Add', + index=0, + containing_service=None, + input_type=_CONFIG, + output_type=_CONFIG, + options=None, + ), + _descriptor.MethodDescriptor( + name='Remove', + full_name='gnmi.fake.AgentManager.Remove', + index=1, + containing_service=None, + input_type=_CONFIG, + output_type=_CONFIG, + options=None, + ), + _descriptor.MethodDescriptor( + name='Get', + full_name='gnmi.fake.AgentManager.Get', + index=2, + containing_service=None, + input_type=_CONFIG, + output_type=_CONFIG, + options=None, + ), +]) +_sym_db.RegisterServiceDescriptor(_AGENTMANAGER) + +DESCRIPTOR.services_by_name['AgentManager'] = _AGENTMANAGER + # @@protoc_insertion_point(module_scope)